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); |