OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "chrome/browser/sessions/persistent_tab_restore_service.h" | 5 #include "chrome/browser/sessions/persistent_tab_restore_service.h" |
6 | 6 |
7 #include <cstring> // memcpy | 7 #include <cstring> // memcpy |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 967 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
978 } | 978 } |
979 | 979 |
980 TabRestoreService::Entries* PersistentTabRestoreService::mutable_entries() { | 980 TabRestoreService::Entries* PersistentTabRestoreService::mutable_entries() { |
981 return &helper_.entries_; | 981 return &helper_.entries_; |
982 } | 982 } |
983 | 983 |
984 void PersistentTabRestoreService::PruneEntries() { | 984 void PersistentTabRestoreService::PruneEntries() { |
985 helper_.PruneEntries(); | 985 helper_.PruneEntries(); |
986 } | 986 } |
987 | 987 |
988 ProfileKeyedService* TabRestoreServiceFactory::BuildServiceInstanceFor( | 988 BrowserContextKeyedService* TabRestoreServiceFactory::BuildServiceInstanceFor( |
989 content::BrowserContext* profile) const { | 989 content::BrowserContext* profile) const { |
990 return new PersistentTabRestoreService(static_cast<Profile*>(profile), NULL); | 990 return new PersistentTabRestoreService(static_cast<Profile*>(profile), NULL); |
991 } | 991 } |
OLD | NEW |