| Index: content/browser/site_instance_impl_unittest.cc
|
| diff --git a/content/browser/site_instance_impl_unittest.cc b/content/browser/site_instance_impl_unittest.cc
|
| index 7267449eda77b4fcdd85345ceae1fb2f0ab3fb36..1d151a40f41a8ab79f5b074640a487af09a0c665 100644
|
| --- a/content/browser/site_instance_impl_unittest.cc
|
| +++ b/content/browser/site_instance_impl_unittest.cc
|
| @@ -19,6 +19,7 @@
|
| #include "content/public/common/content_client.h"
|
| #include "content/public/common/content_constants.h"
|
| #include "content/public/common/content_switches.h"
|
| +#include "content/public/common/site_isolation_policy.h"
|
| #include "content/public/common/url_constants.h"
|
| #include "content/public/common/url_utils.h"
|
| #include "content/public/test/mock_render_process_host.h"
|
| @@ -569,9 +570,7 @@ static SiteInstanceImpl* CreateSiteInstance(BrowserContext* browser_context,
|
| TEST_F(SiteInstanceTest, ProcessSharingByType) {
|
| // This test shouldn't run with --site-per-process mode, which prohibits
|
| // the renderer process reuse this test explicitly exercises.
|
| - const base::CommandLine& command_line =
|
| - *base::CommandLine::ForCurrentProcess();
|
| - if (command_line.HasSwitch(switches::kSitePerProcess))
|
| + if (SiteIsolationPolicy::AreAllSitesIsolatedForTesting())
|
| return;
|
|
|
| // On Android by default the number of renderer hosts is unlimited and process
|
| @@ -692,8 +691,8 @@ TEST_F(SiteInstanceTest, HasWrongProcessForURL) {
|
| // Test to ensure that HasWrongProcessForURL behaves properly even when
|
| // --site-per-process is used (http://crbug.com/160671).
|
| TEST_F(SiteInstanceTest, HasWrongProcessForURLInSitePerProcess) {
|
| - base::CommandLine::ForCurrentProcess()->AppendSwitch(
|
| - switches::kSitePerProcess);
|
| + SiteIsolationPolicy::IsolateAllSitesForTesting(
|
| + base::CommandLine::ForCurrentProcess());
|
|
|
| scoped_ptr<TestBrowserContext> browser_context(new TestBrowserContext());
|
| scoped_ptr<RenderProcessHost> host;
|
|
|