зеркало из https://github.com/electron/electron.git
src: base::Value::HasKey(key) => base::Value::FindKey(key) (#13312)
This commit is contained in:
Родитель
0802f82356
Коммит
c20e0c30a2
|
@ -122,7 +122,7 @@ void ToDictionary(base::DictionaryValue* details,
|
|||
std::string key;
|
||||
std::string value;
|
||||
while (headers->EnumerateHeaderLines(&iter, &key, &value)) {
|
||||
if (dict->HasKey(key)) {
|
||||
if (dict->FindKey(key)) {
|
||||
base::ListValue* values = nullptr;
|
||||
if (dict->GetList(key, &values))
|
||||
values->AppendString(value);
|
||||
|
|
|
@ -221,13 +221,13 @@ bool Archive::Stat(const base::FilePath& path, Stats* stats) {
|
|||
if (!GetNodeFromPath(path.AsUTF8Unsafe(), header_.get(), &node))
|
||||
return false;
|
||||
|
||||
if (node->HasKey("link")) {
|
||||
if (node->FindKey("link")) {
|
||||
stats->is_file = false;
|
||||
stats->is_link = true;
|
||||
return true;
|
||||
}
|
||||
|
||||
if (node->HasKey("files")) {
|
||||
if (node->FindKey("files")) {
|
||||
stats->is_file = false;
|
||||
stats->is_directory = true;
|
||||
return true;
|
||||
|
|
|
@ -160,7 +160,7 @@ v8::Local<v8::Value> Converter<net::HttpResponseHeaders*>::ToV8(
|
|||
std::string value;
|
||||
while (headers->EnumerateHeaderLines(&iter, &key, &value)) {
|
||||
key = base::ToLowerASCII(key);
|
||||
if (response_headers.HasKey(key)) {
|
||||
if (response_headers.FindKey(key)) {
|
||||
base::ListValue* values = nullptr;
|
||||
if (response_headers.GetList(key, &values))
|
||||
values->AppendString(value);
|
||||
|
|
Загрузка…
Ссылка в новой задаче