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

Issue 2806613002: Check IME state in ImeController (Closed)

Created:
3 years, 8 months ago by Wenzhao (Colin) Zang
Modified:
3 years, 7 months ago
CC:
chromium-reviews, kalyank, sadrul, rkc, tbarzic, xiyuan
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Check IME state in ImeController ImeController::CanCycleIme() and ImeController::CanSwitchIme() should first check if IME state is NULL and if it is, ignore the cycle / switch action because it does not make sense before IME initialization. BUG=703510 Review-Url: https://codereview.chromium.org/2806613002 Cr-Commit-Position: refs/heads/master@{#467804} Committed: https://chromium.googlesource.com/chromium/src/+/f8c865910c21c379df39eb057530e13630d2f00d

Patch Set 1 #

Patch Set 2 : Postpone message box until profile is initialized #

Total comments: 2

Patch Set 3 : Add active user check #

Total comments: 2

Patch Set 4 : Add comments #

Total comments: 4

Patch Set 5 : Change according to comments #

Total comments: 1

Patch Set 6 : Delete unnecessary files #

Total comments: 2

Patch Set 7 : Check IME state #

Total comments: 4

Patch Set 8 : Change according to comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -0 lines) Patch
M chrome/browser/ui/ash/ime_controller_chromeos.cc View 1 2 3 4 5 6 7 2 chunks +12 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (18 generated)
Wenzhao (Colin) Zang
The value of the IME state remains NULL until it's set in PostProfileInit(), so if ...
3 years, 8 months ago (2017-04-06 22:11:44 UTC) #3
Alexander Alekseev
On 2017/04/06 22:11:44, Wenzhao (Colin) Zang wrote: > The value of the IME state remains ...
3 years, 8 months ago (2017-04-06 23:34:40 UTC) #4
Wenzhao (Colin) Zang
At first I wanted to add ExtensionErrorReporter as an observer for ProfileManager, but I took ...
3 years, 8 months ago (2017-04-08 00:59:14 UTC) #10
Wenzhao (Colin) Zang
alemate@, friendly ping. Thanks.
3 years, 8 months ago (2017-04-19 20:41:30 UTC) #11
Alexander Alekseev
https://codereview.chromium.org/2806613002/diff/20001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc File chrome/browser/chromeos/chrome_browser_main_chromeos.cc (right): https://codereview.chromium.org/2806613002/diff/20001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc#newcode714 chrome/browser/chromeos/chrome_browser_main_chromeos.cc:714: ExtensionErrorReporter::GetInstance()->OnProfileInitialized(); You need to pass profile() here and later ...
3 years, 8 months ago (2017-04-19 21:53:32 UTC) #12
Wenzhao (Colin) Zang
https://codereview.chromium.org/2806613002/diff/20001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc File chrome/browser/chromeos/chrome_browser_main_chromeos.cc (right): https://codereview.chromium.org/2806613002/diff/20001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc#newcode714 chrome/browser/chromeos/chrome_browser_main_chromeos.cc:714: ExtensionErrorReporter::GetInstance()->OnProfileInitialized(); On 2017/04/19 21:53:32, Alexander Alekseev wrote: > You ...
3 years, 8 months ago (2017-04-21 22:41:50 UTC) #13
Alexander Alekseev
lgtm
3 years, 8 months ago (2017-04-24 11:40:09 UTC) #14
Alexander Alekseev
https://codereview.chromium.org/2806613002/diff/40001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc File chrome/browser/chromeos/chrome_browser_main_chromeos.cc (right): https://codereview.chromium.org/2806613002/diff/40001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc#newcode754 chrome/browser/chromeos/chrome_browser_main_chromeos.cc:754: if (ProfileHelper::Get()->GetUserByProfile(profile())->is_active()) Maybe we should add more details to ...
3 years, 8 months ago (2017-04-24 11:43:27 UTC) #15
Wenzhao (Colin) Zang
xiyuan@, would you please review the small changes in chrome/browser/chromeos/chrome_browser_main_chromeos.cc? Thanks a lot. tbarzic@, would ...
3 years, 8 months ago (2017-04-24 17:48:37 UTC) #17
xiyuan
https://codereview.chromium.org/2806613002/diff/60001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc File chrome/browser/chromeos/chrome_browser_main_chromeos.cc (right): https://codereview.chromium.org/2806613002/diff/60001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc#newcode756 chrome/browser/chromeos/chrome_browser_main_chromeos.cc:756: if (ProfileHelper::Get()->GetUserByProfile(profile())->is_active()) Most of the time (i.e. NOT the ...
3 years, 8 months ago (2017-04-24 18:21:51 UTC) #18
Wenzhao (Colin) Zang
The signin profile check is added. Thanks. https://codereview.chromium.org/2806613002/diff/40001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc File chrome/browser/chromeos/chrome_browser_main_chromeos.cc (right): https://codereview.chromium.org/2806613002/diff/40001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc#newcode754 chrome/browser/chromeos/chrome_browser_main_chromeos.cc:754: if (ProfileHelper::Get()->GetUserByProfile(profile())->is_active()) ...
3 years, 8 months ago (2017-04-25 22:06:32 UTC) #19
Wenzhao (Colin) Zang
3 years, 8 months ago (2017-04-25 22:11:40 UTC) #20
tbarzic
https://codereview.chromium.org/2806613002/diff/100001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc File chrome/browser/chromeos/chrome_browser_main_chromeos.cc (right): https://codereview.chromium.org/2806613002/diff/100001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc#newcode756 chrome/browser/chromeos/chrome_browser_main_chromeos.cc:756: if (ProfileHelper::IsSigninProfile(profile()) || Isn't this code run only for ...
3 years, 8 months ago (2017-04-25 22:25:55 UTC) #21
xiyuan
https://codereview.chromium.org/2806613002/diff/60001/chrome/browser/extensions/extension_error_reporter.h File chrome/browser/extensions/extension_error_reporter.h (right): https://codereview.chromium.org/2806613002/diff/60001/chrome/browser/extensions/extension_error_reporter.h#newcode90 chrome/browser/extensions/extension_error_reporter.h:90: bool should_postpone_messages_ = true; On 2017/04/24 18:21:51, xiyuan wrote: ...
3 years, 8 months ago (2017-04-25 22:31:28 UTC) #22
Wenzhao (Colin) Zang
alemate@, stevenjb@: please take a look at this small CL. Thanks so much. tbarzic@, xiyuan@: ...
3 years, 8 months ago (2017-04-27 03:03:34 UTC) #26
Alexander Alekseev
Actually Colin persuaded me that the first version was the best one in this complicate ...
3 years, 8 months ago (2017-04-27 03:12:36 UTC) #27
xiyuan
lgtm with nits https://codereview.chromium.org/2806613002/diff/120001/chrome/browser/ui/ash/ime_controller_chromeos.cc File chrome/browser/ui/ash/ime_controller_chromeos.cc (right): https://codereview.chromium.org/2806613002/diff/120001/chrome/browser/ui/ash/ime_controller_chromeos.cc#newcode14 chrome/browser/ui/ash/ime_controller_chromeos.cc:14: if (manager->GetActiveIMEState() == NULL) { nit: ...
3 years, 8 months ago (2017-04-27 03:16:41 UTC) #29
Wenzhao (Colin) Zang
https://codereview.chromium.org/2806613002/diff/120001/chrome/browser/ui/ash/ime_controller_chromeos.cc File chrome/browser/ui/ash/ime_controller_chromeos.cc (right): https://codereview.chromium.org/2806613002/diff/120001/chrome/browser/ui/ash/ime_controller_chromeos.cc#newcode14 chrome/browser/ui/ash/ime_controller_chromeos.cc:14: if (manager->GetActiveIMEState() == NULL) { On 2017/04/27 03:16:41, xiyuan ...
3 years, 8 months ago (2017-04-27 03:31:55 UTC) #30
stevenjb
As long as the WARNING does not show up under normal operation (on a device ...
3 years, 7 months ago (2017-04-27 17:52:24 UTC) #31
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/2806613002/140001
3 years, 7 months ago (2017-04-27 20:49:54 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/372156)
3 years, 7 months ago (2017-04-27 21:17:47 UTC) #36
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/2806613002/140001
3 years, 7 months ago (2017-04-27 21:26:55 UTC) #38
commit-bot: I haz the power
3 years, 7 months ago (2017-04-28 01:37:06 UTC) #41
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/f8c865910c21c379df39eb057530...

Powered by Google App Engine
This is Rietveld 408576698