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

Unified Diff: chrome/browser/ui/browser_live_tab_context.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
« no previous file with comments | « chrome/browser/ui/browser_live_tab_context.h ('k') | chrome/browser/ui/browser_tab_restorer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_live_tab_context.cc
diff --git a/chrome/browser/ui/browser_live_tab_context.cc b/chrome/browser/ui/browser_live_tab_context.cc
index 60dd3204b3b88e7583147403056b8bd00d4983dd..40892e261ed5cb7523550112b62e3e05a7a7459a 100644
--- a/chrome/browser/ui/browser_live_tab_context.cc
+++ b/chrome/browser/ui/browser_live_tab_context.cc
@@ -105,7 +105,6 @@ void BrowserLiveTabContext::CloseTab() {
// static
sessions::LiveTabContext* BrowserLiveTabContext::Create(
Profile* profile,
- chrome::HostDesktopType host_desktop_type,
const std::string& app_name) {
Browser* browser;
if (app_name.empty()) {
@@ -130,10 +129,7 @@ sessions::LiveTabContext* BrowserLiveTabContext::FindContextForWebContents(
// static
sessions::LiveTabContext* BrowserLiveTabContext::FindContextWithID(
- SessionID::id_type desired_id,
- chrome::HostDesktopType host_desktop_type) {
+ SessionID::id_type desired_id) {
Browser* browser = chrome::FindBrowserWithID(desired_id);
- return (browser && browser->host_desktop_type() == host_desktop_type)
- ? browser->live_tab_context()
- : NULL;
+ return browser ? browser->live_tab_context() : nullptr;
}
« no previous file with comments | « chrome/browser/ui/browser_live_tab_context.h ('k') | chrome/browser/ui/browser_tab_restorer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698