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

Unified Diff: content/test/test_web_contents.cc

Issue 88503002: Have the unload event execute in background on cross-site navigations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Keeping the old rvh alive for up to 1s Created 7 years 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
Index: content/test/test_web_contents.cc
diff --git a/content/test/test_web_contents.cc b/content/test/test_web_contents.cc
index a2a42e6e0213bc5e795fc863204cd14465474809..2036c9e1b7c4d51e0d39912d169eee3d86cfc828 100644
--- a/content/test/test_web_contents.cc
+++ b/content/test/test_web_contents.cc
@@ -147,7 +147,7 @@ void TestWebContents::CommitPendingNavigation() {
// RVH, before the navigation commits. This is needed when
// cross-site navigation happens (old_rvh != rvh).
if (old_rvh != rvh)
- static_cast<RenderViewHostImpl*>(old_rvh)->OnSwappedOut(false);
+ static_cast<RenderViewHostImpl*>(old_rvh)->OnSwappedOut(false, false);
rvh->SendNavigate(page_id, entry->GetURL());
}
« content/public/browser/render_process_host.h ('K') | « 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