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; |