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

Side by Side Diff: chrome/browser/ui/webui/options/language_options_handler_common.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/ui/webui/options/language_options_handler_common.h" 5 #include "chrome/browser/ui/webui/options/language_options_handler_common.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
11 #include <utility> 11 #include <utility>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/bind.h" 14 #include "base/bind.h"
15 #include "base/command_line.h" 15 #include "base/command_line.h"
16 #include "base/macros.h" 16 #include "base/macros.h"
17 #include "base/memory/scoped_vector.h" 17 #include "base/memory/scoped_vector.h"
18 #include "base/prefs/pref_service.h"
19 #include "base/strings/string_util.h" 18 #include "base/strings/string_util.h"
20 #include "base/strings/stringprintf.h" 19 #include "base/strings/stringprintf.h"
21 #include "base/strings/utf_string_conversions.h" 20 #include "base/strings/utf_string_conversions.h"
22 #include "base/values.h" 21 #include "base/values.h"
23 #include "build/build_config.h" 22 #include "build/build_config.h"
24 #include "chrome/browser/browser_process.h" 23 #include "chrome/browser/browser_process.h"
25 #include "chrome/browser/profiles/profile.h" 24 #include "chrome/browser/profiles/profile.h"
26 #include "chrome/browser/spellchecker/spellcheck_factory.h" 25 #include "chrome/browser/spellchecker/spellcheck_factory.h"
27 #include "chrome/browser/spellchecker/spellcheck_service.h" 26 #include "chrome/browser/spellchecker/spellcheck_service.h"
28 #include "chrome/browser/translate/chrome_translate_client.h" 27 #include "chrome/browser/translate/chrome_translate_client.h"
29 #include "chrome/browser/translate/translate_service.h" 28 #include "chrome/browser/translate/translate_service.h"
30 #include "chrome/browser/ui/browser_list.h" 29 #include "chrome/browser/ui/browser_list.h"
31 #include "chrome/common/chrome_switches.h" 30 #include "chrome/common/chrome_switches.h"
32 #include "chrome/common/pref_names.h" 31 #include "chrome/common/pref_names.h"
33 #include "chrome/common/spellcheck_common.h" 32 #include "chrome/common/spellcheck_common.h"
34 #include "chrome/grit/chromium_strings.h" 33 #include "chrome/grit/chromium_strings.h"
35 #include "chrome/grit/generated_resources.h" 34 #include "chrome/grit/generated_resources.h"
35 #include "components/prefs/pref_service.h"
36 #include "components/translate/core/browser/translate_download_manager.h" 36 #include "components/translate/core/browser/translate_download_manager.h"
37 #include "components/translate/core/browser/translate_prefs.h" 37 #include "components/translate/core/browser/translate_prefs.h"
38 #include "content/public/browser/user_metrics.h" 38 #include "content/public/browser/user_metrics.h"
39 #include "content/public/browser/web_ui.h" 39 #include "content/public/browser/web_ui.h"
40 #include "ui/base/l10n/l10n_util.h" 40 #include "ui/base/l10n/l10n_util.h"
41 41
42 using base::UserMetricsAction; 42 using base::UserMetricsAction;
43 43
44 namespace options { 44 namespace options {
45 45
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 return; 314 return;
315 } 315 }
316 } 316 }
317 } 317 }
318 318
319 SpellcheckService* LanguageOptionsHandlerCommon::GetSpellcheckService() { 319 SpellcheckService* LanguageOptionsHandlerCommon::GetSpellcheckService() {
320 return SpellcheckServiceFactory::GetForContext(Profile::FromWebUI(web_ui())); 320 return SpellcheckServiceFactory::GetForContext(Profile::FromWebUI(web_ui()));
321 } 321 }
322 322
323 } // namespace options 323 } // namespace options
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698