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

Unified Diff: chrome/browser/ui/browser_commands.cc

Issue 11364053: make StackingClient dispatch to either ash or desktop (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase + disable prerender tests on win-aura Created 8 years, 1 month 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/aura/stacking_client_aura.cc ('k') | chrome/browser/ui/browser_tabstrip.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_commands.cc
diff --git a/chrome/browser/ui/browser_commands.cc b/chrome/browser/ui/browser_commands.cc
index d5f3744129222c0f90b6ebd6e6f183ab6a438ca8..a01c79150a1eb6d1de4d17364e0f898a14a80a26 100644
--- a/chrome/browser/ui/browser_commands.cc
+++ b/chrome/browser/ui/browser_commands.cc
@@ -306,6 +306,10 @@ void NewEmptyWindow(Profile* profile) {
}
Browser* OpenEmptyWindow(Profile* profile, HostDesktopType desktop_type) {
+ // TODO(scottmg): http://crbug.com/128578
+ // This is necessary because WebContentsViewAura doesn't have enough context
+ // to get the right StackingClient (and therefore parent window) otherwise.
+ ScopedForceDesktopType force_desktop_type(desktop_type);
Browser* browser = new Browser(
Browser::CreateParams(Browser::TYPE_TABBED, profile, desktop_type));
AddBlankTabAt(browser, -1, true);
« no previous file with comments | « chrome/browser/ui/aura/stacking_client_aura.cc ('k') | chrome/browser/ui/browser_tabstrip.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698