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

Unified Diff: chrome/browser/app_controller_mac.mm

Issue 1662783002: Remove HostDesktopType from Browser::CreateParams (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@metro-mode-12
Patch Set: remove desktop_type_ in bookmark_bubble_sign_in_delegate Created 4 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 | « no previous file | chrome/browser/background/background_mode_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/app_controller_mac.mm
diff --git a/chrome/browser/app_controller_mac.mm b/chrome/browser/app_controller_mac.mm
index f61d027aa3832a43e8a550551a2aec05a818698d..d9eceb7e699a1c6e103afbc9eb876896ca1e2c0a 100644
--- a/chrome/browser/app_controller_mac.mm
+++ b/chrome/browser/app_controller_mac.mm
@@ -139,7 +139,7 @@ Browser* ActivateBrowser(Profile* profile) {
Browser* CreateBrowser(Profile* profile) {
{
base::AutoReset<bool> auto_reset_in_run(&g_is_opening_new_window, true);
- chrome::NewEmptyWindow(profile, chrome::HOST_DESKTOP_TYPE_NATIVE);
+ chrome::NewEmptyWindow(profile);
}
Browser* browser = chrome::GetLastActiveBrowser();
@@ -851,8 +851,7 @@ class AppControllerProfileObserver : public ProfileInfoCacheObserver {
// downloads page if the user chooses to wait.
Browser* browser = chrome::FindBrowserWithProfile(profiles[i]);
if (!browser) {
- browser = new Browser(Browser::CreateParams(
- profiles[i], chrome::HOST_DESKTOP_TYPE_NATIVE));
+ browser = new Browser(Browser::CreateParams(profiles[i]));
browser->window()->Show();
}
DCHECK(browser);
@@ -1372,8 +1371,7 @@ class AppControllerProfileObserver : public ProfileInfoCacheObserver {
Browser* browser = chrome::GetLastActiveBrowser();
// if no browser window exists then create one with no tabs to be filled in
if (!browser) {
- browser = new Browser(Browser::CreateParams(
- [self lastProfile], chrome::HOST_DESKTOP_TYPE_NATIVE));
+ browser = new Browser(Browser::CreateParams([self lastProfile]));
browser->window()->Show();
}
« no previous file with comments | « no previous file | chrome/browser/background/background_mode_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698