| Index: components/update_client/component_patcher.cc
|
| diff --git a/components/update_client/component_patcher.cc b/components/update_client/component_patcher.cc
|
| index 7ceedce98cd7c2346fb381246e547ee8c4b1a53a..b5b4ac3907f84c07ea6fcc969813e52c6de9da20 100644
|
| --- a/components/update_client/component_patcher.cc
|
| +++ b/components/update_client/component_patcher.cc
|
| @@ -78,12 +78,11 @@ void ComponentPatcher::PatchNextFile() {
|
| DonePatching(ComponentUnpacker::kNone, 0);
|
| return;
|
| }
|
| - if (!(*next_command_)->IsType(base::Value::TYPE_DICTIONARY)) {
|
| + const base::DictionaryValue* command_args;
|
| + if (!(*next_command_)->GetAsDictionary(&command_args)) {
|
| DonePatching(ComponentUnpacker::kDeltaBadCommands, 0);
|
| return;
|
| }
|
| - const base::DictionaryValue* command_args =
|
| - static_cast<base::DictionaryValue*>(*next_command_);
|
|
|
| std::string operation;
|
| if (command_args->GetString(kOp, &operation)) {
|
|
|