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

Unified Diff: chrome/browser/sessions/in_memory_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/in_memory_tab_restore_service.cc
diff --git a/chrome/browser/sessions/in_memory_tab_restore_service.cc b/chrome/browser/sessions/in_memory_tab_restore_service.cc
index 46c3310462422f8c48a49d6fe75438b163e191fc..dd3b6eeb12aa07e129c0ec33ae7a82d53ecbfd58 100644
--- a/chrome/browser/sessions/in_memory_tab_restore_service.cc
+++ b/chrome/browser/sessions/in_memory_tab_restore_service.cc
@@ -9,11 +9,10 @@
#include "base/compiler_specific.h"
InMemoryTabRestoreService::InMemoryTabRestoreService(
- Profile* profile,
scoped_ptr<sessions::TabRestoreServiceClient> client,
TabRestoreService::TimeFactory* time_factory)
: client_(client.Pass()),
- helper_(this, NULL, profile, client_.get(), time_factory) {}
+ helper_(this, NULL, client_.get(), time_factory) {}
InMemoryTabRestoreService::~InMemoryTabRestoreService() {}
@@ -54,7 +53,7 @@ const TabRestoreService::Entries& InMemoryTabRestoreService::entries() const {
std::vector<content::WebContents*>
InMemoryTabRestoreService::RestoreMostRecentEntry(
TabRestoreServiceDelegate* delegate,
- chrome::HostDesktopType host_desktop_type) {
+ int host_desktop_type) {
return helper_.RestoreMostRecentEntry(delegate, host_desktop_type);
}
@@ -66,7 +65,7 @@ TabRestoreService::Tab* InMemoryTabRestoreService::RemoveTabEntryById(
std::vector<content::WebContents*> InMemoryTabRestoreService::RestoreEntryById(
TabRestoreServiceDelegate* delegate,
SessionID::id_type id,
- chrome::HostDesktopType host_desktop_type,
+ int host_desktop_type,
WindowOpenDisposition disposition) {
return helper_.RestoreEntryById(delegate, id, host_desktop_type, disposition);
}
« no previous file with comments | « chrome/browser/sessions/in_memory_tab_restore_service.h ('k') | chrome/browser/sessions/persistent_tab_restore_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698