DescriptionUpdate IME preferences outside the IME status button when Uber Tray is in use.
* browser_state_monitor.cc/h:
Added. The class which monitors a notification from the browser to keep track of the browser state (not logged in, logged in, etc.) and notify the current state to the input method manager. The class also updates the appropriate Chrome prefs (~/Local\ State or ~/Preferences) depending on the current browser state.
When Uber Tray is disabled via chrome://flags, the class does nothing. In the next CL, I'll remove all preference code from InputMethodButton and make browser_state_monitor.cc work regardless of whether Uber Tray is disabled or not.
* preferences.cc:
When Uber Tray is enabled, handle prefs::kLanguageCurrentInputMethod and prefs::kLanguagePreviousInputMethod prefs in the class. preferences.cc is the standard place for checking the initial values of Chrome OS specific user prefs.
BUG=chromiun-os:28297
BUG=120198
TEST=manual (not ready for writing unit tests. It will be done as part of 19655 very soon for R20). Checked test cases in http://code.google.com/p/chromium-os/issues/detail?id=19655#c11.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=128889
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=129154
Patch Set 1 : review #
Total comments: 2
Patch Set 2 : retry #
Messages
Total messages: 11 (0 generated)
|