Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(200)

Unified Diff: chrome/test/base/in_process_browser_test_mac.cc

Issue 2685333005: ash: fix regression where ctrl+n put new window on wrong desktop (Closed)
Patch Set: Rebase to ToT Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/base/in_process_browser_test.cc ('k') | ui/aura/client/aura_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/in_process_browser_test_mac.cc
diff --git a/chrome/test/base/in_process_browser_test_mac.cc b/chrome/test/base/in_process_browser_test_mac.cc
index c25cc90b16668453f3360322688f5ba0b815d02f..85ccd74ed80721765c68d485fd351fad4f86c50e 100644
--- a/chrome/test/base/in_process_browser_test_mac.cc
+++ b/chrome/test/base/in_process_browser_test_mac.cc
@@ -46,7 +46,7 @@ Browser* InProcessBrowserTest::CreateBrowser(Profile* profile) {
// autorelease pool. Flush the pool when this function returns.
base::mac::ScopedNSAutoreleasePool pool;
- Browser* browser = new Browser(Browser::CreateParams(profile));
+ Browser* browser = new Browser(Browser::CreateParams(profile, true));
AddBlankTabAndShow(browser);
return browser;
}
@@ -57,8 +57,8 @@ Browser* InProcessBrowserTest::CreateIncognitoBrowser() {
base::mac::ScopedNSAutoreleasePool pool;
// 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;
}
@@ -69,7 +69,7 @@ Browser* InProcessBrowserTest::CreateBrowserForPopup(Profile* profile) {
base::mac::ScopedNSAutoreleasePool pool;
Browser* browser =
- new Browser(Browser::CreateParams(Browser::TYPE_POPUP, profile));
+ new Browser(Browser::CreateParams(Browser::TYPE_POPUP, profile, true));
AddBlankTabAndShow(browser);
return browser;
}
@@ -82,7 +82,7 @@ Browser* InProcessBrowserTest::CreateBrowserForApp(
base::mac::ScopedNSAutoreleasePool pool;
Browser* browser = new Browser(Browser::CreateParams::CreateForApp(
- app_name, false /* trusted_source */, gfx::Rect(), profile));
+ app_name, false /* trusted_source */, gfx::Rect(), profile, true));
AddBlankTabAndShow(browser);
return browser;
}
« no previous file with comments | « chrome/test/base/in_process_browser_test.cc ('k') | ui/aura/client/aura_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698