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

Issue 1138103003: Remember previous keyboard type and use that when switching to "none" type. (Closed)

Created:
5 years, 7 months ago by bcwhite
Modified:
5 years, 7 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, yosin_UTC9, Yuta Kitamura
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remember previous keyboard type and use that when switching to "none" type. BUG=484139 Committed: https://crrev.com/e8e5d60be5f3b36634a1b012ec21874a4abe0ef0 Cr-Commit-Position: refs/heads/master@{#330551}

Patch Set 1 #

Total comments: 3

Patch Set 2 : clear sPreviousOutAttrs when closing keyboard #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -1 line) Patch
M content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java View 1 3 chunks +16 lines, -1 line 0 comments Download

Messages

Total messages: 24 (3 generated)
bcwhite
5 years, 7 months ago (2015-05-11 20:20:05 UTC) #2
aurimas (slooooooooow)
https://codereview.chromium.org/1138103003/diff/1/content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java File content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java (right): https://codereview.chromium.org/1138103003/diff/1/content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java#newcode144 content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java:144: if (imeAdapter.getTextInputType() == TextInputType.NONE && sPreviousOutAttrs != null) { ...
5 years, 7 months ago (2015-05-11 20:22:39 UTC) #3
bcwhite
On 2015/05/11 20:22:39, aurimas wrote: > https://codereview.chromium.org/1138103003/diff/1/content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java > File > content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java > (right): > > ...
5 years, 7 months ago (2015-05-11 20:25:32 UTC) #4
aurimas (slooooooooow)
https://codereview.chromium.org/1138103003/diff/1/content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java File content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java (right): https://codereview.chromium.org/1138103003/diff/1/content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java#newcode103 content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java:103: private static EditorInfo sPreviousOutAttrs; Should this be cleared when ...
5 years, 7 months ago (2015-05-11 20:35:33 UTC) #5
bcwhite
https://codereview.chromium.org/1138103003/diff/1/content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java File content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java (right): https://codereview.chromium.org/1138103003/diff/1/content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java#newcode103 content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java:103: private static EditorInfo sPreviousOutAttrs; On 2015/05/11 20:35:33, aurimas wrote: ...
5 years, 7 months ago (2015-05-11 20:58:18 UTC) #6
aurimas (slooooooooow)
On 2015/05/11 at 20:58:18, bcwhite wrote: > https://codereview.chromium.org/1138103003/diff/1/content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java > File content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java (right): > > https://codereview.chromium.org/1138103003/diff/1/content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java#newcode103 ...
5 years, 7 months ago (2015-05-11 21:11:27 UTC) #7
bcwhite
On 2015/05/11 21:11:27, aurimas wrote: > On 2015/05/11 at 20:58:18, bcwhite wrote: > > > ...
5 years, 7 months ago (2015-05-11 21:18:00 UTC) #8
aurimas (slooooooooow)
On 2015/05/11 at 21:18:00, bcwhite wrote: > On 2015/05/11 21:11:27, aurimas wrote: > > On ...
5 years, 7 months ago (2015-05-11 23:17:09 UTC) #9
aelias_OOO_until_Jul13
Hmm, logic like this doesn't belong in a factory method, I think this patch is ...
5 years, 7 months ago (2015-05-12 00:06:43 UTC) #11
bcwhite
On 2015/05/12 00:06:43, aelias wrote: > Hmm, logic like this doesn't belong in a factory ...
5 years, 7 months ago (2015-05-12 14:49:00 UTC) #12
aelias_OOO_until_Jul13
On 2015/05/12 at 14:49:00, bcwhite wrote: > My thoughts exactly. I don't know how to ...
5 years, 7 months ago (2015-05-13 01:17:05 UTC) #13
aelias_OOO_until_Jul13
yutak@ is the Blink selection OWNER so cc'ing him as well.
5 years, 7 months ago (2015-05-13 04:44:19 UTC) #14
bcwhite
I'd like to submit this and get the fix in and then remove it (and ...
5 years, 7 months ago (2015-05-14 10:38:35 UTC) #15
aelias_OOO_until_Jul13
I disagree, let's not add more hacks. Even with urgent issues, I generally say we ...
5 years, 7 months ago (2015-05-14 19:41:47 UTC) #16
bcwhite
I've checked this against Google Keyboard, Swype, SwiftKey, and Samsung Keyboard with no side effects. ...
5 years, 7 months ago (2015-05-19 16:47:36 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1138103003/20001
5 years, 7 months ago (2015-05-19 16:49:24 UTC) #19
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 7 months ago (2015-05-19 17:40:39 UTC) #20
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/e8e5d60be5f3b36634a1b012ec21874a4abe0ef0 Cr-Commit-Position: refs/heads/master@{#330551}
5 years, 7 months ago (2015-05-19 17:41:24 UTC) #21
aelias_OOO_until_Jul13
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/1148503003/ by aelias@chromium.org. ...
5 years, 7 months ago (2015-05-19 21:58:42 UTC) #22
aelias_OOO_until_Jul13
Brian, this patch was opposed by both me and aurimas@. My opposition was clear, and ...
5 years, 7 months ago (2015-05-19 22:06:56 UTC) #23
bcwhite
5 years, 7 months ago (2015-05-20 14:58:02 UTC) #24
Message was sent while issue was closed.
On 2015/05/19 22:06:56, aelias_OOO_until_May29 wrote:
> Brian, this patch was opposed by both me and aurimas@.  My opposition was
clear,
> and aurimas's "green" comment #7 was not intended as an approval but just a
case
> of accidental string matching.  He said "I am just worried that this will
> somehow cause more bugs for us. It does not seem correct that we report the
> wrong input type. Could we ask Google Keyboard team to make sure this will not
> break things for them? If they are OK with it then LGTM."  That is not a basis
> for landing.
> 
> To be clear, landing against clear reviewer opposition is unprofessional. 
This
> is the first time I've had to revert a patch for this reason in my 7 years at
> Google.

Back off.  I had approval and I addressed Aurimas's comments.  The change does
not affect keyboard operation.  The same calls are made, just without changing
the configuration.  It may not have been how you would have done it but it was a
legitimate way to do it and consistent with existing code for handling the
transient condition.

I also addressed, by opening a new issue, your concerns about finding a better
way to handle this and the delayed dismiss of the keyboard but your messages
says OOO until the end of May so there was little point in expecting feedback
from you.

You're also being hypocritical as you just went and reverted the patch without
any discussion.  So in essence, you did the very same thing you're criticizing
me about.  Sadly, this isn't the first time I've encountered this in my 8 years
at Google.

Powered by Google App Engine
This is Rietveld 408576698