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

Side by Side Diff: chrome/browser/favicon/chrome_fallback_icon_client_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/favicon/chrome_fallback_icon_client_factory.h" 5 #include "chrome/browser/favicon/chrome_fallback_icon_client_factory.h"
6 6
7 #include "base/memory/singleton.h" 7 #include "base/memory/singleton.h"
8 #include "chrome/browser/favicon/chrome_fallback_icon_client.h" 8 #include "chrome/browser/favicon/chrome_fallback_icon_client.h"
9 #include "chrome/browser/profiles/incognito_helpers.h" 9 #include "chrome/browser/profiles/incognito_helpers.h"
10 #include "components/keyed_service/content/browser_context_dependency_manager.h" 10 #include "components/keyed_service/content/browser_context_dependency_manager.h"
(...skipping 12 matching lines...) Expand all
23 favicon::FallbackIconClient* 23 favicon::FallbackIconClient*
24 ChromeFallbackIconClientFactory::GetForBrowserContext( 24 ChromeFallbackIconClientFactory::GetForBrowserContext(
25 content::BrowserContext* context) { 25 content::BrowserContext* context) {
26 return static_cast<favicon::FallbackIconClient*>( 26 return static_cast<favicon::FallbackIconClient*>(
27 GetInstance()->GetServiceForBrowserContext(context, true)); 27 GetInstance()->GetServiceForBrowserContext(context, true));
28 } 28 }
29 29
30 // static 30 // static
31 ChromeFallbackIconClientFactory* 31 ChromeFallbackIconClientFactory*
32 ChromeFallbackIconClientFactory::GetInstance() { 32 ChromeFallbackIconClientFactory::GetInstance() {
33 return Singleton<ChromeFallbackIconClientFactory>::get(); 33 return base::Singleton<ChromeFallbackIconClientFactory>::get();
34 } 34 }
35 35
36 KeyedService* ChromeFallbackIconClientFactory::BuildServiceInstanceFor( 36 KeyedService* ChromeFallbackIconClientFactory::BuildServiceInstanceFor(
37 content::BrowserContext* context) const { 37 content::BrowserContext* context) const {
38 return new ChromeFallbackIconClient(); 38 return new ChromeFallbackIconClient();
39 } 39 }
OLDNEW
« no previous file with comments | « chrome/browser/favicon/chrome_fallback_icon_client_factory.h ('k') | chrome/browser/favicon/fallback_icon_service_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698