Index: chrome/test/base/in_process_browser_test.cc |
diff --git a/chrome/test/base/in_process_browser_test.cc b/chrome/test/base/in_process_browser_test.cc |
index 99651be200f6cb2089728671d4fbc77fc258d997..11abd4407ea0ffa15d31cdd08f686458f2fa129c 100644 |
--- a/chrome/test/base/in_process_browser_test.cc |
+++ b/chrome/test/base/in_process_browser_test.cc |
@@ -446,22 +446,22 @@ Browser* InProcessBrowserTest::OpenURLOffTheRecord(Profile* profile, |
// Creates a browser with a single tab (about:blank), waits for the tab to |
// finish loading and shows the browser. |
Browser* InProcessBrowserTest::CreateBrowser(Profile* profile) { |
- Browser* browser = new Browser(Browser::CreateParams(profile)); |
+ Browser* browser = new Browser(Browser::CreateParams(profile, true)); |
AddBlankTabAndShow(browser); |
return browser; |
} |
Browser* InProcessBrowserTest::CreateIncognitoBrowser() { |
// Create a new browser with using the incognito profile. |
- Browser* incognito = new Browser( |
- Browser::CreateParams(browser()->profile()->GetOffTheRecordProfile())); |
+ Browser* incognito = new Browser(Browser::CreateParams( |
+ browser()->profile()->GetOffTheRecordProfile(), true)); |
AddBlankTabAndShow(incognito); |
return incognito; |
} |
Browser* InProcessBrowserTest::CreateBrowserForPopup(Profile* profile) { |
Browser* browser = |
- new Browser(Browser::CreateParams(Browser::TYPE_POPUP, profile)); |
+ new Browser(Browser::CreateParams(Browser::TYPE_POPUP, profile, true)); |
AddBlankTabAndShow(browser); |
return browser; |
} |
@@ -469,9 +469,8 @@ Browser* InProcessBrowserTest::CreateBrowserForPopup(Profile* profile) { |
Browser* InProcessBrowserTest::CreateBrowserForApp( |
const std::string& app_name, |
Profile* profile) { |
- Browser* browser = new Browser( |
- Browser::CreateParams::CreateForApp( |
- app_name, false /* trusted_source */, gfx::Rect(), profile)); |
+ Browser* browser = new Browser(Browser::CreateParams::CreateForApp( |
+ app_name, false /* trusted_source */, gfx::Rect(), profile, true)); |
AddBlankTabAndShow(browser); |
return browser; |
} |