OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/chrome_to_mobile_service_factory.h" |
| 6 |
| 7 #include "chrome/browser/chrome_to_mobile_service.h" |
| 8 #include "chrome/browser/profiles/profile_dependency_manager.h" |
| 9 |
| 10 // static |
| 11 ChromeToMobileServiceFactory* ChromeToMobileServiceFactory::GetInstance() { |
| 12 return Singleton<ChromeToMobileServiceFactory>::get(); |
| 13 } |
| 14 |
| 15 // static |
| 16 ChromeToMobileService* ChromeToMobileServiceFactory::GetForProfile( |
| 17 Profile* profile) { |
| 18 return static_cast<ChromeToMobileService*>( |
| 19 GetInstance()->GetServiceForProfile(profile, true)); |
| 20 } |
| 21 |
| 22 ProfileKeyedService* ChromeToMobileServiceFactory::BuildServiceInstanceFor( |
| 23 Profile* profile) const { |
| 24 return new ChromeToMobileService(profile); |
| 25 } |
| 26 |
| 27 ChromeToMobileServiceFactory::ChromeToMobileServiceFactory() |
| 28 : ProfileKeyedServiceFactory("ChromeToMobileService", |
| 29 ProfileDependencyManager::GetInstance()) { |
| 30 } |
| 31 |
| 32 ChromeToMobileServiceFactory::~ChromeToMobileServiceFactory() {} |
OLD | NEW |