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

Unified Diff: chrome/browser/extensions/api/proxy/proxy_api.cc

Issue 2539363004: Make base::Value::TYPE a scoped enum. (Closed)
Patch Set: Rebase Created 4 years 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/api/proxy/proxy_api.cc
diff --git a/chrome/browser/extensions/api/proxy/proxy_api.cc b/chrome/browser/extensions/api/proxy/proxy_api.cc
index e52ebb19868a4db2b40af0abcca119e2e698acaf..c2ad7f37bb291d80d482386b5a1c04e01f5af898 100644
--- a/chrome/browser/extensions/api/proxy/proxy_api.cc
+++ b/chrome/browser/extensions/api/proxy/proxy_api.cc
@@ -103,7 +103,7 @@ base::Value* ProxyPrefTransformer::ExtensionToBrowserPref(
// When ExtensionToBrowserPref is called, the format of |extension_pref|
// has been verified already by the extension API to match the schema
// defined in the extension API JSON.
- CHECK(extension_pref->IsType(base::Value::TYPE_DICTIONARY));
+ CHECK(extension_pref->IsType(base::Value::Type::DICTIONARY));
const base::DictionaryValue* config =
static_cast<const base::DictionaryValue*>(extension_pref);
@@ -140,7 +140,7 @@ base::Value* ProxyPrefTransformer::ExtensionToBrowserPref(
base::Value* ProxyPrefTransformer::BrowserToExtensionPref(
const base::Value* browser_pref) {
- CHECK(browser_pref->IsType(base::Value::TYPE_DICTIONARY));
+ CHECK(browser_pref->IsType(base::Value::Type::DICTIONARY));
// This is a dictionary wrapper that exposes the proxy configuration stored in
// the browser preferences.

Powered by Google App Engine
This is Rietveld 408576698