| Index: chrome/browser/chrome_content_browser_client_browsertest.cc
|
| diff --git a/chrome/browser/chrome_content_browser_client_browsertest.cc b/chrome/browser/chrome_content_browser_client_browsertest.cc
|
| index 5268dccfa2c06ad105a5d40cea65aae8fa00a0e3..3a2e65f276db65c926c3afe63e46d1bc1b48a798 100644
|
| --- a/chrome/browser/chrome_content_browser_client_browsertest.cc
|
| +++ b/chrome/browser/chrome_content_browser_client_browsertest.cc
|
| @@ -82,12 +82,26 @@ IN_PROC_BROWSER_TEST_F(ChromeContentBrowserClientBrowserTest,
|
| EXPECT_EQ(url, entry->GetVirtualURL());
|
| }
|
|
|
| +// Use a test class with SetUpCommandLine to ensure the flag is sent to the
|
| +// first renderer process.
|
| +class ChromeContentBrowserClientSitePerProcessTest
|
| + : public ChromeContentBrowserClientBrowserTest {
|
| + public:
|
| + ChromeContentBrowserClientSitePerProcessTest() {}
|
| +
|
| + void SetUpCommandLine(base::CommandLine* command_line) override {
|
| + content::IsolateAllSitesForTesting(command_line);
|
| + }
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClientSitePerProcessTest);
|
| +};
|
| +
|
| // Test that a basic navigation works in --site-per-process mode. This prevents
|
| // regressions when that mode calls out into the ChromeContentBrowserClient,
|
| // such as http://crbug.com/164223.
|
| -IN_PROC_BROWSER_TEST_F(ChromeContentBrowserClientBrowserTest,
|
| +IN_PROC_BROWSER_TEST_F(ChromeContentBrowserClientSitePerProcessTest,
|
| SitePerProcessNavigation) {
|
| - content::IsolateAllSitesForTesting(base::CommandLine::ForCurrentProcess());
|
| ASSERT_TRUE(test_server()->Start());
|
| const GURL url(test_server()->GetURL("files/title1.html"));
|
|
|
|
|