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

@ -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);
}