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

Issue 1847343002: Allow input.ime.activate() to be called from a non-user-action for the first time. (Closed)

Created:
4 years, 8 months ago by Azure Wei
Modified:
4 years, 8 months ago
Reviewers:
Shu Chen
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow input.ime.activate() to be called from a non-user-action for the first time. Currently, input.ime.activate() is only allowed to be called from a user action. This will bring a lot of efforts to activate the engine if user shut down and restart chrome. We want to make an exception that, if the user allows to activate the extension by default, then the extension could successfully call activate() when loaded, and only for once. That means, it still needs from user action if calling input.ime.activate() many times. BUG=517773 TEST=None Committed: https://crrev.com/035cd6af08529a2084e251a6115e63a13f97ff3d Cr-Commit-Position: refs/heads/master@{#384750}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rename |allow_to_active| as |warning_bubble_never_show|. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -6 lines) Patch
M chrome/browser/extensions/api/input_ime/input_ime_api_nonchromeos.cc View 1 4 chunks +34 lines, -6 lines 0 comments Download

Messages

Total messages: 12 (5 generated)
Azure Wei
Hello Shu, please review this cl. Thank you!
4 years, 8 months ago (2016-04-01 04:51:04 UTC) #3
Shu Chen
https://codereview.chromium.org/1847343002/diff/1/chrome/browser/extensions/api/input_ime/input_ime_api_nonchromeos.cc File chrome/browser/extensions/api/input_ime/input_ime_api_nonchromeos.cc (right): https://codereview.chromium.org/1847343002/diff/1/chrome/browser/extensions/api/input_ime/input_ime_api_nonchromeos.cc#newcode206 chrome/browser/extensions/api/input_ime/input_ime_api_nonchromeos.cc:206: bool allowed_to_activate = false; s/allowed_to_activate/warning_bubble_never_show/g https://codereview.chromium.org/1847343002/diff/1/chrome/browser/extensions/api/input_ime/input_ime_api_nonchromeos.cc#newcode209 chrome/browser/extensions/api/input_ime/input_ime_api_nonchromeos.cc:209: if (prefs->ReadPrefAsBoolean(extension_id(), ...
4 years, 8 months ago (2016-04-01 08:10:52 UTC) #4
Azure Wei
https://codereview.chromium.org/1847343002/diff/1/chrome/browser/extensions/api/input_ime/input_ime_api_nonchromeos.cc File chrome/browser/extensions/api/input_ime/input_ime_api_nonchromeos.cc (right): https://codereview.chromium.org/1847343002/diff/1/chrome/browser/extensions/api/input_ime/input_ime_api_nonchromeos.cc#newcode206 chrome/browser/extensions/api/input_ime/input_ime_api_nonchromeos.cc:206: bool allowed_to_activate = false; On 2016/04/01 08:10:52, Shu Chen ...
4 years, 8 months ago (2016-04-01 13:34:05 UTC) #5
Shu Chen
lgtm
4 years, 8 months ago (2016-04-01 14:52:44 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1847343002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1847343002/20001
4 years, 8 months ago (2016-04-01 22:16:37 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 8 months ago (2016-04-02 00:15:31 UTC) #10
commit-bot: I haz the power
4 years, 8 months ago (2016-04-02 00:16:42 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/035cd6af08529a2084e251a6115e63a13f97ff3d
Cr-Commit-Position: refs/heads/master@{#384750}

Powered by Google App Engine
This is Rietveld 408576698