Remove base::Value::IsType

https://chromium-review.googlesource.com/659798
This commit is contained in:
Aleksei Kuzmin 2018-04-10 16:05:36 +02:00 committed by Samuel Attard
parent 48c3340d95
commit a315d6330c
8 changed files with 13 additions and 13 deletions

View file

@ -481,7 +481,7 @@ base::Value* V8ValueConverter::FromV8Object(v8::Local<v8::Object> val,
// there *is* a "windowId" property, but since it should be an int, code
// on the browser which doesn't additionally check for null will fail.
// We can avoid all bugs related to this by stripping null.
if (strip_null_from_objects_ && child->IsType(base::Value::Type::NONE))
if (strip_null_from_objects_ && child->is_none())
continue;
result->SetWithoutPathExpansion(std::string(*name_utf8, name_utf8.length()),