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

Unified Diff: chrome/browser/sessions/chrome_tab_restore_service_client.cc

Issue 1697183003: Remove HostDesktopType from sessions and tab restore (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@metro-mode-19
Patch Set: mac 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/chrome_tab_restore_service_client.cc
diff --git a/chrome/browser/sessions/chrome_tab_restore_service_client.cc b/chrome/browser/sessions/chrome_tab_restore_service_client.cc
index a4adf8440049702caab5f3d8ee2d43f10ff4df97..01f69fd75597917f2a663c0e5c3f4863b7ac067f 100644
--- a/chrome/browser/sessions/chrome_tab_restore_service_client.cc
+++ b/chrome/browser/sessions/chrome_tab_restore_service_client.cc
@@ -49,16 +49,13 @@ ChromeTabRestoreServiceClient::ChromeTabRestoreServiceClient(Profile* profile)
ChromeTabRestoreServiceClient::~ChromeTabRestoreServiceClient() {}
sessions::LiveTabContext* ChromeTabRestoreServiceClient::CreateLiveTabContext(
- int host_desktop_type,
const std::string& app_name) {
#if defined(OS_ANDROID)
// Android does not support LiveTabContext, as tab persistence
// is implemented on the Java side.
return nullptr;
#else
- return BrowserLiveTabContext::Create(
- profile_, static_cast<chrome::HostDesktopType>(host_desktop_type),
- app_name);
+ return BrowserLiveTabContext::Create(profile_, app_name);
#endif
}
@@ -77,15 +74,13 @@ ChromeTabRestoreServiceClient::FindLiveTabContextForTab(
sessions::LiveTabContext*
ChromeTabRestoreServiceClient::FindLiveTabContextWithID(
- SessionID::id_type desired_id,
- int host_desktop_type) {
+ SessionID::id_type desired_id) {
#if defined(OS_ANDROID)
// Android does not support LiveTabContext, as tab persistence
// is implemented on the Java side.
return nullptr;
#else
- return BrowserLiveTabContext::FindContextWithID(
- desired_id, static_cast<chrome::HostDesktopType>(host_desktop_type));
+ return BrowserLiveTabContext::FindContextWithID(desired_id);
#endif
}
« no previous file with comments | « chrome/browser/sessions/chrome_tab_restore_service_client.h ('k') | chrome/browser/sessions/session_restore_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698