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

Unified Diff: chrome/browser/chromeos/login/enterprise_enrollment_view.cc

Issue 6821045: Connect enrollment screen to cloud policy subsystem. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unit tests... Created 9 years, 8 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/chromeos/login/enterprise_enrollment_view.cc
diff --git a/chrome/browser/chromeos/login/enterprise_enrollment_view.cc b/chrome/browser/chromeos/login/enterprise_enrollment_view.cc
index 47a521ab0d1f24f2e292bd74f655977295f98422..44c7de5a9810528baeca7234cbffbbf6c6fab88c 100644
--- a/chrome/browser/chromeos/login/enterprise_enrollment_view.cc
+++ b/chrome/browser/chromeos/login/enterprise_enrollment_view.cc
@@ -135,6 +135,14 @@ void EnterpriseEnrollmentView::ShowFatalAuthError() {
ShowError(IDS_ENTERPRISE_ENROLLMENT_FATAL_AUTH_ERROR);
}
+void EnterpriseEnrollmentView::ShowFatalEnrollmentError() {
+ ShowError(IDS_ENTERPRISE_ENROLLMENT_FATAL_ENROLLMENT_ERROR);
+}
+
+void EnterpriseEnrollmentView::ShowNetworkEnrollmentError() {
+ ShowError(IDS_ENTERPRISE_ENROLLMENT_NETWORK_ENROLLMENT_ERROR);
+}
+
void EnterpriseEnrollmentView::OnAuthSubmitted(const std::string& user,
const std::string& password,
const std::string& captcha,
@@ -164,6 +172,7 @@ void EnterpriseEnrollmentView::UpdateGaiaLogin(const DictionaryValue& args) {
void EnterpriseEnrollmentView::ShowError(int message_id) {
DictionaryValue args;
args.SetInteger("error", GoogleServiceAuthError::NONE);
+ args.SetBoolean("editable_user", true);
args.SetString("error_message", l10n_util::GetStringUTF16(message_id));
UpdateGaiaLogin(args);
}
« no previous file with comments | « chrome/browser/chromeos/login/enterprise_enrollment_view.h ('k') | chrome/browser/policy/browser_policy_connector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698