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

Unified Diff: chrome/browser/spellchecker/spellcheck_service.cc

Issue 2740143002: Change base::Value::ListStorage to std::vector<base::Value> (Closed)
Patch Set: Rebase Created 3 years, 8 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/spellchecker/spellcheck_service.cc
diff --git a/chrome/browser/spellchecker/spellcheck_service.cc b/chrome/browser/spellchecker/spellcheck_service.cc
index d07712f5fec4a87a02495deaa7b9103e02dff69e..e496d8909d595f1bb2fe556828561e700f2dec96 100644
--- a/chrome/browser/spellchecker/spellcheck_service.cc
+++ b/chrome/browser/spellchecker/spellcheck_service.cc
@@ -127,7 +127,7 @@ void SpellcheckService::GetDictionaries(base::SupportsUserData* browser_context,
for (const auto& value :
*prefs->GetList(spellcheck::prefs::kSpellCheckDictionaries)) {
std::string dictionary;
- if (value->GetAsString(&dictionary))
+ if (value.GetAsString(&dictionary))
spellcheck_dictionaries.insert(dictionary);
}
@@ -216,7 +216,7 @@ void SpellcheckService::LoadHunspellDictionaries() {
for (const auto& dictionary_value : *dictionary_values) {
std::string dictionary;
- dictionary_value->GetAsString(&dictionary);
+ dictionary_value.GetAsString(&dictionary);
hunspell_dictionaries_.push_back(
base::MakeUnique<SpellcheckHunspellDictionary>(
dictionary,
« no previous file with comments | « chrome/browser/profiles/profile_manager.cc ('k') | chrome/browser/spellchecker/spellcheck_service_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698