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

Side by Side Diff: chrome/browser/extensions/api/language_settings_private/language_settings_private_delegate.cc

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/extensions/api/language_settings_private/language_setti ngs_private_delegate.h" 5 #include "chrome/browser/extensions/api/language_settings_private/language_setti ngs_private_delegate.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/bind_helpers.h" 12 #include "base/bind_helpers.h"
13 #include "base/memory/linked_ptr.h" 13 #include "base/memory/linked_ptr.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/memory/scoped_vector.h" 15 #include "base/memory/scoped_vector.h"
16 #include "base/prefs/pref_service.h"
17 #include "base/strings/utf_string_conversions.h" 16 #include "base/strings/utf_string_conversions.h"
18 #include "chrome/browser/browser_process.h" 17 #include "chrome/browser/browser_process.h"
19 #include "chrome/browser/chrome_notification_types.h" 18 #include "chrome/browser/chrome_notification_types.h"
20 #include "chrome/browser/profiles/profile.h" 19 #include "chrome/browser/profiles/profile.h"
21 #include "chrome/browser/spellchecker/spellcheck_factory.h" 20 #include "chrome/browser/spellchecker/spellcheck_factory.h"
22 #include "chrome/browser/spellchecker/spellcheck_service.h" 21 #include "chrome/browser/spellchecker/spellcheck_service.h"
23 #include "chrome/common/pref_names.h" 22 #include "chrome/common/pref_names.h"
23 #include "components/prefs/pref_service.h"
24 #include "content/public/browser/browser_context.h" 24 #include "content/public/browser/browser_context.h"
25 #include "content/public/browser/notification_source.h" 25 #include "content/public/browser/notification_source.h"
26 26
27 namespace extensions { 27 namespace extensions {
28 28
29 namespace language_settings_private = api::language_settings_private; 29 namespace language_settings_private = api::language_settings_private;
30 30
31 LanguageSettingsPrivateDelegate::LanguageSettingsPrivateDelegate( 31 LanguageSettingsPrivateDelegate::LanguageSettingsPrivateDelegate(
32 content::BrowserContext* context) 32 content::BrowserContext* context)
33 : custom_dictionary_(nullptr), 33 : custom_dictionary_(nullptr),
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 } 255 }
256 256
257 void LanguageSettingsPrivateDelegate::RemoveDictionaryObservers() { 257 void LanguageSettingsPrivateDelegate::RemoveDictionaryObservers() {
258 for (const auto& dictionary : hunspell_dictionaries_) { 258 for (const auto& dictionary : hunspell_dictionaries_) {
259 if (dictionary) 259 if (dictionary)
260 dictionary->RemoveObserver(this); 260 dictionary->RemoveObserver(this);
261 } 261 }
262 } 262 }
263 263
264 } // namespace extensions 264 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698