OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/chromeos/input_method/component_extension_ime_manager_i
mpl.h" | 5 #include "chrome/browser/chromeos/input_method/component_extension_ime_manager_i
mpl.h" |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "chrome/browser/extensions/component_loader.h" | 9 #include "chrome/browser/extensions/component_loader.h" |
10 #include "chrome/browser/extensions/extension_service.h" | 10 #include "chrome/browser/extensions/extension_service.h" |
11 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
12 #include "chrome/browser/profiles/profile_manager.h" | 12 #include "chrome/browser/profiles/profile_manager.h" |
13 #include "chrome/common/extensions/extension_file_util.h" | 13 #include "chrome/common/extensions/extension_file_util.h" |
14 #include "chrome/common/extensions/extension_l10n_util.h" | 14 #include "chrome/common/extensions/extension_l10n_util.h" |
15 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
16 #include "extensions/browser/extension_system.h" | 16 #include "extensions/browser/extension_system.h" |
17 #include "extensions/common/extension.h" | 17 #include "extensions/common/extension.h" |
18 #include "extensions/common/manifest_constants.h" | 18 #include "extensions/common/manifest_constants.h" |
19 #include "ui/base/l10n/l10n_util.h" | 19 #include "ui/base/l10n/l10n_util.h" |
20 | 20 |
21 namespace chromeos { | 21 namespace chromeos { |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
25 struct WhitelistedComponentExtensionIME { | 25 struct WhitelistedComponentExtensionIME { |
26 const char* id; | 26 const char* id; |
27 const char* path; | 27 const char* path; |
28 } whitelisted_component_extension[] = { | 28 } whitelisted_component_extension[] = { |
29 { | 29 { |
| 30 // ChromeOS xkb extension. |
| 31 "fgoepimhcoialccpbmpnnblemnepkkao", |
| 32 "/usr/share/chromeos-assets/input_methods/xkb", |
| 33 }, |
| 34 { |
30 // ChromeOS Keyboards extension. | 35 // ChromeOS Keyboards extension. |
31 "jhffeifommiaekmbkkjlpmilogcfdohp", | 36 "jhffeifommiaekmbkkjlpmilogcfdohp", |
32 "/usr/share/chromeos-assets/input_methods/keyboard_layouts", | 37 "/usr/share/chromeos-assets/input_methods/keyboard_layouts", |
33 }, | 38 }, |
34 { | 39 { |
35 // ChromeOS Hangul Input. | 40 // ChromeOS Hangul Input. |
36 "bdgdidmhaijohebebipajioienkglgfo", | 41 "bdgdidmhaijohebebipajioienkglgfo", |
37 "/usr/share/chromeos-assets/input_methods/hangul", | 42 "/usr/share/chromeos-assets/input_methods/hangul", |
38 }, | 43 }, |
39 #if defined(OFFICIAL_BUILD) | 44 #if defined(OFFICIAL_BUILD) |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 std::vector<ComponentExtensionIME>* result, | 312 std::vector<ComponentExtensionIME>* result, |
308 const base::Closure& callback) { | 313 const base::Closure& callback) { |
309 DCHECK(thread_checker_.CalledOnValidThread()); | 314 DCHECK(thread_checker_.CalledOnValidThread()); |
310 DCHECK(result); | 315 DCHECK(result); |
311 component_extension_list_ = *result; | 316 component_extension_list_ = *result; |
312 is_initialized_ = true; | 317 is_initialized_ = true; |
313 callback.Run(); | 318 callback.Run(); |
314 } | 319 } |
315 | 320 |
316 } // namespace chromeos | 321 } // namespace chromeos |
OLD | NEW |