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

Unified Diff: components/translate/core/browser/translate_prefs.cc

Issue 2740143002: Change base::Value::ListStorage to std::vector<base::Value> (Closed)
Patch Set: Comment Updates Created 3 years, 9 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: components/translate/core/browser/translate_prefs.cc
diff --git a/components/translate/core/browser/translate_prefs.cc b/components/translate/core/browser/translate_prefs.cc
index a61cb1eeddf6413d39b5ea47111205c99f958ce6..127e25b9ecc236502ce049dbf62fcddbc862f7c9 100644
--- a/components/translate/core/browser/translate_prefs.cc
+++ b/components/translate/core/browser/translate_prefs.cc
@@ -614,8 +614,7 @@ double TranslatePrefs::GetReadingFromUserLanguageProfile(
const base::DictionaryValue* item = nullptr;
std::string language;
double probability = 0.0;
- if (entry->GetAsDictionary(&item) &&
- item->GetString(kLanguage, &language) &&
+ if (entry.GetAsDictionary(&item) && item->GetString(kLanguage, &language) &&
item->GetDouble(kProbability, &probability)) {
// Normalize the the language code known and supported by
// Translate.

Powered by Google App Engine
This is Rietveld 408576698