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

Side by Side Diff: chrome/browser/chromeos/input_method/component_extension_ime_manager_impl.cc

Issue 17266002: Replace Chinese Input with migration code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebasing Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/chromeos/input_method/input_method_manager_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 "jhffeifommiaekmbkkjlpmilogcfdohp", 57 "jhffeifommiaekmbkkjlpmilogcfdohp",
58 "/usr/share/chromeos-assets/input_methods/keyboard_layouts", 58 "/usr/share/chromeos-assets/input_methods/keyboard_layouts",
59 }, 59 },
60 { 60 {
61 // Google input tools. 61 // Google input tools.
62 "gjaehgfemfahhmlgpdfknkhdnemmolop", 62 "gjaehgfemfahhmlgpdfknkhdnemmolop",
63 "/usr/share/chromeos-assets/input_methods/input_tools", 63 "/usr/share/chromeos-assets/input_methods/input_tools",
64 }, 64 },
65 #else 65 #else
66 { 66 {
67 // Open-sourced Pinyin Chinese Input Method.
68 "cpgalbafkoofkjmaeonnfijgpfennjjn",
69 "/usr/share/chromeos-assets/input_methods/pinyin",
70 },
71 {
72 // Open-sourced Zhuyin Chinese Input Method.
73 "ekbifjdfhkmdeeajnolmgdlmkllopefi",
74 "/usr/share/chromeos-assets/input_methods/zhuyin",
75 },
76 {
77 // Open-sourced Cangjie Chinese Input Method.
78 "aeebooiibjahgpgmhkeocbeekccfknbj",
79 "/usr/share/chromeos-assets/input_methods/cangjie",
80 },
81 {
67 // Open-sourced Mozc Japanese Input. 82 // Open-sourced Mozc Japanese Input.
68 "bbaiamgfapehflhememkfglaehiobjnk", 83 "bbaiamgfapehflhememkfglaehiobjnk",
69 "/usr/share/chromeos-assets/input_methods/nacl_mozc", 84 "/usr/share/chromeos-assets/input_methods/nacl_mozc",
70 }, 85 },
71 #endif 86 #endif
72 }; 87 };
73 88
74 extensions::ComponentLoader* GetComponentLoader() { 89 extensions::ComponentLoader* GetComponentLoader() {
75 Profile* profile = ProfileManager::GetDefaultProfileOrOffTheRecord(); 90 Profile* profile = ProfileManager::GetDefaultProfileOrOffTheRecord();
76 extensions::ExtensionSystem* extension_system = 91 extensions::ExtensionSystem* extension_system =
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 std::vector<ComponentExtensionIME>* result, 274 std::vector<ComponentExtensionIME>* result,
260 const base::Closure& callback) { 275 const base::Closure& callback) {
261 DCHECK(thread_checker_.CalledOnValidThread()); 276 DCHECK(thread_checker_.CalledOnValidThread());
262 DCHECK(result); 277 DCHECK(result);
263 component_extension_list_ = *result; 278 component_extension_list_ = *result;
264 is_initialized_ = true; 279 is_initialized_ = true;
265 callback.Run(); 280 callback.Run();
266 } 281 }
267 282
268 } // namespace chromeos 283 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/input_method/input_method_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698