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

Side by Side Diff: chrome/browser/ui/webui/signin/login_ui_service_factory.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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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_UI_WEBUI_SIGNIN_LOGIN_UI_SERVICE_FACTORY_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_SIGNIN_LOGIN_UI_SERVICE_FACTORY_H_
6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_LOGIN_UI_SERVICE_FACTORY_H_ 6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_LOGIN_UI_SERVICE_FACTORY_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 10
(...skipping 12 matching lines...) Expand all
23 23
24 // Returns an instance of the LoginUIServiceFactory singleton. 24 // Returns an instance of the LoginUIServiceFactory singleton.
25 static LoginUIServiceFactory* GetInstance(); 25 static LoginUIServiceFactory* GetInstance();
26 26
27 // Helper method that returns a closure displaying the login popup for 27 // Helper method that returns a closure displaying the login popup for
28 // |profile|. 28 // |profile|.
29 // This closure must not be called after the LoginUIService is destroyed. 29 // This closure must not be called after the LoginUIService is destroyed.
30 static base::Closure GetShowLoginPopupCallbackForProfile(Profile* profile); 30 static base::Closure GetShowLoginPopupCallbackForProfile(Profile* profile);
31 31
32 private: 32 private:
33 friend struct DefaultSingletonTraits<LoginUIServiceFactory>; 33 friend struct base::DefaultSingletonTraits<LoginUIServiceFactory>;
34 34
35 LoginUIServiceFactory(); 35 LoginUIServiceFactory();
36 ~LoginUIServiceFactory() override; 36 ~LoginUIServiceFactory() override;
37 37
38 // BrowserContextKeyedServiceFactory: 38 // BrowserContextKeyedServiceFactory:
39 KeyedService* BuildServiceInstanceFor( 39 KeyedService* BuildServiceInstanceFor(
40 content::BrowserContext* profile) const override; 40 content::BrowserContext* profile) const override;
41 41
42 DISALLOW_COPY_AND_ASSIGN(LoginUIServiceFactory); 42 DISALLOW_COPY_AND_ASSIGN(LoginUIServiceFactory);
43 }; 43 };
44 44
45 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_LOGIN_UI_SERVICE_FACTORY_H_ 45 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_LOGIN_UI_SERVICE_FACTORY_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/ntp/ntp_resource_cache_factory.cc ('k') | chrome/browser/ui/webui/signin/login_ui_service_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698