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

Unified Diff: chrome/browser/ui/webui/signin/signin_create_profile_handler.cc

Issue 2058203002: MD User Manager: Supervised user logic should be inside ENABLE_SUPERVISED_USERS flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@md-user-manager-policy-prefs
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/signin/signin_create_profile_handler.cc
diff --git a/chrome/browser/ui/webui/signin/signin_create_profile_handler.cc b/chrome/browser/ui/webui/signin/signin_create_profile_handler.cc
index 229f86b8e4d2ae3d0b65984dc66528a55d573a06..2e3127ba1f5414019d40f8c69d07fc93dac0d019 100644
--- a/chrome/browser/ui/webui/signin/signin_create_profile_handler.cc
+++ b/chrome/browser/ui/webui/signin/signin_create_profile_handler.cc
@@ -492,6 +492,18 @@ void SigninCreateProfileHandler::OnBrowserReadyCallback(
}
}
+base::StringValue SigninCreateProfileHandler::GetWebUIListenerName(
+ ProfileCreationStatus status) const {
+ switch (status) {
+ case PROFILE_CREATION_SUCCESS:
+ return base::StringValue("create-profile-success");
+ case PROFILE_CREATION_ERROR:
+ return base::StringValue("create-profile-error");
+ }
+ NOTREACHED();
+ return base::StringValue(std::string());
+}
+
#if defined(ENABLE_SUPERVISED_USERS)
base::string16 SigninCreateProfileHandler::GetProfileCreateErrorMessageRemote()
const {
@@ -508,21 +520,7 @@ base::string16 SigninCreateProfileHandler::GetProfileCreateErrorMessageSignin()
? IDS_LEGACY_SUPERVISED_USER_IMPORT_SIGN_IN_ERROR
: IDS_PROFILES_CREATE_SIGN_IN_ERROR);
}
-#endif
-base::StringValue SigninCreateProfileHandler::GetWebUIListenerName(
- ProfileCreationStatus status) const {
- switch (status) {
- case PROFILE_CREATION_SUCCESS:
- return base::StringValue("create-profile-success");
- case PROFILE_CREATION_ERROR:
- return base::StringValue("create-profile-error");
- }
- NOTREACHED();
- return base::StringValue(std::string());
-}
-
-#if defined(ENABLE_SUPERVISED_USERS)
bool SigninCreateProfileHandler::GetSupervisedCreateProfileArgs(
const base::ListValue* args,
std::string* supervised_user_id,
@@ -810,5 +808,4 @@ void SigninCreateProfileHandler::SwitchToProfile(
profile,
Profile::CREATE_STATUS_INITIALIZED);
}
-
#endif

Powered by Google App Engine
This is Rietveld 408576698