summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/browser_win.cc
diff options
context:
space:
mode:
authorananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-01 23:42:20 +0000
committerananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-01 23:42:20 +0000
commitac8b7a620238b90e2629b7c7d0fa7ecca7638a50 (patch)
treecc512c134b125718c9b484d2747664e73ba0db74 /chrome/browser/ui/browser_win.cc
parenta1686e279d7f6ec3cebc91cd759af80963e2c0ad (diff)
downloadchromium_src-ac8b7a620238b90e2629b7c7d0fa7ecca7638a50.zip
chromium_src-ac8b7a620238b90e2629b7c7d0fa7ecca7638a50.tar.gz
chromium_src-ac8b7a620238b90e2629b7c7d0fa7ecca7638a50.tar.bz2
Pass the host desktop type from the original Browser object when creating a new window/new incognito window.
This ensures that the new Browser is created in the correct context (Desktop/Ash). BUG=159044 R=sky,cpu Review URL: https://codereview.chromium.org/11368041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165549 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/browser_win.cc')
-rw-r--r--chrome/browser/ui/browser_win.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/ui/browser_win.cc b/chrome/browser/ui/browser_win.cc
index da1d46c..4b81b70 100644
--- a/chrome/browser/ui/browser_win.cc
+++ b/chrome/browser/ui/browser_win.cc
@@ -51,7 +51,8 @@ void NewWindow(Browser* browser) {
NewMetroWindow(browser, browser->profile()->GetOriginalProfile());
return;
}
- NewEmptyWindow(browser->profile()->GetOriginalProfile());
+ NewEmptyWindow(browser->profile()->GetOriginalProfile(),
+ browser->host_desktop_type());
}
void NewIncognitoWindow(Browser* browser) {
@@ -59,7 +60,8 @@ void NewIncognitoWindow(Browser* browser) {
NewMetroWindow(browser, browser->profile()->GetOffTheRecordProfile());
return;
}
- NewEmptyWindow(browser->profile()->GetOffTheRecordProfile());
+ NewEmptyWindow(browser->profile()->GetOffTheRecordProfile(),
+ browser->host_desktop_type());
}
} // namespace chrome