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

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

Issue 428783008: GetActiveUserProfile() should not be called before profile is initialized. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comment on GetProfile added. 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()
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 93
94 void MockInputMethodManager::ChangeInputMethod( 94 void MockInputMethodManager::ChangeInputMethod(
95 const std::string& input_method_id) { 95 const std::string& input_method_id) {
96 } 96 }
97 97
98 void MockInputMethodManager::ActivateInputMethodMenuItem( 98 void MockInputMethodManager::ActivateInputMethodMenuItem(
99 const std::string& key) { 99 const std::string& key) {
100 } 100 }
101 101
102 void MockInputMethodManager::AddInputMethodExtension( 102 void MockInputMethodManager::AddInputMethodExtension(
103 Profile* profile,
103 const std::string& id, 104 const std::string& id,
104 InputMethodEngineInterface* instance) { 105 InputMethodEngineInterface* instance) {
105 } 106 }
106 107
107 void MockInputMethodManager::RemoveInputMethodExtension(const std::string& id) { 108 void MockInputMethodManager::RemoveInputMethodExtension(Profile* profile,
109 const std::string& id) {
108 } 110 }
109 111
110 void MockInputMethodManager::GetInputMethodExtensions( 112 void MockInputMethodManager::GetInputMethodExtensions(
111 InputMethodDescriptors* result) { 113 InputMethodDescriptors* result) {
112 } 114 }
113 115
114 void MockInputMethodManager::SetEnabledExtensionImes( 116 void MockInputMethodManager::SetEnabledExtensionImes(
115 std::vector<std::string>* ids) { 117 std::vector<std::string>* ids) {
116 } 118 }
117 119
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 return true; 187 return true;
186 } 188 }
187 189
188 bool MockInputMethodManager::MigrateInputMethods( 190 bool MockInputMethodManager::MigrateInputMethods(
189 std::vector<std::string>* input_method_ids) { 191 std::vector<std::string>* input_method_ids) {
190 return false; 192 return false;
191 } 193 }
192 194
193 } // namespace input_method 195 } // namespace input_method
194 } // namespace chromeos 196 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698