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); |