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

Unified Diff: chrome/browser/ui/browser_live_tab_context.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/browser/ui/browser_instant_controller_unittest.cc ('k') | chrome/browser/ui/browser_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_live_tab_context.cc
diff --git a/chrome/browser/ui/browser_live_tab_context.cc b/chrome/browser/ui/browser_live_tab_context.cc
index 40892e261ed5cb7523550112b62e3e05a7a7459a..c6ee3f08ee44e5a9515d466e3e8873be39b409ab 100644
--- a/chrome/browser/ui/browser_live_tab_context.cc
+++ b/chrome/browser/ui/browser_live_tab_context.cc
@@ -108,11 +108,11 @@ sessions::LiveTabContext* BrowserLiveTabContext::Create(
const std::string& app_name) {
Browser* browser;
if (app_name.empty()) {
- browser = new Browser(Browser::CreateParams(profile));
+ browser = new Browser(Browser::CreateParams(profile, true));
} else {
// Only trusted app popup windows should ever be restored.
browser = new Browser(Browser::CreateParams::CreateForApp(
- app_name, true /* trusted_source */, gfx::Rect(), profile));
+ app_name, true /* trusted_source */, gfx::Rect(), profile, true));
}
if (browser)
return browser->live_tab_context();
« no previous file with comments | « chrome/browser/ui/browser_instant_controller_unittest.cc ('k') | chrome/browser/ui/browser_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698