Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1440)

Unified Diff: chrome/browser/component_updater/component_unpacker.cc

Issue 7661009: base: Add Is* functions to Value class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tony review Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/component_updater/component_unpacker.cc
diff --git a/chrome/browser/component_updater/component_unpacker.cc b/chrome/browser/component_updater/component_unpacker.cc
index 8453df25e9f6224e4871610e8b82a3f211daa2a6..c148831afb6c8ed00b251a56192e12e0856564de 100644
--- a/chrome/browser/component_updater/component_unpacker.cc
+++ b/chrome/browser/component_updater/component_unpacker.cc
@@ -129,7 +129,7 @@ base::DictionaryValue* ReadManifest(const FilePath& unpack_path) {
scoped_ptr<base::Value> root(serializer.Deserialize(NULL, &error));
if (!root.get())
return NULL;
- if (!root->IsType(base::Value::TYPE_DICTIONARY))
+ if (!root->IsDictionary())
return NULL;
return static_cast<base::DictionaryValue*>(root.release());
}
« no previous file with comments | « chrome/browser/chromeos/cros/native_network_parser.cc ('k') | chrome/browser/debugger/debugger_remote_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698