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

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: Fix unit tests 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 // static
13 CredentialCacheServiceFactory* CredentialCacheServiceFactory::GetInstance() {
14 return Singleton<CredentialCacheServiceFactory>::get();
15 }
16
17 // static
18 syncer::CredentialCacheService* CredentialCacheServiceFactory::GetForProfile(
19 Profile* profile) {
20 return static_cast<syncer::CredentialCacheService*>(
21 GetInstance()->GetServiceForProfile(profile, true));
22 }
23
24 CredentialCacheServiceFactory::CredentialCacheServiceFactory()
25 : ProfileKeyedServiceFactory("CredentialCacheService",
26 ProfileDependencyManager::GetInstance()) {
27 }
28
29 CredentialCacheServiceFactory::~CredentialCacheServiceFactory() {
30 }
31
32 ProfileKeyedService* CredentialCacheServiceFactory::BuildServiceInstanceFor(
33 Profile* profile) const {
34 syncer::CredentialCacheService* ccs =
35 new syncer::CredentialCacheService(profile);
36 return ccs;
37 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698