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

Unified Diff: chrome/browser/ui/webui/chromeos/login/enterprise_oauth_enrollment_screen_handler.cc

Issue 10443125: Allow re-enrollment to the same domain in case of policy data loss. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moved the domain extraction to Authenticator and added custom error message. Created 8 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/chromeos/login/enterprise_oauth_enrollment_screen_handler.cc
diff --git a/chrome/browser/ui/webui/chromeos/login/enterprise_oauth_enrollment_screen_handler.cc b/chrome/browser/ui/webui/chromeos/login/enterprise_oauth_enrollment_screen_handler.cc
index 9950066c016467cca962bcd62828d2cccfc77744..868ee3f73f6f7ae1d330aaa8e0eec006baf9124c 100644
--- a/chrome/browser/ui/webui/chromeos/login/enterprise_oauth_enrollment_screen_handler.cc
+++ b/chrome/browser/ui/webui/chromeos/login/enterprise_oauth_enrollment_screen_handler.cc
@@ -245,6 +245,12 @@ void EnterpriseOAuthEnrollmentScreenHandler::ShowLockboxTimeoutError() {
NotifyObservers(false);
}
+void EnterpriseOAuthEnrollmentScreenHandler::ShowUserEnrollmentError() {
+ UMAFailure(policy::kMetricEnrollmentWrongUserError);
+ ShowError(IDS_ENTERPRISE_WRONG_USER_ERROR, true);
+ NotifyObservers(false);
+}
+
void EnterpriseOAuthEnrollmentScreenHandler::SubmitTestCredentials(
const std::string& email,
const std::string& password) {

Powered by Google App Engine
This is Rietveld 408576698