OLD | NEW |
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_api.h" | 5 #include "chrome/browser/extensions/api/language_settings_private/language_setti
ngs_private_api.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
(...skipping 19 matching lines...) Expand all Loading... |
30 #include "chrome/browser/translate/translate_service.h" | 30 #include "chrome/browser/translate/translate_service.h" |
31 #include "chrome/common/extensions/api/language_settings_private.h" | 31 #include "chrome/common/extensions/api/language_settings_private.h" |
32 #include "chrome/common/pref_names.h" | 32 #include "chrome/common/pref_names.h" |
33 #include "components/spellcheck/common/spellcheck_common.h" | 33 #include "components/spellcheck/common/spellcheck_common.h" |
34 #include "components/translate/core/browser/translate_download_manager.h" | 34 #include "components/translate/core/browser/translate_download_manager.h" |
35 #include "third_party/icu/source/i18n/unicode/coll.h" | 35 #include "third_party/icu/source/i18n/unicode/coll.h" |
36 #include "ui/base/l10n/l10n_util.h" | 36 #include "ui/base/l10n/l10n_util.h" |
37 #include "ui/base/l10n/l10n_util_collator.h" | 37 #include "ui/base/l10n/l10n_util_collator.h" |
38 | 38 |
39 #if defined(OS_CHROMEOS) | 39 #if defined(OS_CHROMEOS) |
40 #include "chrome/browser/chromeos/input_method/input_method_util.h" | |
41 #include "ui/base/ime/chromeos/component_extension_ime_manager.h" | 40 #include "ui/base/ime/chromeos/component_extension_ime_manager.h" |
42 #include "ui/base/ime/chromeos/extension_ime_util.h" | 41 #include "ui/base/ime/chromeos/extension_ime_util.h" |
43 #include "ui/base/ime/chromeos/input_method_manager.h" | 42 #include "ui/base/ime/chromeos/input_method_manager.h" |
| 43 #include "ui/base/ime/chromeos/input_method_util.h" |
44 #endif | 44 #endif |
45 | 45 |
46 namespace extensions { | 46 namespace extensions { |
47 | 47 |
48 namespace language_settings_private = api::language_settings_private; | 48 namespace language_settings_private = api::language_settings_private; |
49 | 49 |
50 #if defined(OS_CHROMEOS) | 50 #if defined(OS_CHROMEOS) |
51 using chromeos::input_method::InputMethodDescriptor; | 51 using chromeos::input_method::InputMethodDescriptor; |
52 using chromeos::input_method::InputMethodDescriptors; | 52 using chromeos::input_method::InputMethodDescriptors; |
53 using chromeos::input_method::InputMethodManager; | 53 using chromeos::input_method::InputMethodManager; |
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
606 input_method_list.end(), input_method_id); | 606 input_method_list.end(), input_method_id); |
607 if (pos != input_method_list.end()) { | 607 if (pos != input_method_list.end()) { |
608 input_method_list.erase(pos); | 608 input_method_list.erase(pos); |
609 prefs->SetString(pref_name, base::JoinString(input_method_list, ",")); | 609 prefs->SetString(pref_name, base::JoinString(input_method_list, ",")); |
610 } | 610 } |
611 #endif | 611 #endif |
612 return RespondNow(NoArguments()); | 612 return RespondNow(NoArguments()); |
613 } | 613 } |
614 | 614 |
615 } // namespace extensions | 615 } // namespace extensions |
OLD | NEW |