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

Unified Diff: content/test/test_web_contents.cc

Issue 606113005: Move RenderViewHost swap out state to RenderFrameHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix review suggestions Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/test/test_render_view_host.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/test_web_contents.cc
diff --git a/content/test/test_web_contents.cc b/content/test/test_web_contents.cc
index fdc3918b14ab4453ebe5165eba62d72821f8ad6e..f2ee15df13eecf5912deb8d52ad108142ab3f11c 100644
--- a/content/test/test_web_contents.cc
+++ b/content/test/test_web_contents.cc
@@ -161,13 +161,13 @@ void TestWebContents::CommitPendingNavigation() {
// Simulate the SwapOut_ACK. This is needed when cross-site navigation happens
// (old_rfh != rfh).
if (old_rfh != rfh)
- old_rfh->OnSwappedOut(false);
+ old_rfh->OnSwappedOut();
}
void TestWebContents::ProceedWithCrossSiteNavigation() {
if (!GetPendingMainFrame())
return;
- GetMainFrame()->GetRenderViewHost()->SendBeforeUnloadACK(true);
+ GetMainFrame()->SendBeforeUnloadACK(true);
}
RenderViewHostDelegateView* TestWebContents::GetDelegateView() {
« no previous file with comments | « content/test/test_render_view_host.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698