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

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

Issue 467073002: Only initialize the input method list for once, no need to re-initialize for each profile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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/chromeos/input_method/mock_input_method_manager.h" 5 #include "chrome/browser/chromeos/input_method/mock_input_method_manager.h"
6 6
7 namespace chromeos { 7 namespace chromeos {
8 namespace input_method { 8 namespace input_method {
9 9
10 MockInputMethodManager::MockInputMethodManager() 10 MockInputMethodManager::MockInputMethodManager()
11 : add_observer_count_(0), 11 : add_observer_count_(0),
12 remove_observer_count_(0), 12 remove_observer_count_(0),
13 util_(&delegate_), 13 util_(&delegate_),
14 mod3_used_(false) { 14 mod3_used_(false) {
15 active_input_method_ids_.push_back("xkb:us::eng"); 15 active_input_method_ids_.push_back("xkb:us::eng");
16 } 16 }
17 17
18 MockInputMethodManager::~MockInputMethodManager() { 18 MockInputMethodManager::~MockInputMethodManager() {
19 } 19 }
20 20
21 void MockInputMethodManager::InitializeComponentExtension() {
22 }
23
24 InputMethodManager::State MockInputMethodManager::GetState() { 21 InputMethodManager::State MockInputMethodManager::GetState() {
25 return InputMethodManager::STATE_BROWSER_SCREEN; 22 return InputMethodManager::STATE_BROWSER_SCREEN;
26 } 23 }
27 24
28 void MockInputMethodManager::AddObserver( 25 void MockInputMethodManager::AddObserver(
29 InputMethodManager::Observer* observer) { 26 InputMethodManager::Observer* observer) {
30 ++add_observer_count_; 27 ++add_observer_count_;
31 } 28 }
32 29
33 void MockInputMethodManager::AddCandidateWindowObserver( 30 void MockInputMethodManager::AddCandidateWindowObserver(
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 return true; 188 return true;
192 } 189 }
193 190
194 bool MockInputMethodManager::MigrateInputMethods( 191 bool MockInputMethodManager::MigrateInputMethods(
195 std::vector<std::string>* input_method_ids) { 192 std::vector<std::string>* input_method_ids) {
196 return false; 193 return false;
197 } 194 }
198 195
199 } // namespace input_method 196 } // namespace input_method
200 } // namespace chromeos 197 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/input_method/mock_input_method_manager.h ('k') | chrome/browser/extensions/component_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698