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

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

Issue 2677563005: Chromad: Use DM server reply to determine enrollment type (Closed)
Patch Set: More comments Created 3 years, 10 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 561 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 machine_name, 572 machine_name,
573 user_name)); 573 user_name));
574 } 574 }
575 575
576 void EnrollmentScreenHandler::HandleAdDomainJoin( 576 void EnrollmentScreenHandler::HandleAdDomainJoin(
577 const std::string& machine_name, 577 const std::string& machine_name,
578 const std::string& user_name, 578 const std::string& user_name,
579 authpolicy::ErrorType code) { 579 authpolicy::ErrorType code) {
580 switch (code) { 580 switch (code) {
581 case authpolicy::ERROR_NONE: 581 case authpolicy::ERROR_NONE:
582 ShowEnrollmentSpinnerScreen();
582 controller_->OnAdJoined(gaia::ExtractDomainName(user_name)); 583 controller_->OnAdJoined(gaia::ExtractDomainName(user_name));
583 return; 584 return;
584 case authpolicy::ERROR_UNKNOWN: 585 case authpolicy::ERROR_UNKNOWN:
585 case authpolicy::ERROR_DBUS_FAILURE: 586 case authpolicy::ERROR_DBUS_FAILURE:
586 case authpolicy::ERROR_NET_FAILED: 587 case authpolicy::ERROR_NET_FAILED:
587 case authpolicy::ERROR_SMBCLIENT_FAILED: 588 case authpolicy::ERROR_SMBCLIENT_FAILED:
588 case authpolicy::ERROR_PARSE_FAILED: 589 case authpolicy::ERROR_PARSE_FAILED:
589 case authpolicy::ERROR_PARSE_PREG_FAILED: 590 case authpolicy::ERROR_PARSE_PREG_FAILED:
590 case authpolicy::ERROR_BAD_GPOS: 591 case authpolicy::ERROR_BAD_GPOS:
591 case authpolicy::ERROR_LOCAL_IO: 592 case authpolicy::ERROR_LOCAL_IO:
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
693 694
694 ShowScreenWithData(OobeScreen::SCREEN_OOBE_ENROLLMENT, &screen_data); 695 ShowScreenWithData(OobeScreen::SCREEN_OOBE_ENROLLMENT, &screen_data);
695 if (first_show_) { 696 if (first_show_) {
696 first_show_ = false; 697 first_show_ = false;
697 UpdateStateInternal(NetworkError::ERROR_REASON_UPDATE, true); 698 UpdateStateInternal(NetworkError::ERROR_REASON_UPDATE, true);
698 } 699 }
699 histogram_helper_->OnScreenShow(); 700 histogram_helper_->OnScreenShow();
700 } 701 }
701 702
702 } // namespace chromeos 703 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698