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

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

Issue 2928823003: Make it possible to build without enable_supervised_users.
Patch Set: Does it still compile with the feature enabled? Created 3 years, 6 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_SIGNIN_CREATE_PROFILE_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_SIGNIN_SIGNIN_CREATE_PROFILE_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_SIGNIN_CREATE_PROFILE_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_SIGNIN_CREATE_PROFILE_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 27 matching lines...) Expand all
38 38
39 void GetLocalizedValues(base::DictionaryValue* localized_strings); 39 void GetLocalizedValues(base::DictionaryValue* localized_strings);
40 40
41 protected: 41 protected:
42 FRIEND_TEST_ALL_PREFIXES(SigninCreateProfileHandlerTest, 42 FRIEND_TEST_ALL_PREFIXES(SigninCreateProfileHandlerTest,
43 ReturnDefaultProfileNameAndIcons); 43 ReturnDefaultProfileNameAndIcons);
44 FRIEND_TEST_ALL_PREFIXES(SigninCreateProfileHandlerTest, 44 FRIEND_TEST_ALL_PREFIXES(SigninCreateProfileHandlerTest,
45 ReturnSignedInProfiles); 45 ReturnSignedInProfiles);
46 FRIEND_TEST_ALL_PREFIXES(SigninCreateProfileHandlerTest, 46 FRIEND_TEST_ALL_PREFIXES(SigninCreateProfileHandlerTest,
47 CreateProfile); 47 CreateProfile);
48 FRIEND_TEST_ALL_PREFIXES(SigninCreateProfileHandlerTest,
49 CreateProfileWithForceSignin);
48 #if BUILDFLAG(ENABLE_SUPERVISED_USERS) 50 #if BUILDFLAG(ENABLE_SUPERVISED_USERS)
49 FRIEND_TEST_ALL_PREFIXES(SigninCreateProfileHandlerTest, 51 FRIEND_TEST_ALL_PREFIXES(SigninCreateProfileHandlerTest,
50 CreateSupervisedUser); 52 CreateSupervisedUser);
51 FRIEND_TEST_ALL_PREFIXES(SigninCreateProfileHandlerTest, 53 FRIEND_TEST_ALL_PREFIXES(SigninCreateProfileHandlerTest,
52 ImportSupervisedUser); 54 ImportSupervisedUser);
53 FRIEND_TEST_ALL_PREFIXES(SigninCreateProfileHandlerTest, 55 FRIEND_TEST_ALL_PREFIXES(SigninCreateProfileHandlerTest,
54 ImportSupervisedUserAlreadyOnDevice); 56 ImportSupervisedUserAlreadyOnDevice);
55 FRIEND_TEST_ALL_PREFIXES(SigninCreateProfileHandlerTest, 57 FRIEND_TEST_ALL_PREFIXES(SigninCreateProfileHandlerTest,
56 CustodianNotAuthenticated); 58 CustodianNotAuthenticated);
57 FRIEND_TEST_ALL_PREFIXES(SigninCreateProfileHandlerTest, 59 FRIEND_TEST_ALL_PREFIXES(SigninCreateProfileHandlerTest,
58 CustodianHasAuthError); 60 CustodianHasAuthError);
59 FRIEND_TEST_ALL_PREFIXES(SigninCreateProfileHandlerTest, 61 FRIEND_TEST_ALL_PREFIXES(SigninCreateProfileHandlerTest,
60 NotAllowedToCreateSupervisedUser); 62 NotAllowedToCreateSupervisedUser);
61 FRIEND_TEST_ALL_PREFIXES(SigninCreateProfileHandlerTest,
62 CreateProfileWithForceSignin);
63 #endif 63 #endif
64 64
65 // WebUIMessageHandler implementation. 65 // WebUIMessageHandler implementation.
66 void RegisterMessages() override; 66 void RegisterMessages() override;
67 67
68 // content::NotificationObserver implementation: 68 // content::NotificationObserver implementation:
69 void Observe(int type, 69 void Observe(int type,
70 const content::NotificationSource& source, 70 const content::NotificationSource& source,
71 const content::NotificationDetails& details) override; 71 const content::NotificationDetails& details) override;
72 72
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 256
257 content::NotificationRegistrar registrar_; 257 content::NotificationRegistrar registrar_;
258 258
259 base::WeakPtrFactory<SigninCreateProfileHandler> weak_ptr_factory_; 259 base::WeakPtrFactory<SigninCreateProfileHandler> weak_ptr_factory_;
260 260
261 private: 261 private:
262 DISALLOW_COPY_AND_ASSIGN(SigninCreateProfileHandler); 262 DISALLOW_COPY_AND_ASSIGN(SigninCreateProfileHandler);
263 }; 263 };
264 264
265 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_SIGNIN_CREATE_PROFILE_HANDLER_H_ 265 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_SIGNIN_CREATE_PROFILE_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/interstitials/interstitial_ui.cc ('k') | chrome/browser/ui/webui/supervised_user_internals_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698