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

Unified Diff: components/sessions/core/in_memory_tab_restore_service.cc

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/in_memory_tab_restore_service.cc
diff --git a/components/sessions/core/in_memory_tab_restore_service.cc b/components/sessions/core/in_memory_tab_restore_service.cc
index 5caf5767c3de93b8a049084169a0720308d0c533..d44b078d5ab38a371ae6103d4cb1acdd27210e9b 100644
--- a/components/sessions/core/in_memory_tab_restore_service.cc
+++ b/components/sessions/core/in_memory_tab_restore_service.cc
@@ -50,6 +50,12 @@ const TabRestoreService::Entries& InMemoryTabRestoreService::entries() const {
return helper_.entries();
}
+TabRestoreService::Entry* InMemoryTabRestoreService::GetMostRecentEntry() {
+ if (helper_.entries().empty())
+ return NULL;
+ return helper_.GetMostRecentEntry();
+}
+
std::vector<LiveTab*> InMemoryTabRestoreService::RestoreMostRecentEntry(
LiveTabContext* context) {
return helper_.RestoreMostRecentEntry(context);

Powered by Google App Engine
This is Rietveld 408576698