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