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

Issue 23478020: Makes sure that an input method doesn't reference to a destroyed object. (Closed)

Created:
7 years, 3 months ago by Yuki
Modified:
7 years, 3 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, yusukes+watch_chromium.org, jam, penghuang+watch_chromium.org, sievers+watch_chromium.org, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, danakj+watch_chromium.org, James Su, miu+watch_chromium.org, yukawa
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Makes sure that an input method doesn't reference to a destroyed object. This CL makes sure that an input method never reference to a destroyed object. We're not 100% sure why Issue 280219 is happening, but it seems a destroyed object is referenced from an input method. For render_widget_host_view_win.cc, there is no need to check the focus. Even if it's not focused, the object going to be destroyed should be removed from the TSFBridge. BUG=280219 TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221302

Patch Set 1 #

Total comments: 4

Patch Set 2 : Worked on nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -2 lines) Patch
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_win.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/base/ime/dummy_input_method.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/base/ime/dummy_input_method.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M ui/base/ime/fake_input_method.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/base/ime/fake_input_method.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M ui/base/ime/input_method.h View 1 chunk +6 lines, -1 line 0 comments Download
M ui/base/ime/input_method_base.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/base/ime/input_method_base.cc View 1 chunk +9 lines, -0 lines 0 comments Download
M ui/base/ime/mock_input_method.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/base/ime/mock_input_method.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Yuki
Could you review this CL?
7 years, 3 months ago (2013-09-04 09:08:53 UTC) #1
Yohei Yukawa
lgtm
7 years, 3 months ago (2013-09-04 09:22:59 UTC) #2
Seigo Nonaka
lgtm lgtm with nits Please confirm this work with following scenario: 1. Focus in/out from/to ...
7 years, 3 months ago (2013-09-04 10:19:21 UTC) #3
Yuki
https://codereview.chromium.org/23478020/diff/1/ui/base/ime/input_method.h File ui/base/ime/input_method.h (right): https://codereview.chromium.org/23478020/diff/1/ui/base/ime/input_method.h#newcode90 ui/base/ime/input_method.h:90: // not. This method is meant to be called ...
7 years, 3 months ago (2013-09-04 14:01:51 UTC) #4
Yuki
Sky, could you review this CL as an owner of content/browser/ ?
7 years, 3 months ago (2013-09-04 14:04:13 UTC) #5
sky
How about some test coverage?
7 years, 3 months ago (2013-09-04 16:26:52 UTC) #6
sky
I'm LGTMing now, but would like test coverage.
7 years, 3 months ago (2013-09-04 16:27:36 UTC) #7
Yuki
Thanks for the review. I'd like to fix the issue very soon, so let me ...
7 years, 3 months ago (2013-09-04 16:55:38 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yukishiino@chromium.org/23478020/6001
7 years, 3 months ago (2013-09-04 16:56:08 UTC) #9
commit-bot: I haz the power
7 years, 3 months ago (2013-09-04 23:47:38 UTC) #10
Message was sent while issue was closed.
Change committed as 221302

Powered by Google App Engine
This is Rietveld 408576698