Chromium Code Reviews
DescriptionRemove 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. #Messages
Total messages: 16 (9 generated)
|