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

Issue 2274013003: Keeps the opt-in IME menu in lock screen. (Closed)

Created:
4 years, 4 months ago by Azure Wei
Modified:
4 years, 3 months ago
Reviewers:
Shu Chen, stevenjb
CC:
chromium-reviews, nona+watch_chromium.org, oshima+watch_chromium.org, shuchen+watch_chromium.org, yusukes+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

The opt-in IME menu was implemented with panel in shelf, which could not show in lock screen. Thus, the menu changed back the system menu. Since now the opt-in IME menu is created with native views on tray, we don't need to change back to system menu in lock screen. When switching users, the opt-in IME menu could not get preferences change event to update the menu activation state. This cl also fix this issue by saving the state by profile in InputMethodManager and sending the event of switching active user. BUG=640266 TEST=Verified on local build. Committed: https://crrev.com/47a06020c728d53c5f3c900234f7b6def397816a Cr-Commit-Position: refs/heads/master@{#414988}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Send message when switch user. #

Total comments: 6

Patch Set 3 : Addressed comments. #

Total comments: 6

Patch Set 4 : Trigger ImeMenuActivationChanged only state is changed. #

Patch Set 5 : Sate menu_activated in StateImpl. #

Total comments: 6

Patch Set 6 : Addressed comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -16 lines) Patch
M chrome/browser/chromeos/input_method/input_method_manager_impl.h View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/input_method/input_method_manager_impl.cc View 1 2 3 4 5 5 chunks +15 lines, -16 lines 0 comments Download
M chrome/browser/chromeos/input_method/mock_input_method_manager.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/input_method/mock_input_method_manager.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/session/user_session_manager.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ui/base/ime/chromeos/input_method_manager.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (16 generated)
Azure Wei
Please review this cl. Thanks!
4 years, 4 months ago (2016-08-24 11:31:18 UTC) #7
Shu Chen
https://codereview.chromium.org/2274013003/diff/1/chrome/browser/chromeos/input_method/input_method_manager_impl.cc File chrome/browser/chromeos/input_method/input_method_manager_impl.cc (left): https://codereview.chromium.org/2274013003/diff/1/chrome/browser/chromeos/input_method/input_method_manager_impl.cc#oldcode938 chrome/browser/chromeos/input_method/input_method_manager_impl.cc:938: } Per offline discussion, this logic should be moved ...
4 years, 3 months ago (2016-08-25 11:49:32 UTC) #8
Azure Wei
https://codereview.chromium.org/2274013003/diff/1/chrome/browser/chromeos/input_method/input_method_manager_impl.cc File chrome/browser/chromeos/input_method/input_method_manager_impl.cc (left): https://codereview.chromium.org/2274013003/diff/1/chrome/browser/chromeos/input_method/input_method_manager_impl.cc#oldcode938 chrome/browser/chromeos/input_method/input_method_manager_impl.cc:938: } On 2016/08/25 11:49:32, Shu Chen wrote: > Per ...
4 years, 3 months ago (2016-08-26 09:30:35 UTC) #14
Azure Wei
R+ stevenjb@ for owner of: chrome/browser/chromeos/login/session/user_session_manager.cc
4 years, 3 months ago (2016-08-26 14:10:05 UTC) #16
stevenjb
https://codereview.chromium.org/2274013003/diff/20001/chrome/browser/chromeos/input_method/input_method_manager_impl.cc File chrome/browser/chromeos/input_method/input_method_manager_impl.cc (right): https://codereview.chromium.org/2274013003/diff/20001/chrome/browser/chromeos/input_method/input_method_manager_impl.cc#newcode1207 chrome/browser/chromeos/input_method/input_method_manager_impl.cc:1207: return menu_map_.find(profile) != menu_map_.end() && menu_map_[profile]; Instead of doing ...
4 years, 3 months ago (2016-08-26 17:15:03 UTC) #17
Azure Wei
https://codereview.chromium.org/2274013003/diff/20001/chrome/browser/chromeos/input_method/input_method_manager_impl.cc File chrome/browser/chromeos/input_method/input_method_manager_impl.cc (right): https://codereview.chromium.org/2274013003/diff/20001/chrome/browser/chromeos/input_method/input_method_manager_impl.cc#newcode1207 chrome/browser/chromeos/input_method/input_method_manager_impl.cc:1207: return menu_map_.find(profile) != menu_map_.end() && menu_map_[profile]; On 2016/08/26 17:15:02, ...
4 years, 3 months ago (2016-08-26 21:59:59 UTC) #18
stevenjb
lgtm
4 years, 3 months ago (2016-08-26 22:58:04 UTC) #19
Shu Chen
https://codereview.chromium.org/2274013003/diff/40001/chrome/browser/chromeos/input_method/input_method_manager_impl.cc File chrome/browser/chromeos/input_method/input_method_manager_impl.cc (right): https://codereview.chromium.org/2274013003/diff/40001/chrome/browser/chromeos/input_method/input_method_manager_impl.cc#newcode1179 chrome/browser/chromeos/input_method/input_method_manager_impl.cc:1179: menu_activated_for_profile_[state_->profile] = is_active; Notifying ImeMenuActivationChanged() is a non-trivial op. ...
4 years, 3 months ago (2016-08-27 03:11:02 UTC) #20
Azure Wei
https://codereview.chromium.org/2274013003/diff/40001/chrome/browser/chromeos/input_method/input_method_manager_impl.cc File chrome/browser/chromeos/input_method/input_method_manager_impl.cc (right): https://codereview.chromium.org/2274013003/diff/40001/chrome/browser/chromeos/input_method/input_method_manager_impl.cc#newcode1179 chrome/browser/chromeos/input_method/input_method_manager_impl.cc:1179: menu_activated_for_profile_[state_->profile] = is_active; On 2016/08/27 03:11:01, Shu Chen wrote: ...
4 years, 3 months ago (2016-08-27 06:55:30 UTC) #21
Azure Wei
https://codereview.chromium.org/2274013003/diff/40001/chrome/browser/chromeos/input_method/input_method_manager_impl.cc File chrome/browser/chromeos/input_method/input_method_manager_impl.cc (right): https://codereview.chromium.org/2274013003/diff/40001/chrome/browser/chromeos/input_method/input_method_manager_impl.cc#newcode1179 chrome/browser/chromeos/input_method/input_method_manager_impl.cc:1179: menu_activated_for_profile_[state_->profile] = is_active; On 2016/08/27 06:55:30, Azure Wei wrote: ...
4 years, 3 months ago (2016-08-27 07:08:49 UTC) #22
Azure Wei
https://codereview.chromium.org/2274013003/diff/40001/chrome/browser/chromeos/login/session/user_session_manager.cc File chrome/browser/chromeos/login/session/user_session_manager.cc (right): https://codereview.chromium.org/2274013003/diff/40001/chrome/browser/chromeos/login/session/user_session_manager.cc#newcode1658 chrome/browser/chromeos/login/session/user_session_manager.cc:1658: manager->ImeMenuActivationChanged(manager->GetImeMenuActivation(profile)); On 2016/08/27 06:55:30, Azure Wei wrote: > On ...
4 years, 3 months ago (2016-08-29 02:34:41 UTC) #23
Shu Chen
https://codereview.chromium.org/2274013003/diff/80001/chrome/browser/chromeos/input_method/input_method_manager_impl.cc File chrome/browser/chromeos/input_method/input_method_manager_impl.cc (right): https://codereview.chromium.org/2274013003/diff/80001/chrome/browser/chromeos/input_method/input_method_manager_impl.cc#newcode1180 chrome/browser/chromeos/input_method/input_method_manager_impl.cc:1180: // active user changed. revert this comment change. https://codereview.chromium.org/2274013003/diff/80001/chrome/browser/chromeos/input_method/input_method_manager_impl.cc#newcode1186 ...
4 years, 3 months ago (2016-08-29 08:20:08 UTC) #24
Azure Wei
https://codereview.chromium.org/2274013003/diff/80001/chrome/browser/chromeos/input_method/input_method_manager_impl.cc File chrome/browser/chromeos/input_method/input_method_manager_impl.cc (right): https://codereview.chromium.org/2274013003/diff/80001/chrome/browser/chromeos/input_method/input_method_manager_impl.cc#newcode1180 chrome/browser/chromeos/input_method/input_method_manager_impl.cc:1180: // active user changed. On 2016/08/29 08:20:08, Shu Chen ...
4 years, 3 months ago (2016-08-29 08:27:47 UTC) #25
Shu Chen
lgtm
4 years, 3 months ago (2016-08-29 08:29:19 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2274013003/100001
4 years, 3 months ago (2016-08-29 08:40:15 UTC) #29
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 3 months ago (2016-08-29 09:21:18 UTC) #31
commit-bot: I haz the power
4 years, 3 months ago (2016-08-29 09:22:58 UTC) #33
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/47a06020c728d53c5f3c900234f7b6def397816a
Cr-Commit-Position: refs/heads/master@{#414988}

Powered by Google App Engine
This is Rietveld 408576698