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

Issue 7976028: Fix infinite loop in GetInputMethod. (Closed)

Created:
9 years, 3 months ago by oshima
Modified:
9 years, 3 months ago
Reviewers:
mmocny, Peng, sky
CC:
chromium-reviews, dhollowa, darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Fix infinite loop in GetInputMethod. RWHVV shouldn't update ime if there is no inputmethod associated with the view. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=102225

Patch Set 1 #

Total comments: 1

Patch Set 2 : " #

Patch Set 3 : update comment #

Total comments: 2

Patch Set 4 : comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -4 lines) Patch
M chrome/browser/renderer_host/render_widget_host_view_views.cc View 1 2 3 1 chunk +10 lines, -3 lines 0 comments Download
M views/widget/widget.cc View 1 2 3 1 chunk +6 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
mmocny
Other than not compiling :) it seems to have fixed the issue. Or, at least, ...
9 years, 3 months ago (2011-09-21 18:57:53 UTC) #1
oshima
9 years, 3 months ago (2011-09-21 19:13:49 UTC) #2
Peng
On 2011/09/21 19:13:49, oshima wrote: GetInputMethod() can returns NULL in this CL. I think we ...
9 years, 3 months ago (2011-09-21 19:26:13 UTC) #3
oshima
On 2011/09/21 19:26:13, Peng wrote: > On 2011/09/21 19:13:49, oshima wrote: > > GetInputMethod() can ...
9 years, 3 months ago (2011-09-21 19:41:33 UTC) #4
Peng
On 2011/09/21 19:41:33, oshima wrote: > On 2011/09/21 19:26:13, Peng wrote: > > On 2011/09/21 ...
9 years, 3 months ago (2011-09-21 20:10:49 UTC) #5
sky
LGTM http://codereview.chromium.org/7976028/diff/5001/views/widget/widget.cc File views/widget/widget.cc (right): http://codereview.chromium.org/7976028/diff/5001/views/widget/widget.cc#newcode630 views/widget/widget.cc:630: return toplevel && toplevel != this ? toplevel->GetInputMethod() ...
9 years, 3 months ago (2011-09-21 21:01:45 UTC) #6
oshima
9 years, 3 months ago (2011-09-22 01:17:19 UTC) #7
http://codereview.chromium.org/7976028/diff/5001/views/widget/widget.cc
File views/widget/widget.cc (right):

http://codereview.chromium.org/7976028/diff/5001/views/widget/widget.cc#newco...
views/widget/widget.cc:630: return toplevel && toplevel != this ?
toplevel->GetInputMethod() : NULL;
On 2011/09/21 21:01:46, sky wrote:
> nit: parens around toplevel && toplevel != this

Done.

Powered by Google App Engine
This is Rietveld 408576698