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

Issue 2149493004: [refactor] Removing the dead method RenderWidgetHostView::GetSelectedText() (Closed)

Created:
4 years, 5 months ago by EhsanK
Modified:
4 years, 5 months ago
Reviewers:
kenrb, Charlie Reis, lazyboy
CC:
chromium-reviews, creis+watch_chromium.org, yusukes+watch_chromium.org, shuchen+watch_chromium.org, nasko+codewatch_chromium.org, jam, nona+watch_chromium.org, darin-cc_chromium.org, James Su, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[refactor] Removing the dead method RenderWidgetHostView::GetSelectedText() The method along with all its overrides have been removed. BUG=578168 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation

Patch Set 1 #

Patch Set 2 : Removed an interactive ui test from <webview> #

Total comments: 1

Patch Set 3 : Added the test back #

Total comments: 2

Patch Set 4 : Fixed an error #

Patch Set 5 : Made const #

Total comments: 6

Patch Set 6 : Removed const #

Patch Set 7 : Added a comment #

Patch Set 8 : Used the correct RWHV #

Patch Set 9 : Changed RenderWidgetHostViewGuest::SelectionChanged #

Patch Set 10 : Call method on correct view #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -27 lines) Patch
M chrome/browser/apps/guest_view/web_view_interactive_browsertest.cc View 1 2 3 4 5 6 7 9 3 chunks +6 lines, -4 lines 0 comments Download
M content/browser/frame_host/render_widget_host_view_guest.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/frame_host/render_widget_host_view_guest.cc View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -4 lines 1 comment Download
M content/browser/renderer_host/render_widget_host_view_base.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_base.cc View 1 2 3 4 5 6 7 8 9 2 chunks +8 lines, -8 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mus.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mus.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M content/public/browser/render_widget_host_view.h View 1 chunk +0 lines, -3 lines 0 comments Download
M content/public/test/text_input_test_utils.h View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
M content/public/test/text_input_test_utils.cc View 1 2 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 45 (22 generated)
EhsanK
PTAL. Also adding lazyboy@ for input on the test I removed. https://codereview.chromium.org/2149493004/diff/20001/chrome/browser/apps/guest_view/web_view_interactive_browsertest.cc File chrome/browser/apps/guest_view/web_view_interactive_browsertest.cc (left): ...
4 years, 5 months ago (2016-07-13 17:44:58 UTC) #7
Charlie Reis
I'm happy if this code is actually dead. Looking at source history, it looks like ...
4 years, 5 months ago (2016-07-13 18:04:34 UTC) #8
EhsanK
On 2016/07/13 18:04:34, Charlie Reis wrote: > I'm happy if this code is actually dead. ...
4 years, 5 months ago (2016-07-13 18:11:21 UTC) #9
EhsanK
On 2016/07/13 18:11:21, EhsanK wrote: > On 2016/07/13 18:04:34, Charlie Reis wrote: > > I'm ...
4 years, 5 months ago (2016-07-13 18:12:54 UTC) #10
lazyboy
On 2016/07/13 18:12:54, EhsanK wrote: > On 2016/07/13 18:11:21, EhsanK wrote: > > On 2016/07/13 ...
4 years, 5 months ago (2016-07-13 20:26:22 UTC) #11
EhsanK
Thanks for the feedback. Charlie: I think our options are either: 1- removing the method ...
4 years, 5 months ago (2016-07-13 20:53:21 UTC) #12
lazyboy
Test look fine to me. https://codereview.chromium.org/2149493004/diff/40001/content/browser/renderer_host/render_widget_host_view_base.h File content/browser/renderer_host/render_widget_host_view_base.h (right): https://codereview.chromium.org/2149493004/diff/40001/content/browser/renderer_host/render_widget_host_view_base.h#newcode398 content/browser/renderer_host/render_widget_host_view_base.h:398: base::string16 GetSelectedTextForTesting(); const;
4 years, 5 months ago (2016-07-13 21:01:39 UTC) #13
EhsanK
Thanks! PTAL. https://codereview.chromium.org/2149493004/diff/40001/content/browser/renderer_host/render_widget_host_view_base.h File content/browser/renderer_host/render_widget_host_view_base.h (right): https://codereview.chromium.org/2149493004/diff/40001/content/browser/renderer_host/render_widget_host_view_base.h#newcode398 content/browser/renderer_host/render_widget_host_view_base.h:398: base::string16 GetSelectedTextForTesting(); On 2016/07/13 21:01:39, lazyboy wrote: ...
4 years, 5 months ago (2016-07-13 21:04:55 UTC) #14
Charlie Reis
https://codereview.chromium.org/2149493004/diff/80001/chrome/browser/apps/guest_view/web_view_interactive_browsertest.cc File chrome/browser/apps/guest_view/web_view_interactive_browsertest.cc (right): https://codereview.chromium.org/2149493004/diff/80001/chrome/browser/apps/guest_view/web_view_interactive_browsertest.cc#newcode1314 chrome/browser/apps/guest_view/web_view_interactive_browsertest.cc:1314: content::GetSelectedTextForRenderWidgetHostView(embedder_rwhv)); I don't suppose you can use GetTextFromRange (and ...
4 years, 5 months ago (2016-07-13 21:16:52 UTC) #15
EhsanK
PTAL. https://codereview.chromium.org/2149493004/diff/80001/chrome/browser/apps/guest_view/web_view_interactive_browsertest.cc File chrome/browser/apps/guest_view/web_view_interactive_browsertest.cc (right): https://codereview.chromium.org/2149493004/diff/80001/chrome/browser/apps/guest_view/web_view_interactive_browsertest.cc#newcode1314 chrome/browser/apps/guest_view/web_view_interactive_browsertest.cc:1314: content::GetSelectedTextForRenderWidgetHostView(embedder_rwhv)); On 2016/07/13 21:16:52, Charlie Reis wrote: > ...
4 years, 5 months ago (2016-07-13 21:31:41 UTC) #16
EhsanK
On 2016/07/13 21:31:41, EhsanK wrote: > PTAL. > > https://codereview.chromium.org/2149493004/diff/80001/chrome/browser/apps/guest_view/web_view_interactive_browsertest.cc > File chrome/browser/apps/guest_view/web_view_interactive_browsertest.cc (right): > ...
4 years, 5 months ago (2016-07-13 21:32:09 UTC) #17
Charlie Reis
Let's list 578168 as the bug number in the CL description, just to keep these ...
4 years, 5 months ago (2016-07-14 18:28:38 UTC) #18
EhsanK
PTAL. I also added the generic IME bug for tracking this change. https://codereview.chromium.org/2149493004/diff/80001/chrome/browser/apps/guest_view/web_view_interactive_browsertest.cc File chrome/browser/apps/guest_view/web_view_interactive_browsertest.cc ...
4 years, 5 months ago (2016-07-14 19:09:17 UTC) #20
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 5 months ago (2016-07-14 19:13:49 UTC) #23
Charlie Reis
Thanks, LGTM.
4 years, 5 months ago (2016-07-14 19:20:01 UTC) #24
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/2149493004/120001
4 years, 5 months ago (2016-07-14 19:40:12 UTC) #27
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 5 months ago (2016-07-14 19:40:15 UTC) #28
lazyboy
web_view_interactive_browsertest.cc lgtm
4 years, 5 months ago (2016-07-14 20:28:00 UTC) #33
EhsanK
On 2016/07/14 20:28:00, lazyboy wrote: > web_view_interactive_browsertest.cc lgtm Thank you for the reviews!
4 years, 5 months ago (2016-07-14 20:28:56 UTC) #34
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/2149493004/120001
4 years, 5 months ago (2016-07-14 20:29:14 UTC) #37
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 5 months ago (2016-07-14 22:32:45 UTC) #43
Charlie Reis
https://codereview.chromium.org/2149493004/diff/200001/content/browser/frame_host/render_widget_host_view_guest.cc File content/browser/frame_host/render_widget_host_view_guest.cc (right): https://codereview.chromium.org/2149493004/diff/200001/content/browser/frame_host/render_widget_host_view_guest.cc#newcode441 content/browser/frame_host/render_widget_host_view_guest.cc:441: RenderWidgetHostViewBase::SelectionChanged(text, offset, range); I don't think we should add ...
4 years, 5 months ago (2016-07-14 22:45:06 UTC) #44
EhsanK
4 years, 5 months ago (2016-07-14 23:21:09 UTC) #45
Given the complicated situation with removing the method and
the WebViewInteractiveTest.TextSelection, I am closing this
CL in favor of https://codereview.chromium.org/2152073002 and
also future implementation of OOPIF IME based on TextInputManager
which will, hopefully,enable us to remove this method altogether and satisfy the
test at the same time.

Powered by Google App Engine
This is Rietveld 408576698