refactor: remove deprecated GetAs methods (#13425)

* refactor: remove deprecated GetAs methods

* restructure URLRequestAsyncAsarJob on win

* fix: add string conversion header
This commit is contained in:
Shelley Vohr 2018-06-27 14:52:48 -07:00 committed by GitHub
parent fa0704665f
commit 003a92e099
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 22 additions and 20 deletions

View file

@ -62,8 +62,8 @@ bool IsErrorOptions(base::Value* value, int* error) {
if (dict->GetInteger("error", error))
return true;
} else if (value->is_int()) {
if (value->GetAsInteger(error))
return true;
*error = value->GetInt();
return true;
}
return false;
}