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

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

Issue 1826903002: updated UI, default profile name, check for existing supervised user before create (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 4 years, 8 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 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 "content/public/browser/web_ui_controller.h" 9 #include "content/public/browser/web_ui_controller.h"
10 10
11 class SigninCreateProfileHandler; 11 class SigninCreateProfileHandler;
12 class UserManagerScreenHandler; 12 class UserManagerScreenHandler;
13 13
14 #if defined(ENABLE_SUPERVISED_USERS)
15 class SigninSupervisedUserImportHandler;
16 #endif
17
14 namespace base { 18 namespace base {
15 class DictionaryValue; 19 class DictionaryValue;
16 } 20 }
17 namespace content { 21 namespace content {
18 class WebUIDataSource; 22 class WebUIDataSource;
19 } 23 }
20 24
21 // A WebUI dialog to display available users. 25 // A WebUI dialog to display available users.
22 class MDUserManagerUI : public content::WebUIController { 26 class MDUserManagerUI : public content::WebUIController {
23 public: 27 public:
24 explicit MDUserManagerUI(content::WebUI* web_ui); 28 explicit MDUserManagerUI(content::WebUI* web_ui);
25 ~MDUserManagerUI() override; 29 ~MDUserManagerUI() override;
26 30
27 private: 31 private:
28 content::WebUIDataSource* CreateUIDataSource( 32 content::WebUIDataSource* CreateUIDataSource(
29 const base::DictionaryValue& localized_strings); 33 const base::DictionaryValue& localized_strings);
30 void GetLocalizedStrings(base::DictionaryValue* localized_strings); 34 void GetLocalizedStrings(base::DictionaryValue* localized_strings);
31 35
32 SigninCreateProfileHandler* signin_create_profile_handler_; 36 SigninCreateProfileHandler* signin_create_profile_handler_;
33 UserManagerScreenHandler* user_manager_screen_handler_; 37 UserManagerScreenHandler* user_manager_screen_handler_;
34 38
39 #if defined(ENABLE_SUPERVISED_USERS)
40 SigninSupervisedUserImportHandler* signin_supervised_user_import_handler_;
41 #endif
42
35 DISALLOW_COPY_AND_ASSIGN(MDUserManagerUI); 43 DISALLOW_COPY_AND_ASSIGN(MDUserManagerUI);
36 }; 44 };
37 45
38 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_MD_USER_MANAGER_UI_H_ 46 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_MD_USER_MANAGER_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698