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

Side by Side Diff: components/sessions/core/persistent_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, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/sessions/core/persistent_tab_restore_service.h" 5 #include "components/sessions/core/persistent_tab_restore_service.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <string.h> 9 #include <string.h>
10 #include <utility> 10 #include <utility>
(...skipping 930 matching lines...) Expand 10 before | Expand all | Expand 10 after
941 } 941 }
942 942
943 void PersistentTabRestoreService::ClearEntries() { 943 void PersistentTabRestoreService::ClearEntries() {
944 helper_.ClearEntries(); 944 helper_.ClearEntries();
945 } 945 }
946 946
947 const TabRestoreService::Entries& PersistentTabRestoreService::entries() const { 947 const TabRestoreService::Entries& PersistentTabRestoreService::entries() const {
948 return helper_.entries(); 948 return helper_.entries();
949 } 949 }
950 950
951 TabRestoreService::Entry* PersistentTabRestoreService::GetMostRecentEntry() {
952 return NULL;
953 }
954
951 std::vector<LiveTab*> PersistentTabRestoreService::RestoreMostRecentEntry( 955 std::vector<LiveTab*> PersistentTabRestoreService::RestoreMostRecentEntry(
952 LiveTabContext* context) { 956 LiveTabContext* context) {
953 return helper_.RestoreMostRecentEntry(context); 957 return helper_.RestoreMostRecentEntry(context);
954 } 958 }
955 959
956 TabRestoreService::Tab* PersistentTabRestoreService::RemoveTabEntryById( 960 TabRestoreService::Tab* PersistentTabRestoreService::RemoveTabEntryById(
957 SessionID::id_type id) { 961 SessionID::id_type id) {
958 return helper_.RemoveTabEntryById(id); 962 return helper_.RemoveTabEntryById(id);
959 } 963 }
960 964
(...skipping 22 matching lines...) Expand all
983 987
984 TabRestoreService::Entries* PersistentTabRestoreService::mutable_entries() { 988 TabRestoreService::Entries* PersistentTabRestoreService::mutable_entries() {
985 return &helper_.entries_; 989 return &helper_.entries_;
986 } 990 }
987 991
988 void PersistentTabRestoreService::PruneEntries() { 992 void PersistentTabRestoreService::PruneEntries() {
989 helper_.PruneEntries(); 993 helper_.PruneEntries();
990 } 994 }
991 995
992 } // namespace sessions 996 } // namespace sessions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698