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

Unified Diff: components/sessions/core/persistent_tab_restore_service.h

Issue 2200993004: Make TabRestoreService::Entry noncopyable and fix up surrounding code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tab-test-cleanup
Patch Set: Add back NOTREACHED() and a return for gcc Created 4 years, 4 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: components/sessions/core/persistent_tab_restore_service.h
diff --git a/components/sessions/core/persistent_tab_restore_service.h b/components/sessions/core/persistent_tab_restore_service.h
index ac3ffd4125b2bd86291b083b6fe22f93db741c90..fabe9245fc24dec1a8326418c4c0db518ca35255 100644
--- a/components/sessions/core/persistent_tab_restore_service.h
+++ b/components/sessions/core/persistent_tab_restore_service.h
@@ -31,14 +31,14 @@ class SESSIONS_EXPORT PersistentTabRestoreService : public TabRestoreService {
// TabRestoreService:
void AddObserver(TabRestoreServiceObserver* observer) override;
void RemoveObserver(TabRestoreServiceObserver* observer) override;
- void CreateHistoricalTab(LiveTab* live_tab, int index) override;
+ void CreateHistoricalTab(LiveTab* live_tab, size_t index) override;
void BrowserClosing(LiveTabContext* context) override;
void BrowserClosed(LiveTabContext* context) override;
void ClearEntries() override;
const Entries& entries() const override;
std::vector<LiveTab*> RestoreMostRecentEntry(
LiveTabContext* context) override;
- Tab* RemoveTabEntryById(SessionID::id_type id) override;
+ std::unique_ptr<Tab> RemoveTabEntryById(SessionID::id_type id) override;
std::vector<LiveTab*> RestoreEntryById(
LiveTabContext* context,
SessionID::id_type id,

Powered by Google App Engine
This is Rietveld 408576698