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

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

Issue 2000803003: Use std::unique_ptr for base::DictionaryValue and base::ListValue's internal store. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More fixes Created 4 years, 7 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 180823d8d90bd25f7740319e659be315ef5c8c19..a7ba7ce6c8079f29f0d1cfd198d51b9785743d01 100644
--- a/chrome/browser/spellchecker/spellcheck_service.cc
+++ b/chrome/browser/spellchecker/spellcheck_service.cc
@@ -225,7 +225,7 @@ void SpellcheckService::LoadHunspellDictionaries() {
const base::ListValue* dictionary_values =
prefs->GetList(prefs::kSpellCheckDictionaries);
- for (const base::Value* dictionary_value : *dictionary_values) {
+ for (const auto& dictionary_value : *dictionary_values) {
std::string dictionary;
dictionary_value->GetAsString(&dictionary);
hunspell_dictionaries_.push_back(new SpellcheckHunspellDictionary(
« no previous file with comments | « chrome/browser/policy/managed_bookmarks_policy_handler.cc ('k') | chrome/browser/supervised_user/supervised_user_site_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698