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

Unified Diff: extensions/browser/verified_contents.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
« no previous file with comments | « extensions/browser/extension_prefs.cc ('k') | extensions/common/extension_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/verified_contents.cc
diff --git a/extensions/browser/verified_contents.cc b/extensions/browser/verified_contents.cc
index b8acb9cba8c6db68c17fe1afab7068a965d7b32f..29404843c8e0bdc3cbefd31622f85fcacf6ac3d8 100644
--- a/extensions/browser/verified_contents.cc
+++ b/extensions/browser/verified_contents.cc
@@ -97,7 +97,7 @@ bool VerifiedContents::InitFrom(const base::FilePath& path,
return false;
std::unique_ptr<base::Value> value(base::JSONReader::Read(payload));
- if (!value.get() || !value->IsType(Value::TYPE_DICTIONARY))
+ if (!value.get() || !value->IsType(Value::Type::DICTIONARY))
return false;
DictionaryValue* dictionary = static_cast<DictionaryValue*>(value.get());
@@ -236,7 +236,7 @@ bool VerifiedContents::GetPayload(const base::FilePath& path,
if (!base::ReadFileToString(path, &contents))
return false;
std::unique_ptr<base::Value> value(base::JSONReader::Read(contents));
- if (!value.get() || !value->IsType(Value::TYPE_LIST))
+ if (!value.get() || !value->IsType(Value::Type::LIST))
return false;
ListValue* top_list = static_cast<ListValue*>(value.get());
« no previous file with comments | « extensions/browser/extension_prefs.cc ('k') | extensions/common/extension_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698