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

Side by Side Diff: chrome/browser/ui/webui/signin/md_user_manager_ui.h

Issue 2468723003: Move session service and supervised users to buildflags. (Closed)
Patch Set: Created 4 years, 1 month 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_MD_USER_MANAGER_UI_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_SIGNIN_MD_USER_MANAGER_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_MD_USER_MANAGER_UI_H_ 6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_MD_USER_MANAGER_UI_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "chrome/common/features.h"
9 #include "content/public/browser/web_ui_controller.h" 10 #include "content/public/browser/web_ui_controller.h"
10 11
11 class SigninCreateProfileHandler; 12 class SigninCreateProfileHandler;
12 class UserManagerScreenHandler; 13 class UserManagerScreenHandler;
13 14
14 #if defined(ENABLE_SUPERVISED_USERS) 15 #if BUILDFLAG(ENABLE_SUPERVISED_USERS)
15 class SigninSupervisedUserImportHandler; 16 class SigninSupervisedUserImportHandler;
16 #endif 17 #endif
17 18
18 namespace base { 19 namespace base {
19 class DictionaryValue; 20 class DictionaryValue;
20 } 21 }
21 namespace content { 22 namespace content {
22 class WebUIDataSource; 23 class WebUIDataSource;
23 } 24 }
24 25
25 // A WebUI dialog to display available users. 26 // A WebUI dialog to display available users.
26 class MDUserManagerUI : public content::WebUIController { 27 class MDUserManagerUI : public content::WebUIController {
27 public: 28 public:
28 explicit MDUserManagerUI(content::WebUI* web_ui); 29 explicit MDUserManagerUI(content::WebUI* web_ui);
29 ~MDUserManagerUI() override; 30 ~MDUserManagerUI() override;
30 31
31 private: 32 private:
32 content::WebUIDataSource* CreateUIDataSource( 33 content::WebUIDataSource* CreateUIDataSource(
33 const base::DictionaryValue& localized_strings); 34 const base::DictionaryValue& localized_strings);
34 void GetLocalizedStrings(base::DictionaryValue* localized_strings); 35 void GetLocalizedStrings(base::DictionaryValue* localized_strings);
35 36
36 SigninCreateProfileHandler* signin_create_profile_handler_; 37 SigninCreateProfileHandler* signin_create_profile_handler_;
37 UserManagerScreenHandler* user_manager_screen_handler_; 38 UserManagerScreenHandler* user_manager_screen_handler_;
38 39
39 #if defined(ENABLE_SUPERVISED_USERS) 40 #if BUILDFLAG(ENABLE_SUPERVISED_USERS)
40 SigninSupervisedUserImportHandler* signin_supervised_user_import_handler_; 41 SigninSupervisedUserImportHandler* signin_supervised_user_import_handler_;
41 #endif 42 #endif
42 43
43 DISALLOW_COPY_AND_ASSIGN(MDUserManagerUI); 44 DISALLOW_COPY_AND_ASSIGN(MDUserManagerUI);
44 }; 45 };
45 46
46 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_MD_USER_MANAGER_UI_H_ 47 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_MD_USER_MANAGER_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options/options_ui.cc ('k') | chrome/browser/ui/webui/signin/md_user_manager_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698