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

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

Issue 11753026: Use correct string for enrollment validation errors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/webui/chromeos/login/enterprise_oauth_enrollment_scr een_handler.h" 5 #include "chrome/browser/ui/webui/chromeos/login/enterprise_oauth_enrollment_scr een_handler.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 case policy::EnrollmentStatus::STATUS_POLICY_FETCH_FAILED: 248 case policy::EnrollmentStatus::STATUS_POLICY_FETCH_FAILED:
249 ShowErrorMessage( 249 ShowErrorMessage(
250 l10n_util::GetStringFUTF8( 250 l10n_util::GetStringFUTF8(
251 IDS_ENTERPRISE_ENROLLMENT_STATUS_POLICY_FETCH_FAILED, 251 IDS_ENTERPRISE_ENROLLMENT_STATUS_POLICY_FETCH_FAILED,
252 policy::FormatDeviceManagementStatus(status.client_status())), 252 policy::FormatDeviceManagementStatus(status.client_status())),
253 true); 253 true);
254 return; 254 return;
255 case policy::EnrollmentStatus::STATUS_VALIDATION_FAILED: 255 case policy::EnrollmentStatus::STATUS_VALIDATION_FAILED:
256 ShowErrorMessage( 256 ShowErrorMessage(
257 l10n_util::GetStringFUTF8( 257 l10n_util::GetStringFUTF8(
258 IDS_ENTERPRISE_ENROLLMENT_STATUS_POLICY_FETCH_FAILED, 258 IDS_ENTERPRISE_ENROLLMENT_STATUS_VALIDATION_FAILED,
259 policy::FormatValidationStatus(status.validation_status())), 259 policy::FormatValidationStatus(status.validation_status())),
260 true); 260 true);
261 return; 261 return;
262 case policy::EnrollmentStatus::STATUS_LOCK_ERROR: 262 case policy::EnrollmentStatus::STATUS_LOCK_ERROR:
263 ShowError(IDS_ENTERPRISE_ENROLLMENT_STATUS_LOCK_ERROR, false); 263 ShowError(IDS_ENTERPRISE_ENROLLMENT_STATUS_LOCK_ERROR, false);
264 return; 264 return;
265 case policy::EnrollmentStatus::STATUS_LOCK_TIMEOUT: 265 case policy::EnrollmentStatus::STATUS_LOCK_TIMEOUT:
266 ShowError(IDS_ENTERPRISE_ENROLLMENT_STATUS_LOCK_TIMEOUT, false); 266 ShowError(IDS_ENTERPRISE_ENROLLMENT_STATUS_LOCK_TIMEOUT, false);
267 return; 267 return;
268 case policy::EnrollmentStatus::STATUS_LOCK_WRONG_USER: 268 case policy::EnrollmentStatus::STATUS_LOCK_WRONG_USER:
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 screen_data.SetBoolean("is_auto_enrollment", is_auto_enrollment_); 505 screen_data.SetBoolean("is_auto_enrollment", is_auto_enrollment_);
506 if (!test_email_.empty()) { 506 if (!test_email_.empty()) {
507 screen_data.SetString("test_email", test_email_); 507 screen_data.SetString("test_email", test_email_);
508 screen_data.SetString("test_password", test_password_); 508 screen_data.SetString("test_password", test_password_);
509 } 509 }
510 510
511 ShowScreen(OobeUI::kScreenOobeEnrollment, &screen_data); 511 ShowScreen(OobeUI::kScreenOobeEnrollment, &screen_data);
512 } 512 }
513 513
514 } // namespace chromeos 514 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698