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

Side by Side Diff: components/wifi_sync/wifi_credential_syncable_service_factory.cc

Issue 709683004: components: add wifi_sync component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@submit-1-security-class
Patch Set: fix android_aosp build Created 6 years 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 2014 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 "components/wifi_sync/wifi_credential_syncable_service_factory.h"
6
7 #include "components/keyed_service/content/browser_context_dependency_manager.h"
8 #include "components/wifi_sync/wifi_credential_syncable_service.h"
9
10 namespace wifi_sync {
11
12 // static
13 WifiCredentialSyncableService*
14 WifiCredentialSyncableServiceFactory::GetForBrowserContext(
15 content::BrowserContext* browser_context) {
16 return static_cast<WifiCredentialSyncableService*>(
17 GetInstance()->GetServiceForBrowserContext(browser_context, true));
18 }
19
20 // static
21 WifiCredentialSyncableServiceFactory*
22 WifiCredentialSyncableServiceFactory::GetInstance() {
23 return Singleton<WifiCredentialSyncableServiceFactory>::get();
24 }
25
26 // Private methods.
27
28 WifiCredentialSyncableServiceFactory::WifiCredentialSyncableServiceFactory()
29 : BrowserContextKeyedServiceFactory(
30 "WifiCredentialSyncableService",
31 BrowserContextDependencyManager::GetInstance()) {
32 }
33
34 WifiCredentialSyncableServiceFactory::~WifiCredentialSyncableServiceFactory() {
35 }
36
37 KeyedService* WifiCredentialSyncableServiceFactory::BuildServiceInstanceFor(
38 content::BrowserContext* context) const {
39 // TODO(quiche): Figure out if this behaves properly for multi-profile.
40 // crbug.com/430681.
41 return new WifiCredentialSyncableService();
42 }
43
44 } // namespace wifi_sync
OLDNEW
« no previous file with comments | « components/wifi_sync/wifi_credential_syncable_service_factory.h ('k') | components/wifi_sync/wifi_security_class.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698