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
|
@ -18,10 +18,10 @@ URLRequestAsyncAsarJob::URLRequestAsyncAsarJob(
|
|||
|
||||
void URLRequestAsyncAsarJob::StartAsync(std::unique_ptr<base::Value> options) {
|
||||
base::FilePath::StringType file_path;
|
||||
if (options->IsType(base::Value::Type::DICTIONARY)) {
|
||||
if (options->is_dict()) {
|
||||
static_cast<base::DictionaryValue*>(options.get())
|
||||
->GetString("path", &file_path);
|
||||
} else if (options->IsType(base::Value::Type::STRING)) {
|
||||
} else if (options->is_string()) {
|
||||
options->GetAsString(&file_path);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue