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

Unified Diff: chrome/browser/ui/startup/startup_browser_creator_impl.cc

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
Index: chrome/browser/ui/startup/startup_browser_creator_impl.cc
diff --git a/chrome/browser/ui/startup/startup_browser_creator_impl.cc b/chrome/browser/ui/startup/startup_browser_creator_impl.cc
index d7b4b7b3d6be52c3c9f9ce77cb5ad95ebe586015..c648526f531a2b60721f6d9099fbea73c75137f0 100644
--- a/chrome/browser/ui/startup/startup_browser_creator_impl.cc
+++ b/chrome/browser/ui/startup/startup_browser_creator_impl.cc
@@ -630,7 +630,7 @@ bool StartupBrowserCreatorImpl::ProcessStartupURLs(
// The startup code only executes for browsers launched in desktop mode.
// i.e. HOST_DESKTOP_TYPE_NATIVE. Ash should never get here.
Browser* browser = SessionRestore::RestoreSession(
- profile_, NULL, desktop_type, restore_behavior, adjusted_urls);
+ profile_, NULL, restore_behavior, adjusted_urls);
AddInfoBarsIfNecessary(browser, chrome::startup::IS_PROCESS_STARTUP);
return true;
@@ -744,7 +744,7 @@ Browser* StartupBrowserCreatorImpl::OpenTabsInBrowser(
profile_ = browser->profile();
if (!browser || !browser->is_type_tabbed())
- browser = new Browser(Browser::CreateParams(profile_, desktop_type));
+ browser = new Browser(Browser::CreateParams(profile_));
bool first_tab = true;
ProtocolHandlerRegistry* registry = profile_ ?

Powered by Google App Engine
This is Rietveld 408576698