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

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

Issue 1342743002: Remove Profile and HostDesktopType dependencies from core TabRestore code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Mac Created 5 years, 3 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/persistent_tab_restore_service.cc
diff --git a/chrome/browser/sessions/persistent_tab_restore_service.cc b/chrome/browser/sessions/persistent_tab_restore_service.cc
index 6d770e0c36d9e5830cabeb4a0292e8e52a9f2c75..9c11d8cf1325ee1ad677901c7dc635d5e1929229 100644
--- a/chrome/browser/sessions/persistent_tab_restore_service.cc
+++ b/chrome/browser/sessions/persistent_tab_restore_service.cc
@@ -926,12 +926,11 @@ void PersistentTabRestoreService::Delegate::RemoveEntryByID(
// PersistentTabRestoreService -------------------------------------------------
PersistentTabRestoreService::PersistentTabRestoreService(
- Profile* profile,
scoped_ptr<sessions::TabRestoreServiceClient> client,
TimeFactory* time_factory)
: client_(client.Pass()),
delegate_(new Delegate(client_.get())),
- helper_(this, delegate_.get(), profile, client_.get(), time_factory) {
+ helper_(this, delegate_.get(), client_.get(), time_factory) {
delegate_->set_tab_restore_service_helper(&helper_);
}
@@ -974,7 +973,7 @@ const TabRestoreService::Entries& PersistentTabRestoreService::entries() const {
std::vector<content::WebContents*>
PersistentTabRestoreService::RestoreMostRecentEntry(
TabRestoreServiceDelegate* delegate,
- chrome::HostDesktopType host_desktop_type) {
+ int host_desktop_type) {
return helper_.RestoreMostRecentEntry(delegate, host_desktop_type);
}
@@ -984,11 +983,11 @@ TabRestoreService::Tab* PersistentTabRestoreService::RemoveTabEntryById(
}
std::vector<content::WebContents*>
- PersistentTabRestoreService::RestoreEntryById(
- TabRestoreServiceDelegate* delegate,
- SessionID::id_type id,
- chrome::HostDesktopType host_desktop_type,
- WindowOpenDisposition disposition) {
+PersistentTabRestoreService::RestoreEntryById(
+ TabRestoreServiceDelegate* delegate,
+ SessionID::id_type id,
+ int host_desktop_type,
+ WindowOpenDisposition disposition) {
return helper_.RestoreEntryById(delegate, id, host_desktop_type, disposition);
}

Powered by Google App Engine
This is Rietveld 408576698