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

Side by Side Diff: chrome/browser/sync/credential_cache_service_factory_win.cc

Issue 10656033: [sync] Automatic bootstrapping of Sync on Win 8 from cached credentials (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fully decouple PSS and CCS. Created 8 years, 5 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 | Annotate | Revision Log
OLDNEW
(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/sync/credential_cache_service_factory_win.h"
6
7 #include "base/memory/singleton.h"
8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/browser/profiles/profile_dependency_manager.h"
10 #include "chrome/browser/sync/credential_cache_service_win.h"
11
12 namespace syncer {
13
14 // static
15 CredentialCacheServiceFactory* CredentialCacheServiceFactory::GetInstance() {
16 return Singleton<CredentialCacheServiceFactory>::get();
17 }
18
19 // static
20 syncer::CredentialCacheService* CredentialCacheServiceFactory::GetForProfile(
21 Profile* profile) {
22 return static_cast<syncer::CredentialCacheService*>(
23 GetInstance()->GetServiceForProfile(profile, true));
24 }
25
26 CredentialCacheServiceFactory::CredentialCacheServiceFactory()
27 : ProfileKeyedServiceFactory("CredentialCacheService",
28 ProfileDependencyManager::GetInstance()) {
29 }
30
31 CredentialCacheServiceFactory::~CredentialCacheServiceFactory() {
32 }
33
34 ProfileKeyedService* CredentialCacheServiceFactory::BuildServiceInstanceFor(
35 Profile* profile) const {
36 return new syncer::CredentialCacheService(profile);
37 }
38
39 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698