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

Side by Side Diff: components/sessions/core/persistent_tab_restore_service.cc

Issue 2345763002: Fix tabs duplication when restoring last closed window. (Closed)
Patch Set: Fix comments. Created 4 years, 3 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 932 matching lines...) Expand 10 before | Expand all | Expand 10 after
943 } 943 }
944 944
945 bool PersistentTabRestoreService::IsLoaded() const { 945 bool PersistentTabRestoreService::IsLoaded() const {
946 return delegate_->IsLoaded(); 946 return delegate_->IsLoaded();
947 } 947 }
948 948
949 void PersistentTabRestoreService::DeleteLastSession() { 949 void PersistentTabRestoreService::DeleteLastSession() {
950 return delegate_->DeleteLastSession(); 950 return delegate_->DeleteLastSession();
951 } 951 }
952 952
953 bool PersistentTabRestoreService::IsRestoring() const {
954 return helper_.IsRestoring();
955 }
956
953 void PersistentTabRestoreService::Shutdown() { 957 void PersistentTabRestoreService::Shutdown() {
954 return delegate_->Shutdown(); 958 return delegate_->Shutdown();
955 } 959 }
956 960
957 void PersistentTabRestoreService::LoadTabsFromLastSession() { 961 void PersistentTabRestoreService::LoadTabsFromLastSession() {
958 delegate_->LoadTabsFromLastSession(); 962 delegate_->LoadTabsFromLastSession();
959 } 963 }
960 964
961 TabRestoreService::Entries* PersistentTabRestoreService::mutable_entries() { 965 TabRestoreService::Entries* PersistentTabRestoreService::mutable_entries() {
962 return &helper_.entries_; 966 return &helper_.entries_;
963 } 967 }
964 968
965 void PersistentTabRestoreService::PruneEntries() { 969 void PersistentTabRestoreService::PruneEntries() {
966 helper_.PruneEntries(); 970 helper_.PruneEntries();
967 } 971 }
968 972
969 } // namespace sessions 973 } // namespace sessions
OLDNEW
« no previous file with comments | « components/sessions/core/persistent_tab_restore_service.h ('k') | components/sessions/core/tab_restore_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698