summaryrefslogtreecommitdiffstats
path: root/content/shell
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-30 20:42:13 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-30 20:42:13 +0000
commit944074f23a24f063cfbaee41490aec7a23588ee5 (patch)
treeba231a2b0b476f19af44930313c0f4302c234f83 /content/shell
parent0dada41ee4155dad6c637b1e7acc26bb5f00b4d5 (diff)
downloadchromium_src-944074f23a24f063cfbaee41490aec7a23588ee5.zip
chromium_src-944074f23a24f063cfbaee41490aec7a23588ee5.tar.gz
chromium_src-944074f23a24f063cfbaee41490aec7a23588ee5.tar.bz2
Move dispatchBeforeUnloadEvent to WebFrame, part 2/3.
BUG=357782 TEST=no change Review URL: https://codereview.chromium.org/216793014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@260463 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/shell')
-rw-r--r--content/shell/renderer/test_runner/test_runner.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/content/shell/renderer/test_runner/test_runner.cc b/content/shell/renderer/test_runner/test_runner.cc
index de6d749..b5804931 100644
--- a/content/shell/renderer/test_runner/test_runner.cc
+++ b/content/shell/renderer/test_runner/test_runner.cc
@@ -1933,7 +1933,7 @@ bool TestRunner::IsCommandEnabled(const std::string& command) {
}
bool TestRunner::CallShouldCloseOnWebView() {
- return web_view_->dispatchBeforeUnloadEvent();
+ return web_view_->mainFrame()->dispatchBeforeUnloadEvent();
}
void TestRunner::SetDomainRelaxationForbiddenForURLScheme(