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

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: Addressed comments. 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..2bfdaf4100bd572abb7bd050bf0372aa09f849a4 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() {
Nikita (slow) 2012/06/14 12:42:55 nit: rename to ShowDomainMismatchError()
pastarmovj 2012/06/18 14:57:27 Done.
+ UMAFailure(policy::kMetricEnrollmentWrongUserError);
+ ShowError(IDS_ENTERPRISE_ENROLLMENT_DOMAIN_MISMATCH_ERROR, true);
+ NotifyObservers(false);
+}
+
void EnterpriseOAuthEnrollmentScreenHandler::SubmitTestCredentials(
const std::string& email,
const std::string& password) {

Powered by Google App Engine
This is Rietveld 408576698