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

Unified Diff: chrome/browser/ui/browser_tab_restorer.cc

Issue 1637943003: Remove HostDesktopType from BrowserList::GetInstance() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@screen-wrapper-land
Patch Set: mac2 Created 4 years, 11 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_list.cc ('k') | chrome/browser/ui/browser_tab_strip_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_tab_restorer.cc
diff --git a/chrome/browser/ui/browser_tab_restorer.cc b/chrome/browser/ui/browser_tab_restorer.cc
index 68225f20c0673a9215c74c27ec1c4436d6ed5995..3d276c60ae78a56073767e682464b4c823e787bf 100644
--- a/chrome/browser/ui/browser_tab_restorer.cc
+++ b/chrome/browser/ui/browser_tab_restorer.cc
@@ -55,7 +55,7 @@ class BrowserTabRestorer : public sessions::TabRestoreServiceObserver,
BrowserTabRestorer::~BrowserTabRestorer() {
tab_restore_service_->RemoveObserver(this);
- BrowserList::GetInstance(browser_->host_desktop_type())->RemoveObserver(this);
+ BrowserList::GetInstance()->RemoveObserver(this);
}
// static
@@ -75,7 +75,7 @@ BrowserTabRestorer::BrowserTabRestorer(Browser* browser)
DCHECK(tab_restore_service_);
DCHECK(!tab_restore_service_->IsLoaded());
tab_restore_service_->AddObserver(this);
- BrowserList::GetInstance(browser->host_desktop_type())->AddObserver(this);
+ BrowserList::GetInstance()->AddObserver(this);
browser_->profile()->SetUserData(kBrowserTabRestorerKey, this);
tab_restore_service_->LoadTabsFromLastSession();
}
« no previous file with comments | « chrome/browser/ui/browser_list.cc ('k') | chrome/browser/ui/browser_tab_strip_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698