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

Unified Diff: chrome/browser/sessions/session_restore.h

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/sessions/session_restore.h
diff --git a/chrome/browser/sessions/session_restore.h b/chrome/browser/sessions/session_restore.h
index dc4ecf3bd05e3e01b1c2a0615ed25aeeacbcf785..5f9c9016894884c04aac477efb8b595c61dd203a 100644
--- a/chrome/browser/sessions/session_restore.h
+++ b/chrome/browser/sessions/session_restore.h
@@ -11,7 +11,6 @@
#include "base/callback_list.h"
#include "base/macros.h"
-#include "chrome/browser/ui/host_desktop.h"
#include "components/history/core/browser/history_service.h"
#include "components/sessions/core/session_types.h"
#include "ui/base/window_open_disposition.h"
@@ -52,14 +51,10 @@ class SessionRestore {
// Restores the last session. |behavior| is a bitmask of Behaviors, see it
// for details. If |browser| is non-null the tabs for the first window are
// added to it. Returns the last active browser.
- // Every additional browser created will be created on the desktop specified
- // by |host_desktop_type|, if |browser| is non-null it should have the same
- // desktop type.
//
// If |urls_to_open| is non-empty, a tab is added for each of the URLs.
static Browser* RestoreSession(Profile* profile,
Browser* browser,
- chrome::HostDesktopType host_desktop_type,
uint32_t behavior,
const std::vector<GURL>& urls_to_open);
@@ -68,12 +63,10 @@ class SessionRestore {
static void RestoreSessionAfterCrash(Browser* browser);
// Specifically used in the restoration of a foreign session. This function
- // restores the given session windows to multiple browsers all of which
- // will be created on the desktop specified by |host_desktop_type|. Returns
- // the created Browsers.
+ // restores the given session windows to multiple browsers. Returns the
+ // created Browsers.
static std::vector<Browser*> RestoreForeignSessionWindows(
Profile* profile,
- chrome::HostDesktopType host_desktop_type,
std::vector<const sessions::SessionWindow*>::const_iterator begin,
std::vector<const sessions::SessionWindow*>::const_iterator end);
« no previous file with comments | « chrome/browser/sessions/better_session_restore_browsertest.cc ('k') | chrome/browser/sessions/session_restore.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698