Index: chrome/browser/task_manager/task_manager_browsertest.cc |
diff --git a/chrome/browser/task_manager/task_manager_browsertest.cc b/chrome/browser/task_manager/task_manager_browsertest.cc |
index 5d13c532a6f1c08af84ae2eb7eca42ca61b43106..4699d67b07f4464781a1f25bfb1790139dbd35c1 100644 |
--- a/chrome/browser/task_manager/task_manager_browsertest.cc |
+++ b/chrome/browser/task_manager/task_manager_browsertest.cc |
@@ -38,7 +38,7 @@ |
#include "content/public/browser/notification_service.h" |
#include "content/public/browser/page_navigator.h" |
#include "content/public/browser/render_frame_host.h" |
-#include "content/public/common/content_switches.h" |
+#include "content/public/common/site_isolation_policy.h" |
#include "content/public/test/browser_test_utils.h" |
#include "content/public/test/content_browser_test_utils.h" |
#include "extensions/browser/extension_system.h" |
@@ -159,12 +159,11 @@ class TaskManagerOOPIFBrowserTest : public TaskManagerBrowserTest, |
void SetUpCommandLine(base::CommandLine* command_line) override { |
TaskManagerBrowserTest::SetUpCommandLine(command_line); |
if (GetParam()) |
- command_line->AppendSwitch(switches::kSitePerProcess); |
+ content::SiteIsolationPolicy::IsolateAllSitesForTesting(command_line); |
} |
bool ShouldExpectSubframes() { |
- return base::CommandLine::ForCurrentProcess()->HasSwitch( |
- switches::kSitePerProcess); |
+ return content::SiteIsolationPolicy::AreAllSitesIsolatedForTesting(); |
} |
private: |