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

Unified Diff: chrome/browser/ui/webui/signin/signin_create_profile_handler.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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/signin/signin_create_profile_handler.h
diff --git a/chrome/browser/ui/webui/signin/signin_create_profile_handler.h b/chrome/browser/ui/webui/signin/signin_create_profile_handler.h
index e8b1160476212688feca3ef6ba83824af21d0cc6..46c5de59d958ff82239b18049803173cd0682996 100644
--- a/chrome/browser/ui/webui/signin/signin_create_profile_handler.h
+++ b/chrome/browser/ui/webui/signin/signin_create_profile_handler.h
@@ -13,6 +13,7 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_attributes_storage.h"
#include "chrome/browser/profiles/profile_window.h"
+#include "chrome/common/features.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
#include "content/public/browser/web_ui_message_handler.h"
@@ -23,7 +24,7 @@ class DictionaryValue;
class ListValue;
}
-#if defined(ENABLE_SUPERVISED_USERS)
+#if BUILDFLAG(ENABLE_SUPERVISED_USERS)
class SupervisedUserRegistrationUtility;
#endif
@@ -44,7 +45,7 @@ class SigninCreateProfileHandler : public content::WebUIMessageHandler,
ReturnSignedInProfiles);
FRIEND_TEST_ALL_PREFIXES(SigninCreateProfileHandlerTest,
CreateProfile);
-#if defined(ENABLE_SUPERVISED_USERS)
+#if BUILDFLAG(ENABLE_SUPERVISED_USERS)
FRIEND_TEST_ALL_PREFIXES(SigninCreateProfileHandlerTest,
CreateSupervisedUser);
FRIEND_TEST_ALL_PREFIXES(SigninCreateProfileHandlerTest,
@@ -83,7 +84,7 @@ class SigninCreateProfileHandler : public content::WebUIMessageHandler,
// It is used to map the type of the profile creation operation to the
// correct UMA metric name.
enum ProfileCreationOperationType {
-#if defined(ENABLE_SUPERVISED_USERS)
+#if BUILDFLAG(ENABLE_SUPERVISED_USERS)
SUPERVISED_PROFILE_CREATION,
SUPERVISED_PROFILE_IMPORT,
#endif
@@ -178,7 +179,7 @@ class SigninCreateProfileHandler : public content::WebUIMessageHandler,
const std::string& supervised_user_id,
Profile* custodian_profile);
-#if defined(ENABLE_SUPERVISED_USERS)
+#if BUILDFLAG(ENABLE_SUPERVISED_USERS)
base::string16 GetProfileCreateErrorMessageRemote() const;
base::string16 GetProfileCreateErrorMessageSignin() const;
« no previous file with comments | « chrome/browser/ui/webui/signin/md_user_manager_ui.cc ('k') | chrome/browser/ui/webui/signin/signin_create_profile_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698