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

Issue 1787743003: Remove unneeded code from WebTestProxyBase. (Closed)

Created:
4 years, 9 months ago by Łukasz Anforowicz
Modified:
4 years, 9 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, jochen+watch_chromium.org, mkwst+moarreviews-shell_chromium.org, mlamouri+watch-content_chromium.org, mlamouri+watch-test-runner_chromium.org, Peter Beverloo, 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

Remove unneeded code from WebTestProxyBase. Removed WebTestProxyBase::GetDelegate and GetInterfaces methods, which were only used to access WebTestDelegate::PrintMessage and WebTestInterfaces::ShouldStayOnPageAfterHandlingBeforeUnload from 4 methods of WebFrameTestProxy. Implementing these 4 methods inside WebTestProxyBase is more consistent with the rest of the code - i.e. we want WebTestProxy and WebFrameTestProxy to have no logic and always delegate to WebTestProxyBase instead. Removing GetDelegate and GetInterface also avoids unnecessarily exposing full breadth of these interfaces when only a small subset is needed. The above allowed WebTestProxyBase::removing web_test_interfaces_ field. The above also meant that we no longer need to expose ShouldStayOnPageAfterHandlingBeforeUnload from WebTestRunner - exposing via TestRunner is sufficient. Removed unused WebTestProxyBase::web_widget() accessor. Removed unused TestInterfaces::GetProxy() accessor. Removed Hide/MoveValidationMessage method declarations from WebTestProxyBase - there were no definitions anywhere... Removed BlinkTestRunner::OnWebTestProxyBaseDestroy because it had an empty body. Consequently also removed WebTestDelegate::OnWebTestProxyBaseDestroy. BUG= Committed: https://crrev.com/e26c3d638b03199daccb3bf602adac2d8a4a7f75 Cr-Commit-Position: refs/heads/master@{#381110}

Patch Set 1 #

Patch Set 2 : Also removing unused TestInterfaces::GetProxy() #

Patch Set 3 : Rebasing... #

Patch Set 4 : Fixing accidental reversal of condition in RunModalBeforeUnloadDialog. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -53 lines) Patch
M components/test_runner/test_interfaces.h View 1 2 2 chunks +0 lines, -2 lines 0 comments Download
M components/test_runner/test_interfaces.cc View 1 2 chunks +0 lines, -5 lines 0 comments Download
M components/test_runner/test_runner.h View 1 2 3 2 chunks +1 line, -1 line 0 comments Download
M components/test_runner/test_runner.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M components/test_runner/web_frame_test_proxy.h View 1 2 1 chunk +6 lines, -15 lines 0 comments Download
M components/test_runner/web_test_delegate.h View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M components/test_runner/web_test_proxy.h View 1 2 3 chunks +7 lines, -7 lines 0 comments Download
M components/test_runner/web_test_proxy.cc View 1 2 3 4 chunks +28 lines, -12 lines 0 comments Download
M components/test_runner/web_test_runner.h View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M content/shell/renderer/layout_test/blink_test_runner.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M content/shell/renderer/layout_test/blink_test_runner.cc View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 16 (9 generated)
Łukasz Anforowicz
jochen@, can you please take a look?
4 years, 9 months ago (2016-03-11 23:23:20 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1787743003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1787743003/1
4 years, 9 months ago (2016-03-11 23:23:54 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_dbg_simulator_gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_gn/builds/3804) ios_rel_device_gn on ...
4 years, 9 months ago (2016-03-11 23:26:32 UTC) #6
jochen (gone - plz use gerrit)
lgtm
4 years, 9 months ago (2016-03-14 14:22:25 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1787743003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1787743003/60001
4 years, 9 months ago (2016-03-14 21:18:38 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1787743003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1787743003/60001
4 years, 9 months ago (2016-03-14 23:22:34 UTC) #14
commit-bot: I haz the power
4 years, 9 months ago (2016-03-14 23:32:28 UTC) #16
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/e26c3d638b03199daccb3bf602adac2d8a4a7f75
Cr-Commit-Position: refs/heads/master@{#381110}

Powered by Google App Engine
This is Rietveld 408576698