| 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/tab_restore_service_factory.h" | 5 #include "chrome/browser/sessions/tab_restore_service_factory.h" |
| 6 | 6 |
| 7 #include "chrome/browser/profiles/profile_dependency_manager.h" | 7 #include "chrome/browser/profiles/profile_dependency_manager.h" |
| 8 #include "chrome/browser/sessions/tab_restore_service.h" | 8 #include "chrome/browser/sessions/tab_restore_service.h" |
| 9 | 9 |
| 10 // static | 10 // static |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 } | 32 } |
| 33 | 33 |
| 34 TabRestoreServiceFactory::TabRestoreServiceFactory() | 34 TabRestoreServiceFactory::TabRestoreServiceFactory() |
| 35 : ProfileKeyedServiceFactory("TabRestoreService", | 35 : ProfileKeyedServiceFactory("TabRestoreService", |
| 36 ProfileDependencyManager::GetInstance()) { | 36 ProfileDependencyManager::GetInstance()) { |
| 37 } | 37 } |
| 38 | 38 |
| 39 TabRestoreServiceFactory::~TabRestoreServiceFactory() { | 39 TabRestoreServiceFactory::~TabRestoreServiceFactory() { |
| 40 } | 40 } |
| 41 | 41 |
| 42 ProfileKeyedService* TabRestoreServiceFactory::BuildServiceInstanceFor( | |
| 43 Profile* profile) const { | |
| 44 TabRestoreService* service = NULL; | |
| 45 service = new TabRestoreService(profile); | |
| 46 return service; | |
| 47 } | |
| 48 | |
| 49 bool TabRestoreServiceFactory::ServiceIsNULLWhileTesting() const { | 42 bool TabRestoreServiceFactory::ServiceIsNULLWhileTesting() const { |
| 50 return true; | 43 return true; |
| 51 } | 44 } |
| OLD | NEW |