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

Unified Diff: components/sessions/core/tab_restore_service_helper.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/tab_restore_service_helper.cc
diff --git a/components/sessions/core/tab_restore_service_helper.cc b/components/sessions/core/tab_restore_service_helper.cc
index f89946f240ceed4f638e8ed935dd9a1079c0764a..1cfc96e12eaa8ba76eb5b29a64288cb036a0997e 100644
--- a/components/sessions/core/tab_restore_service_helper.cc
+++ b/components/sessions/core/tab_restore_service_helper.cc
@@ -134,6 +134,10 @@ const TabRestoreService::Entries& TabRestoreServiceHelper::entries() const {
return entries_;
}
+TabRestoreService::Entry* TabRestoreServiceHelper::GetMostRecentEntry() {
+ return entries_.front();
+}
+
std::vector<LiveTab*> TabRestoreServiceHelper::RestoreMostRecentEntry(
LiveTabContext* context) {
if (entries_.empty())

Powered by Google App Engine
This is Rietveld 408576698