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 |