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/in_memory_tab_restore_service.h" | 5 #include "chrome/browser/sessions/in_memory_tab_restore_service.h" |
6 | 6 |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "chrome/browser/profiles/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
9 #include "chrome/browser/sessions/tab_restore_service_factory.h" | 9 #include "chrome/browser/sessions/tab_restore_service_factory.h" |
10 | 10 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 return true; | 79 return true; |
80 } | 80 } |
81 | 81 |
82 void InMemoryTabRestoreService::DeleteLastSession() { | 82 void InMemoryTabRestoreService::DeleteLastSession() { |
83 // See comment above. | 83 // See comment above. |
84 } | 84 } |
85 | 85 |
86 void InMemoryTabRestoreService::Shutdown() { | 86 void InMemoryTabRestoreService::Shutdown() { |
87 } | 87 } |
88 | 88 |
89 ProfileKeyedService* TabRestoreServiceFactory::BuildServiceInstanceFor( | 89 BrowserContextKeyedService* TabRestoreServiceFactory::BuildServiceInstanceFor( |
90 content::BrowserContext* profile) const { | 90 content::BrowserContext* profile) const { |
91 return new InMemoryTabRestoreService(static_cast<Profile*>(profile), NULL); | 91 return new InMemoryTabRestoreService(static_cast<Profile*>(profile), NULL); |
92 } | 92 } |
OLD | NEW |