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

Unified Diff: components/translate/core/browser/translate_language_list.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 | « components/tracing/browser/trace_config_file.cc ('k') | components/update_client/component_patcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/translate/core/browser/translate_language_list.cc
diff --git a/components/translate/core/browser/translate_language_list.cc b/components/translate/core/browser/translate_language_list.cc
index fec2f66be3930acb87e25b4047c4406c74d5ab7f..cee6773f1c19efad982b3e31af28690e82a6e8f4 100644
--- a/components/translate/core/browser/translate_language_list.cc
+++ b/components/translate/core/browser/translate_language_list.cc
@@ -308,7 +308,8 @@ bool TranslateLanguageList::SetSupportedLanguages(
std::unique_ptr<base::Value> json_value =
base::JSONReader::Read(language_list, base::JSON_ALLOW_TRAILING_COMMAS);
- if (json_value == NULL || !json_value->IsType(base::Value::TYPE_DICTIONARY)) {
+ if (json_value == NULL ||
+ !json_value->IsType(base::Value::Type::DICTIONARY)) {
NotifyEvent(__LINE__, "Language list is invalid");
NOTREACHED();
return false;
« no previous file with comments | « components/tracing/browser/trace_config_file.cc ('k') | components/update_client/component_patcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698