| Index: chromeos/ime/mock_input_method_delegate.cc
|
| diff --git a/chromeos/ime/mock_input_method_delegate.cc b/chromeos/ime/mock_input_method_delegate.cc
|
| index 0f681324f0a5fdbce29e8fae3008868788749655..49c562197911836419daeaeb787931e3d42e6d2a 100644
|
| --- a/chromeos/ime/mock_input_method_delegate.cc
|
| +++ b/chromeos/ime/mock_input_method_delegate.cc
|
| @@ -18,8 +18,17 @@ std::string MockInputMethodDelegate::GetHardwareKeyboardLayout() const {
|
| return hardware_keyboard_layout_;
|
| }
|
|
|
| -std::string MockInputMethodDelegate::GetActiveLocale() const {
|
| - return active_locale_;
|
| +string16 MockInputMethodDelegate::GetLocalizedString(int resource_id) const {
|
| + if (!get_localized_string_callback_.is_null())
|
| + return get_localized_string_callback_.Run(resource_id);
|
| + return string16();
|
| +}
|
| +
|
| +string16 MockInputMethodDelegate::GetDisplayLanguageName(
|
| + const std::string& language_code) const {
|
| + if (!get_display_language_name_callback_.is_null())
|
| + return get_display_language_name_callback_.Run(language_code);
|
| + return string16();
|
| }
|
|
|
| } // namespace input_method
|
|
|