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

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

Issue 2544773002: Fetch policy from Active Directory at the end of enrollment (Closed)
Patch Set: Convert CHECK_EQ(true, ...) to CHECK(...) Created 4 years 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 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 true); 375 true);
376 NOTREACHED(); 376 NOTREACHED();
377 return; 377 return;
378 case policy::EnrollmentStatus::STATUS_ATTRIBUTE_UPDATE_FAILED: 378 case policy::EnrollmentStatus::STATUS_ATTRIBUTE_UPDATE_FAILED:
379 ShowErrorForDevice(IDS_ENTERPRISE_ENROLLMENT_ATTRIBUTE_ERROR, false); 379 ShowErrorForDevice(IDS_ENTERPRISE_ENROLLMENT_ATTRIBUTE_ERROR, false);
380 return; 380 return;
381 case policy::EnrollmentStatus::STATUS_NO_MACHINE_IDENTIFICATION: 381 case policy::EnrollmentStatus::STATUS_NO_MACHINE_IDENTIFICATION:
382 ShowError(IDS_ENTERPRISE_ENROLLMENT_STATUS_NO_MACHINE_IDENTIFICATION, 382 ShowError(IDS_ENTERPRISE_ENROLLMENT_STATUS_NO_MACHINE_IDENTIFICATION,
383 false); 383 false);
384 return; 384 return;
385 case policy::EnrollmentStatus::STATUS_ACTIVE_DIRECTORY_POLICY_FETCH_FAILED:
386 ShowError(IDS_ENTERPRISE_ENROLLMENT_ERROR_ACTIVE_DIRECTORY_POLICY_FETCH,
387 false);
388 return;
385 } 389 }
386 NOTREACHED(); 390 NOTREACHED();
387 } 391 }
388 392
389 // EnrollmentScreenHandler BaseScreenHandler implementation ----- 393 // EnrollmentScreenHandler BaseScreenHandler implementation -----
390 394
391 void EnrollmentScreenHandler::Initialize() { 395 void EnrollmentScreenHandler::Initialize() {
392 if (show_on_init_) { 396 if (show_on_init_) {
393 Show(); 397 Show();
394 show_on_init_ = false; 398 show_on_init_ = false;
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
660 664
661 ShowScreenWithData(OobeScreen::SCREEN_OOBE_ENROLLMENT, &screen_data); 665 ShowScreenWithData(OobeScreen::SCREEN_OOBE_ENROLLMENT, &screen_data);
662 if (first_show_) { 666 if (first_show_) {
663 first_show_ = false; 667 first_show_ = false;
664 UpdateStateInternal(NetworkError::ERROR_REASON_UPDATE, true); 668 UpdateStateInternal(NetworkError::ERROR_REASON_UPDATE, true);
665 } 669 }
666 histogram_helper_->OnScreenShow(); 670 histogram_helper_->OnScreenShow();
667 } 671 }
668 672
669 } // namespace chromeos 673 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/settings/device_settings_service.cc ('k') | components/policy/core/common/cloud/enterprise_metrics.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698