| Index: chrome/browser/chromeos/input_method/mock_input_method_manager.cc
|
| diff --git a/chrome/browser/chromeos/input_method/mock_input_method_manager.cc b/chrome/browser/chromeos/input_method/mock_input_method_manager.cc
|
| index 4bc60775a3ebfe7b294324c102b7d44a31f218a7..d1d4bfcfa8e36cff3e46adb6fd97a58d907a6f54 100644
|
| --- a/chrome/browser/chromeos/input_method/mock_input_method_manager.cc
|
| +++ b/chrome/browser/chromeos/input_method/mock_input_method_manager.cc
|
| @@ -60,6 +60,18 @@ size_t MockInputMethodManager::GetNumActiveInputMethods() const {
|
| return 1;
|
| }
|
|
|
| +const InputMethodDescriptor* MockInputMethodManager::GetInputMethodFromId(
|
| + const std::string& input_method_id) const {
|
| + static const InputMethodDescriptor defaultInputMethod =
|
| + InputMethodUtil::GetFallbackInputMethodDescriptor();
|
| + for (size_t i = 0; i < active_input_method_ids_.size(); i++) {
|
| + if (input_method_id == active_input_method_ids_[i]) {
|
| + return &defaultInputMethod;
|
| + }
|
| + }
|
| + return NULL;
|
| +}
|
| +
|
| void MockInputMethodManager::EnableLayouts(const std::string& language_code,
|
| const std::string& initial_layout) {
|
| }
|
|
|