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

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

Issue 2088443003: Shortcut ctrl+shift+T added on android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: set window id for android into TabRestoreService::Tab.browser_id, to select the correct android tab… Created 4 years, 6 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/tab_restore_service.h
diff --git a/components/sessions/core/tab_restore_service.h b/components/sessions/core/tab_restore_service.h
index f9eda99c3c0155adddf34530ab4b0d7dcaea2439..0e29256b914ee7bb4c8bdea0e3db858bbce43e6e 100644
--- a/components/sessions/core/tab_restore_service.h
+++ b/components/sessions/core/tab_restore_service.h
@@ -154,6 +154,9 @@ class SESSIONS_EXPORT TabRestoreService : public KeyedService {
// front.
virtual const Entries& entries() const = 0;
+ // Get certain entry.
+ virtual Entry* GetMostRecentEntry() = 0;
+
// Restores the most recently closed entry. Does nothing if there are no
// entries to restore. If the most recently restored entry is a tab, it is
// added to |context|. Returns the LiveTab instances of the restored tab(s).

Powered by Google App Engine
This is Rietveld 408576698