Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2013 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/extensions/api/token_cache/token_cache_factory.h" | |
| 6 | |
| 7 #include "chrome/browser/extensions/api/token_cache/token_cache.h" | |
| 8 #include "chrome/browser/extensions/extension_system_factory.h" | |
| 9 #include "chrome/browser/profiles/profile_dependency_manager.h" | |
| 10 | |
| 11 // static | |
| 12 TokenCacheService* TokenCacheServiceFactory::GetForProfile(Profile* profile) { | |
| 13 return static_cast<TokenCacheService*>( | |
| 14 GetInstance()->GetServiceForProfile(profile, true)); | |
| 15 } | |
| 16 | |
| 17 // static | |
| 18 TokenCacheServiceFactory* TokenCacheServiceFactory::GetInstance() { | |
| 19 return Singleton<TokenCacheServiceFactory>::get(); | |
| 20 } | |
| 21 | |
| 22 TokenCacheServiceFactory::TokenCacheServiceFactory() | |
| 23 : ProfileKeyedServiceFactory("TokenCacheService", | |
| 24 ProfileDependencyManager::GetInstance()) { | |
| 25 } | |
| 26 | |
| 27 TokenCacheServiceFactory::~TokenCacheServiceFactory() { | |
| 28 } | |
| 29 | |
| 30 ProfileKeyedService* TokenCacheServiceFactory::BuildServiceInstanceFor( | |
| 31 Profile* profile) const { | |
| 32 return new TokenCacheService(profile); | |
| 33 } | |
| 34 | |
| 35 bool TokenCacheServiceFactory::ServiceRedirectedInIncognito() const { | |
|
dcheng
2013/03/04 22:40:59
Please remove methods that simply use the default
Pete Williamson
2013/03/05 19:42:25
Done.
| |
| 36 return false; | |
| 37 } | |
| 38 | |
| 39 bool TokenCacheServiceFactory::ServiceIsCreatedWithProfile() const { | |
| 40 return false; | |
| 41 } | |
| 42 | |
| 43 bool TokenCacheServiceFactory::ServiceIsNULLWhileTesting() const { | |
| 44 return false; | |
| 45 } | |
| OLD | NEW |