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

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: Get session ID from entries, take tabs' active status directly instead of an index 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..5e2a1659ec3904ce55ed18239734e38071d96165 100644
--- a/components/sessions/core/persistent_tab_restore_service.h
+++ b/components/sessions/core/persistent_tab_restore_service.h
@@ -38,7 +38,7 @@ class SESSIONS_EXPORT PersistentTabRestoreService : public TabRestoreService {
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,
« no previous file with comments | « components/sessions/core/in_memory_tab_restore_service.cc ('k') | components/sessions/core/persistent_tab_restore_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698