summaryrefslogtreecommitdiffstats
path: root/chrome/common/web_resource/web_resource_unpacker.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/web_resource/web_resource_unpacker.cc')
-rw-r--r--chrome/common/web_resource/web_resource_unpacker.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/common/web_resource/web_resource_unpacker.cc b/chrome/common/web_resource/web_resource_unpacker.cc
index a821547..7f0ced4 100644
--- a/chrome/common/web_resource/web_resource_unpacker.cc
+++ b/chrome/common/web_resource/web_resource_unpacker.cc
@@ -25,11 +25,11 @@ bool WebResourceUnpacker::Run() {
error_message_ = kInvalidDataTypeError;
return false;
}
- if (!value->IsType(Value::TYPE_LIST)) {
+ if (!value->IsType(Value::TYPE_DICTIONARY)) {
error_message_ = kUnexpectedJSONFormatError;
return false;
}
- parsed_json_.reset(static_cast<ListValue*>(value.release()));
+ parsed_json_.reset(static_cast<DictionaryValue*>(value.release()));
return true;
}
error_message_ = kInvalidDataTypeError;