summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/cros/language_library.h
diff options
context:
space:
mode:
authoryusukes@google.com <yusukes@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-12 13:00:15 +0000
committeryusukes@google.com <yusukes@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-12 13:00:15 +0000
commitd01bb807aad3a4c2095954dc0cc3342a41323e46 (patch)
treef9424bcf5098d9f290cfd123979b06a691571698 /chrome/browser/chromeos/cros/language_library.h
parentca449f177da1a0592b05f1f69249ebdc0342c6b6 (diff)
downloadchromium_src-d01bb807aad3a4c2095954dc0cc3342a41323e46.zip
chromium_src-d01bb807aad3a4c2095954dc0cc3342a41323e46.tar.gz
chromium_src-d01bb807aad3a4c2095954dc0cc3342a41323e46.tar.bz2
Simplify Preferences::SetPreloadEngines() function.
Stop using SetInputMethodActivated cros API and use the generic API, SetImeConfig, instead. This fix greatly reduces total number of ibus_config_set_value() calls. I'm still not 100% certain, but this change might fix crosbug.com/2471, "Fails to activate an input method occasionally." ibus-daemon seems to ignore too frequent ibus_config_set_value("general", "preload_engines", ...) calls. BUG=crosbug.com/2471 TEST=see the bug Review URL: http://codereview.chromium.org/1596021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44241 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/cros/language_library.h')
-rw-r--r--chrome/browser/chromeos/cros/language_library.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/chromeos/cros/language_library.h b/chrome/browser/chromeos/cros/language_library.h
index 853283a..efc49fd 100644
--- a/chrome/browser/chromeos/cros/language_library.h
+++ b/chrome/browser/chromeos/cros/language_library.h
@@ -55,6 +55,7 @@ class LanguageLibrary {
// Sets whether the input method specified by |input_method_id| is
// activated. If |activated| is true, activates the input method. If
// |activate| is false, deactivates the input method.
+ // TODO(yusukes): Probably we can remove this function.
virtual bool SetInputMethodActivated(const std::string& input_method_id,
bool activated) = 0;