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

Unified Diff: chrome/browser/extensions/extension_webstore_private_api.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/extensions/extension_webstore_private_api.cc
diff --git a/chrome/browser/extensions/extension_webstore_private_api.cc b/chrome/browser/extensions/extension_webstore_private_api.cc
index 0f56c34f7d7c3711fa3207a82909b5a62b0c3753..de2502b11e94bee74876104e59d87c5a77187d91 100644
--- a/chrome/browser/extensions/extension_webstore_private_api.cc
+++ b/chrome/browser/extensions/extension_webstore_private_api.cc
@@ -224,7 +224,7 @@ class SafeBeginInstallHelper : public UtilityProcessHost::Client {
manifest_parse_complete_ = true;
Value* value = NULL;
CHECK(wrapper.Get(0, &value));
- if (value->IsType(Value::TYPE_DICTIONARY)) {
+ if (value->IsDictionary()) {
parsed_manifest_.reset(
static_cast<DictionaryValue*>(value)->DeepCopy());
} else {

Powered by Google App Engine
This is Rietveld 408576698