Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Side by Side Diff: chrome/browser/extensions/api/token_cache/token_cache_factory.cc

Issue 12380006: Build a new TokenCacheService so I can stop using TokenService for something it wasn't designed for. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Token Cache - CR changes per DCheng and ATWilson Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698