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

Unified Diff: chrome/browser/extensions/extension_proxy_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_proxy_api.cc
diff --git a/chrome/browser/extensions/extension_proxy_api.cc b/chrome/browser/extensions/extension_proxy_api.cc
index b7b2c19dac60a7edb9f4cd5f5467bda5e45fcc2f..d61a4fe3e4e10d69ffedaa02900b49e20b22ab5f 100644
--- a/chrome/browser/extensions/extension_proxy_api.cc
+++ b/chrome/browser/extensions/extension_proxy_api.cc
@@ -98,7 +98,7 @@ Value* ProxyPrefTransformer::ExtensionToBrowserPref(const Value* extension_pref,
// When ExtensionToBrowserPref is called, the format of |extension_pref|
// has been verified already by the extension API to match the schema
// defined in chrome/common/extensions/api/extension_api.json.
- CHECK(extension_pref->IsType(Value::TYPE_DICTIONARY));
+ CHECK(extension_pref->IsDictionary());
const DictionaryValue* config =
static_cast<const DictionaryValue*>(extension_pref);
@@ -134,7 +134,7 @@ Value* ProxyPrefTransformer::ExtensionToBrowserPref(const Value* extension_pref,
}
Value* ProxyPrefTransformer::BrowserToExtensionPref(const Value* browser_pref) {
- CHECK(browser_pref->IsType(Value::TYPE_DICTIONARY));
+ CHECK(browser_pref->IsDictionary());
// This is a dictionary wrapper that exposes the proxy configuration stored in
// the browser preferences.
« no previous file with comments | « chrome/browser/extensions/extension_management_api.cc ('k') | chrome/browser/extensions/extension_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698