Remove base::Value::IsType
https://chromium-review.googlesource.com/659798
This commit is contained in:
parent
48c3340d95
commit
a315d6330c
8 changed files with 13 additions and 13 deletions
|
@ -57,11 +57,11 @@ void AskForOptions(v8::Isolate* isolate,
|
|||
}
|
||||
|
||||
bool IsErrorOptions(base::Value* value, int* error) {
|
||||
if (value->IsType(base::Value::Type::DICTIONARY)) {
|
||||
if (value->is_dict()) {
|
||||
base::DictionaryValue* dict = static_cast<base::DictionaryValue*>(value);
|
||||
if (dict->GetInteger("error", error))
|
||||
return true;
|
||||
} else if (value->IsType(base::Value::Type::INTEGER)) {
|
||||
} else if (value->is_int()) {
|
||||
if (value->GetAsInteger(error))
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue