Decouple l10n_util from InputMethodUtil.
commit20fd79eeb79b9a0f8770a708ddcbf7f66564b57f
authornona@chromium.org <nona@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 18 Apr 2013 15:20:16 +0000 (18 15:20 +0000)
committernona@chromium.org <nona@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 18 Apr 2013 15:20:16 +0000 (18 15:20 +0000)
tree6748353019aa0dd758b5bfc820b6c1a3279f706d
parent002aec6aa74169469c214ec1a2b66f91678bf823
Decouple l10n_util from InputMethodUtil.

This CL changes:
 - Moving localization related function into delegate class.
 - Removing GetLanguageDisplayNameFromCode and GetLanguageNativeDisplayNameFromCode from InputMethodUtil because they are just thin wrapper function of l10n_util and only used from CrosLanguageOptionHandler.

This CL does not change any test expectations except TestGetLanguageNativeDisplayNameFromCode for checking regressions.
And I'm going to refactor strings related stuff to more appropriate location.
So let me keep tests as is.

BUG=164375
TEST=ran unit_tests and also checked there is no regression with this CL on actual devices.

Review URL: https://chromiumcodereview.appspot.com/14200032

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194927 0039d316-1c4b-4281-b951-d872f2087c98
15 files changed:
chrome/browser/chromeos/input_method/input_method_delegate_impl.cc
chrome/browser/chromeos/input_method/input_method_delegate_impl.h
chrome/browser/chromeos/input_method/input_method_manager_impl_unittest.cc
chrome/browser/chromeos/input_method/input_method_util.cc
chrome/browser/chromeos/input_method/input_method_util.h
chrome/browser/chromeos/input_method/input_method_util_unittest.cc
chrome/browser/chromeos/input_method/mock_input_method_manager.h
chrome/browser/ui/webui/options/chromeos/cros_language_options_handler.cc
chromeos/chromeos.gyp
chromeos/ime/fake_input_method_delegate.cc [new file with mode: 0644]
chromeos/ime/fake_input_method_delegate.h [new file with mode: 0644]
chromeos/ime/input_method_delegate.h
chromeos/ime/mock_input_method_delegate.cc [deleted file]
chromeos/ime/mock_input_method_delegate.h [deleted file]
chromeos/ime/xkeyboard_unittest.cc