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

Side by Side Diff: chrome/browser/android/logo_service.h

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
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/android/logo_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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 #ifndef CHROME_BROWSER_ANDROID_LOGO_SERVICE_H_ 5 #ifndef CHROME_BROWSER_ANDROID_LOGO_SERVICE_H_
6 #define CHROME_BROWSER_ANDROID_LOGO_SERVICE_H_ 6 #define CHROME_BROWSER_ANDROID_LOGO_SERVICE_H_
7 7
8 #include "base/memory/singleton.h" 8 #include "base/memory/singleton.h"
9 #include "components/keyed_service/content/browser_context_keyed_service_factory .h" 9 #include "components/keyed_service/content/browser_context_keyed_service_factory .h"
10 #include "components/keyed_service/core/keyed_service.h" 10 #include "components/keyed_service/core/keyed_service.h"
(...skipping 25 matching lines...) Expand all
36 }; 36 };
37 37
38 // Singleton that owns all LogoServices and associates them with Profiles. 38 // Singleton that owns all LogoServices and associates them with Profiles.
39 class LogoServiceFactory : public BrowserContextKeyedServiceFactory { 39 class LogoServiceFactory : public BrowserContextKeyedServiceFactory {
40 public: 40 public:
41 static LogoService* GetForProfile(Profile* profile); 41 static LogoService* GetForProfile(Profile* profile);
42 42
43 static LogoServiceFactory* GetInstance(); 43 static LogoServiceFactory* GetInstance();
44 44
45 private: 45 private:
46 friend struct DefaultSingletonTraits<LogoServiceFactory>; 46 friend struct base::DefaultSingletonTraits<LogoServiceFactory>;
47 47
48 LogoServiceFactory(); 48 LogoServiceFactory();
49 ~LogoServiceFactory() override; 49 ~LogoServiceFactory() override;
50 50
51 // BrowserContextKeyedServiceFactory: 51 // BrowserContextKeyedServiceFactory:
52 KeyedService* BuildServiceInstanceFor( 52 KeyedService* BuildServiceInstanceFor(
53 content::BrowserContext* context) const override; 53 content::BrowserContext* context) const override;
54 }; 54 };
55 55
56 #endif // CHROME_BROWSER_ANDROID_LOGO_SERVICE_H_ 56 #endif // CHROME_BROWSER_ANDROID_LOGO_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/android/logo_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698