Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Issue 9852008: Update IME preferences outside the IME status button when Uber Tray is in use. (Closed)

Created:
8 years, 9 months ago by Yusuke Sato
Modified:
8 years, 9 months ago
Reviewers:
Zachary Kuznia
CC:
chromium-reviews, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org, yusukes+watch_chromium.org
Visibility:
Public.

Description

Update 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+328 lines, -1 line) Patch
A chrome/browser/chromeos/input_method/browser_state_monitor.h View 1 chunk +74 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/input_method/browser_state_monitor.cc View 1 chunk +203 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/input_method/input_method_manager.h View 1 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/input_method/input_method_manager.cc View 1 4 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/preferences.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/preferences.cc View 3 chunks +26 lines, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Yusuke Sato
Zach, could you review this? This is for a P1 M19 issue. I implemented browser_state_monitor.h/cc ...
8 years, 9 months ago (2012-03-26 06:02:36 UTC) #1
Zachary Kuznia
http://codereview.chromium.org/9852008/diff/6004/chrome/browser/chromeos/input_method/browser_state_monitor.cc File chrome/browser/chromeos/input_method/browser_state_monitor.cc (right): http://codereview.chromium.org/9852008/diff/6004/chrome/browser/chromeos/input_method/browser_state_monitor.cc#newcode102 chrome/browser/chromeos/input_method/browser_state_monitor.cc:102: UpdateLocalState(current_input_method.id()); Does this handle the case where an IME ...
8 years, 9 months ago (2012-03-26 06:26:07 UTC) #2
Yusuke Sato
http://codereview.chromium.org/9852008/diff/6004/chrome/browser/chromeos/input_method/browser_state_monitor.cc File chrome/browser/chromeos/input_method/browser_state_monitor.cc (right): http://codereview.chromium.org/9852008/diff/6004/chrome/browser/chromeos/input_method/browser_state_monitor.cc#newcode102 chrome/browser/chromeos/input_method/browser_state_monitor.cc:102: UpdateLocalState(current_input_method.id()); Actually Aura version of Chrome OS never enables ...
8 years, 9 months ago (2012-03-26 06:42:43 UTC) #3
Zachary Kuznia
lgtm
8 years, 9 months ago (2012-03-26 06:45:54 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yusukes@chromium.org/9852008/6004
8 years, 9 months ago (2012-03-26 06:56:28 UTC) #5
commit-bot: I haz the power
Try job failure for 9852008-6004 (retry) (retry) on win_rel for step "browser_tests" (clobber build). It's ...
8 years, 9 months ago (2012-03-26 09:56:33 UTC) #6
Yusuke Sato
Zach, I slightly changed the wat to delete browser_state_monitor_ to fix crbug.com/120198. Could you take ...
8 years, 9 months ago (2012-03-27 01:51:53 UTC) #7
Zachary Kuznia
lgtm
8 years, 9 months ago (2012-03-27 01:54:34 UTC) #8
Yusuke Sato
git try -b cros_x86 passed. re-landing..
8 years, 9 months ago (2012-03-27 02:55:36 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yusukes@chromium.org/9852008/12001
8 years, 9 months ago (2012-03-27 02:55:46 UTC) #10
commit-bot: I haz the power
8 years, 9 months ago (2012-03-27 06:33:49 UTC) #11
Change committed as 129154

Powered by Google App Engine
This is Rietveld 408576698