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

@ -35,13 +35,13 @@ URLRequestBufferJob::~URLRequestBufferJob() = default;
void URLRequestBufferJob::StartAsync(std::unique_ptr<base::Value> options) {
const base::Value* binary = nullptr;
if (options->IsType(base::Value::Type::DICTIONARY)) {
if (options->is_dict()) {
base::DictionaryValue* dict =
static_cast<base::DictionaryValue*>(options.get());
dict->GetString("mimeType", &mime_type_);
dict->GetString("charset", &charset_);
dict->GetBinary("data", &binary);
} else if (options->IsType(base::Value::Type::BINARY)) {
} else if (options->is_blob()) {
binary = options.get();
}