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

Unified Diff: content/browser/cross_site_transfer_browsertest.cc

Issue 2394343002: Removing ShouldSwapProcessesForRedirect (using DoesSiteRequireDedicatedProcess).
Patch Set: Rebasing... Created 3 years, 7 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 | « chrome/browser/ui/browser_browsertest.cc ('k') | content/browser/frame_host/navigation_handle_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/cross_site_transfer_browsertest.cc
diff --git a/content/browser/cross_site_transfer_browsertest.cc b/content/browser/cross_site_transfer_browsertest.cc
index 97cd504309da4332e960679322ff9fdc1d88cf5d..4a174ba3c1d617bbfd395f431a47319be8f4d347 100644
--- a/content/browser/cross_site_transfer_browsertest.cc
+++ b/content/browser/cross_site_transfer_browsertest.cc
@@ -270,7 +270,7 @@ IN_PROC_BROWSER_TEST_P(CrossSiteTransferTest,
// Force all future navigations to transfer. Note that this includes same-site
// navigiations which may cause double process swaps (via OpenURL and then via
// transfer). This test intentionally exercises that case.
- ShellContentBrowserClient::SetSwapProcessesForRedirect(true);
+ ShellContentBrowserClient::SetTransferAllNavigations(true);
// Navigate to a page on A.com with entry replacement. This navigation is
// cross-site, so the renderer will send it to the browser via OpenURL to give
@@ -330,7 +330,7 @@ IN_PROC_BROWSER_TEST_P(CrossSiteTransferTest,
// navigiations which may cause double process swaps (via OpenURL and then via
// transfer). All navigations in this test are same-site, so it only swaps
// processes via request transfer.
- ShellContentBrowserClient::SetSwapProcessesForRedirect(true);
+ ShellContentBrowserClient::SetTransferAllNavigations(true);
// Navigate in-process with entry replacement. It will then be transferred
// into a new one due to the call above.
@@ -412,7 +412,7 @@ IN_PROC_BROWSER_TEST_P(CrossSiteTransferTest, NoLeakOnCrossSiteCancel) {
EXPECT_TRUE(NavigateToURL(shell(), url1));
// Force all future navigations to transfer.
- ShellContentBrowserClient::SetSwapProcessesForRedirect(true);
+ ShellContentBrowserClient::SetTransferAllNavigations(true);
NoTransferRequestDelegate no_transfer_request_delegate;
WebContentsDelegate* old_delegate = shell()->web_contents()->GetDelegate();
« no previous file with comments | « chrome/browser/ui/browser_browsertest.cc ('k') | content/browser/frame_host/navigation_handle_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698