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

Side by Side Diff: chrome/browser/chromeos/certificate_provider/certificate_provider_service_factory.cc

Issue 1308823002: Move Singleton and related structs to namespace base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ToT Created 5 years, 3 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/certificate_provider/certificate_provider_serv ice_factory.h" 5 #include "chrome/browser/chromeos/certificate_provider/certificate_provider_serv ice_factory.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 CertificateProviderService* 162 CertificateProviderService*
163 CertificateProviderServiceFactory::GetForBrowserContext( 163 CertificateProviderServiceFactory::GetForBrowserContext(
164 content::BrowserContext* context) { 164 content::BrowserContext* context) {
165 return static_cast<CertificateProviderService*>( 165 return static_cast<CertificateProviderService*>(
166 GetInstance()->GetServiceForBrowserContext(context, true)); 166 GetInstance()->GetServiceForBrowserContext(context, true));
167 } 167 }
168 168
169 // static 169 // static
170 CertificateProviderServiceFactory* 170 CertificateProviderServiceFactory*
171 CertificateProviderServiceFactory::GetInstance() { 171 CertificateProviderServiceFactory::GetInstance() {
172 return Singleton<CertificateProviderServiceFactory>::get(); 172 return base::Singleton<CertificateProviderServiceFactory>::get();
173 } 173 }
174 174
175 CertificateProviderServiceFactory::CertificateProviderServiceFactory() 175 CertificateProviderServiceFactory::CertificateProviderServiceFactory()
176 : BrowserContextKeyedServiceFactory( 176 : BrowserContextKeyedServiceFactory(
177 "CertificateProviderService", 177 "CertificateProviderService",
178 BrowserContextDependencyManager::GetInstance()) { 178 BrowserContextDependencyManager::GetInstance()) {
179 DependsOn(extensions::EventRouterFactory::GetInstance()); 179 DependsOn(extensions::EventRouterFactory::GetInstance());
180 DependsOn(extensions::ExtensionRegistryFactory::GetInstance()); 180 DependsOn(extensions::ExtensionRegistryFactory::GetInstance());
181 } 181 }
182 182
(...skipping 15 matching lines...) Expand all
198 } 198 }
199 CertificateProviderService* const service = new CertificateProviderService(); 199 CertificateProviderService* const service = new CertificateProviderService();
200 service->SetDelegate(make_scoped_ptr(new DefaultDelegate( 200 service->SetDelegate(make_scoped_ptr(new DefaultDelegate(
201 service, 201 service,
202 extensions::ExtensionRegistryFactory::GetForBrowserContext(context), 202 extensions::ExtensionRegistryFactory::GetForBrowserContext(context),
203 extensions::EventRouterFactory::GetForBrowserContext(context)))); 203 extensions::EventRouterFactory::GetForBrowserContext(context))));
204 return service; 204 return service;
205 } 205 }
206 206
207 } // namespace chromeos 207 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698