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

Unified Diff: content/browser/frame_host/navigator_impl_unittest.cc

Issue 1142123002: Remove swapped-out usage in --site-per-process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Another round of fixes. Created 5 years, 6 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
Index: content/browser/frame_host/navigator_impl_unittest.cc
diff --git a/content/browser/frame_host/navigator_impl_unittest.cc b/content/browser/frame_host/navigator_impl_unittest.cc
index c72708b8ffd09459bdcf60bbb436c267a9ce4b1c..8f1886f85f1ab9a7310fc5b095e50247156dfd4c 100644
--- a/content/browser/frame_host/navigator_impl_unittest.cc
+++ b/content/browser/frame_host/navigator_impl_unittest.cc
@@ -931,6 +931,13 @@ TEST_F(NavigatorTestWithBrowserSideNavigation,
// using the same SiteInstance.
TEST_F(NavigatorTestWithBrowserSideNavigation,
SpeculativeRendererReuseSwappedOutRFH) {
+ // This test doesn't make sense in --site-per-process where swapped out
+ // RenderFrameHost is no longer used.
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kSitePerProcess)) {
+ return;
+ }
+
// Navigate to an initial site.
const GURL kUrl1("http://wikipedia.org/");
contents()->NavigateAndCommit(kUrl1);

Powered by Google App Engine
This is Rietveld 408576698