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

Issue 391070: A quick fix for Issue 3798.... (Closed)

Created:
11 years, 1 month ago by Hironori Bono
Modified:
9 years, 7 months ago
Reviewers:
Peter Kasting
CC:
chromium-reviews_googlegroups.com, ben+cc_chromium.org
Visibility:
Public.

Description

A quick fix for Issue 3798. Some Chinese IMEs insert whitespace characters (U+3000) instead of input characters while they are composing text. So, trimming these whitespace characters (at the beginning of an omnibox) prevents from inputting text on these IMEs. As a quick fix, this change prevent our AutocompleteEditViewWin::OnImeComposition() from starting auto-complete when an omnibox starts with whitespace characters. BUG=3798 TEST=Type "google.com" on Omnibox, type "Tab" to start tab-to-search, type 'nihao' on Microsoft New Phonetic IME, and see we can see Chinese characters in the omnibox.

Patch Set 1 #

Total comments: 9

Patch Set 2 : '' #

Total comments: 2

Patch Set 3 : '' #

Total comments: 2

Patch Set 4 : '' #

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -0 lines) Patch
M chrome/browser/autocomplete/autocomplete_edit_view_win.cc View 1 2 3 4 1 chunk +27 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Peter Kasting
http://codereview.chromium.org/391070/diff/1/2 File chrome/browser/autocomplete/autocomplete_edit_view_win.cc (right): http://codereview.chromium.org/391070/diff/1/2#newcode455 Line 455: memset(&cf, 0, sizeof(cf)); Why is this block needed? ...
11 years, 1 month ago (2009-11-16 08:04:11 UTC) #1
Hironori Bono
Thank you so much for your quick comments and sorry for my bonehead mistakes. As ...
11 years, 1 month ago (2009-11-16 08:29:40 UTC) #2
Peter Kasting
Don't be so hard on yourself! http://codereview.chromium.org/391070/diff/3001/2002 File chrome/browser/autocomplete/autocomplete_edit_view_win.cc (right): http://codereview.chromium.org/391070/diff/3001/2002#newcode1263 Line 1263: if (TrimWhitespace(GetText(), ...
11 years, 1 month ago (2009-11-16 08:38:52 UTC) #3
Hironori Bono
Thank you for your review and comment. It seems my brain doesn't work well today. ...
11 years, 1 month ago (2009-11-16 11:13:54 UTC) #4
Peter Kasting
LGTM with nit http://codereview.chromium.org/391070/diff/2005/2006 File chrome/browser/autocomplete/autocomplete_edit_view_win.cc (right): http://codereview.chromium.org/391070/diff/2005/2006#newcode1267 Line 1267: scoped_array<wchar_t> text; Nit: Use a ...
11 years, 1 month ago (2009-11-16 20:03:44 UTC) #5
Hironori Bono
11 years, 1 month ago (2009-11-17 09:22:52 UTC) #6
Thank you for your review and comment.
I have landed this change as r32166.

Regards,

Hironori Bono

http://codereview.chromium.org/391070/diff/2005/2006
File chrome/browser/autocomplete/autocomplete_edit_view_win.cc (right):

http://codereview.chromium.org/391070/diff/2005/2006#newcode1267
Line 1267: scoped_array<wchar_t> text;
On 2009/11/16 20:03:44, Peter Kasting wrote:
> Nit: Use a std::wstring and string_util.h:WriteInto().

Done.

Powered by Google App Engine
This is Rietveld 408576698