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

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

Issue 2382833002: Rename policy::EnterpriseInstallAttributes to chromeos::InstallAttributes. (Closed)
Patch Set: Add missing #includes. Created 4 years, 2 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
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/enrollment_screen_handler.h" 5 #include "chrome/browser/ui/webui/chromeos/login/enrollment_screen_handler.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "ash/common/system/chromeos/devicetype_utils.h" 9 #include "ash/common/system/chromeos/devicetype_utils.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 return; 295 return;
296 case policy::EnrollmentStatus::STATUS_VALIDATION_FAILED: 296 case policy::EnrollmentStatus::STATUS_VALIDATION_FAILED:
297 ShowErrorMessage( 297 ShowErrorMessage(
298 l10n_util::GetStringFUTF8( 298 l10n_util::GetStringFUTF8(
299 IDS_ENTERPRISE_ENROLLMENT_STATUS_VALIDATION_FAILED, 299 IDS_ENTERPRISE_ENROLLMENT_STATUS_VALIDATION_FAILED,
300 policy::FormatValidationStatus(status.validation_status())), 300 policy::FormatValidationStatus(status.validation_status())),
301 true); 301 true);
302 return; 302 return;
303 case policy::EnrollmentStatus::STATUS_LOCK_ERROR: 303 case policy::EnrollmentStatus::STATUS_LOCK_ERROR:
304 switch (status.lock_status()) { 304 switch (status.lock_status()) {
305 case policy::EnterpriseInstallAttributes::LOCK_SUCCESS: 305 case InstallAttributes::LOCK_SUCCESS:
306 case policy::EnterpriseInstallAttributes::LOCK_NOT_READY: 306 case InstallAttributes::LOCK_NOT_READY:
307 // LOCK_SUCCESS is in contradiction of STATUS_LOCK_ERROR. 307 // LOCK_SUCCESS is in contradiction of STATUS_LOCK_ERROR.
308 // LOCK_NOT_READY is transient, if retries are given up, LOCK_TIMEOUT 308 // LOCK_NOT_READY is transient, if retries are given up, LOCK_TIMEOUT
309 // is reported instead. This piece of code is unreached. 309 // is reported instead. This piece of code is unreached.
310 LOG(FATAL) << "Invalid lock status."; 310 LOG(FATAL) << "Invalid lock status.";
311 return; 311 return;
312 case policy::EnterpriseInstallAttributes::LOCK_TIMEOUT: 312 case InstallAttributes::LOCK_TIMEOUT:
313 ShowError(IDS_ENTERPRISE_ENROLLMENT_STATUS_LOCK_TIMEOUT, false); 313 ShowError(IDS_ENTERPRISE_ENROLLMENT_STATUS_LOCK_TIMEOUT, false);
314 return; 314 return;
315 case policy::EnterpriseInstallAttributes::LOCK_BACKEND_INVALID: 315 case InstallAttributes::LOCK_BACKEND_INVALID:
316 case policy::EnterpriseInstallAttributes::LOCK_ALREADY_LOCKED: 316 case InstallAttributes::LOCK_ALREADY_LOCKED:
317 case policy::EnterpriseInstallAttributes::LOCK_SET_ERROR: 317 case InstallAttributes::LOCK_SET_ERROR:
318 case policy::EnterpriseInstallAttributes::LOCK_FINALIZE_ERROR: 318 case InstallAttributes::LOCK_FINALIZE_ERROR:
319 case policy::EnterpriseInstallAttributes::LOCK_READBACK_ERROR: 319 case InstallAttributes::LOCK_READBACK_ERROR:
320 ShowError(IDS_ENTERPRISE_ENROLLMENT_STATUS_LOCK_ERROR, false); 320 ShowError(IDS_ENTERPRISE_ENROLLMENT_STATUS_LOCK_ERROR, false);
321 return; 321 return;
322 case policy::EnterpriseInstallAttributes::LOCK_WRONG_DOMAIN: 322 case InstallAttributes::LOCK_WRONG_DOMAIN:
323 ShowError(IDS_ENTERPRISE_ENROLLMENT_STATUS_LOCK_WRONG_USER, true); 323 ShowError(IDS_ENTERPRISE_ENROLLMENT_STATUS_LOCK_WRONG_USER, true);
324 return; 324 return;
325 case policy::EnterpriseInstallAttributes::LOCK_WRONG_MODE: 325 case InstallAttributes::LOCK_WRONG_MODE:
326 ShowError(IDS_ENTERPRISE_ENROLLMENT_STATUS_LOCK_WRONG_MODE, true); 326 ShowError(IDS_ENTERPRISE_ENROLLMENT_STATUS_LOCK_WRONG_MODE, true);
327 return; 327 return;
328 } 328 }
329 NOTREACHED(); 329 NOTREACHED();
330 return; 330 return;
331 case policy::EnrollmentStatus::STATUS_STORE_ERROR: 331 case policy::EnrollmentStatus::STATUS_STORE_ERROR:
332 ShowErrorMessage( 332 ShowErrorMessage(
333 l10n_util::GetStringFUTF8( 333 l10n_util::GetStringFUTF8(
334 IDS_ENTERPRISE_ENROLLMENT_STATUS_STORE_ERROR, 334 IDS_ENTERPRISE_ENROLLMENT_STATUS_STORE_ERROR,
335 policy::FormatStoreStatus(status.store_status(), 335 policy::FormatStoreStatus(status.store_status(),
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 570
571 ShowScreenWithData(OobeScreen::SCREEN_OOBE_ENROLLMENT, &screen_data); 571 ShowScreenWithData(OobeScreen::SCREEN_OOBE_ENROLLMENT, &screen_data);
572 if (first_show_) { 572 if (first_show_) {
573 first_show_ = false; 573 first_show_ = false;
574 UpdateStateInternal(NetworkError::ERROR_REASON_UPDATE, true); 574 UpdateStateInternal(NetworkError::ERROR_REASON_UPDATE, true);
575 } 575 }
576 histogram_helper_->OnScreenShow(); 576 histogram_helper_->OnScreenShow();
577 } 577 }
578 578
579 } // namespace chromeos 579 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/net/errorpage_browsertest.cc ('k') | chrome/browser/ui/webui/options/preferences_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698