re-re-land of https://codereview.chromium.org/11364053/

First attempt here: https://codereview.chromium.org/11364053/ : failed linux_chromeos_asan
Second attempt here: http://codereview.chromium.org/11362216/ : collided with renames in http://crrev.com/167418

This cl is the same as the second attempt, with the namespaces and includes updated for file renames.

[email protected]
BUG=128578


Review URL: https://chromiumcodereview.appspot.com/11377140

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167547 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/ui/browser_commands.cc b/chrome/browser/ui/browser_commands.cc
index d5f3744..a01c791 100644
--- a/chrome/browser/ui/browser_commands.cc
+++ b/chrome/browser/ui/browser_commands.cc
@@ -306,6 +306,10 @@
 }
 
 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);