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

Issue 2840443002: Add a test for RenderWidgetHostConnector (Closed)

Created:
3 years, 8 months ago by Jinsuk Kim
Modified:
3 years, 8 months ago
CC:
chromium-reviews, jam, darin-cc_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a test for RenderWidgetHostConnector A new test got added to render_widget_host_connector_browsertest.cc which ensures RWHVA gets connected to objects inheriting RenderWidgetHostConnector regardless of the order in which they are created. Previously this had a bug resulting in RWHVA not connected ImeAdapter if RWHVA was created first, hence keeping soft keyboard from showing up. Also removed |WebContentsObserver::RenderViewReady()| override. It was overridden to initialize rwvha in the connector after creation. But it only covers the following cases: - connector created -> rwhva created -> RenderViewReady invoked - rwhva created -> connector created -> RenderViewReady invoked Can't cover the following case: - rwhva created -> RenderViewReady invoked -> connector created Now Initialize() covers them all, the method became redundant. BUG=713924 Review-Url: https://codereview.chromium.org/2840443002 Cr-Commit-Position: refs/heads/master@{#466877} Committed: https://chromium.googlesource.com/chromium/src/+/414a9028af64f0e8d7289b16e829d782f4591368

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -5 lines) Patch
M content/browser/android/render_widget_host_connector.cc View 2 chunks +0 lines, -5 lines 1 comment Download
M content/browser/android/render_widget_host_connector_browsertest.cc View 2 chunks +21 lines, -0 lines 0 comments Download
A content/test/data/page_with_popup.html View 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (11 generated)
Jinsuk Kim
phajdan.jr@chromium.org: Please review changes in content/test boliu@chromium.org: Please review changes in content/browser Note: The situation ...
3 years, 8 months ago (2017-04-24 04:11:40 UTC) #3
boliu
https://codereview.chromium.org/2840443002/diff/1/content/browser/android/render_widget_host_connector.cc File content/browser/android/render_widget_host_connector.cc (left): https://codereview.chromium.org/2840443002/diff/1/content/browser/android/render_widget_host_connector.cc#oldcode58 content/browser/android/render_widget_host_connector.cc:58: void RenderWidgetHostConnector::Observer::RenderViewReady() { why is this not needed anymore?
3 years, 8 months ago (2017-04-24 16:35:41 UTC) #4
Jinsuk Kim
On 2017/04/24 16:35:41, boliu wrote: > https://codereview.chromium.org/2840443002/diff/1/content/browser/android/render_widget_host_connector.cc > File content/browser/android/render_widget_host_connector.cc (left): > > https://codereview.chromium.org/2840443002/diff/1/content/browser/android/render_widget_host_connector.cc#oldcode58 > ...
3 years, 8 months ago (2017-04-24 22:56:47 UTC) #5
boliu
lgtm On 2017/04/24 22:56:47, Jinsuk Kim wrote: > On 2017/04/24 16:35:41, boliu wrote: > > ...
3 years, 8 months ago (2017-04-24 23:30:43 UTC) #6
Jinsuk Kim
On 2017/04/24 23:30:43, boliu wrote: > lgtm > > On 2017/04/24 22:56:47, Jinsuk Kim wrote: ...
3 years, 8 months ago (2017-04-25 02:00:22 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2840443002/1
3 years, 8 months ago (2017-04-25 02:01:07 UTC) #15
commit-bot: I haz the power
3 years, 8 months ago (2017-04-25 05:16:40 UTC) #18
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/414a9028af64f0e8d7289b16e829...

Powered by Google App Engine
This is Rietveld 408576698