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: comments+create ActiveDirectoryJoinDelegate 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 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
571 machine_name, 571 machine_name,
572 user_name)); 572 user_name));
573 } 573 }
574 574
575 void EnrollmentScreenHandler::HandleAdDomainJoin( 575 void EnrollmentScreenHandler::HandleAdDomainJoin(
576 const std::string& machine_name, 576 const std::string& machine_name,
577 const std::string& user_name, 577 const std::string& user_name,
578 authpolicy::ErrorType code) { 578 authpolicy::ErrorType code) {
579 switch (code) { 579 switch (code) {
580 case authpolicy::ERROR_NONE: 580 case authpolicy::ERROR_NONE:
581 ShowEnrollmentSpinnerScreen();
581 controller_->OnAdJoined(gaia::ExtractDomainName(user_name)); 582 controller_->OnAdJoined(gaia::ExtractDomainName(user_name));
582 return; 583 return;
583 case authpolicy::ERROR_UNKNOWN: 584 case authpolicy::ERROR_UNKNOWN:
584 case authpolicy::ERROR_DBUS_FAILURE: 585 case authpolicy::ERROR_DBUS_FAILURE:
585 case authpolicy::ERROR_NET_FAILED: 586 case authpolicy::ERROR_NET_FAILED:
586 case authpolicy::ERROR_SMBCLIENT_FAILED: 587 case authpolicy::ERROR_SMBCLIENT_FAILED:
587 case authpolicy::ERROR_PARSE_FAILED: 588 case authpolicy::ERROR_PARSE_FAILED:
588 case authpolicy::ERROR_PARSE_PREG_FAILED: 589 case authpolicy::ERROR_PARSE_PREG_FAILED:
589 case authpolicy::ERROR_BAD_GPOS: 590 case authpolicy::ERROR_BAD_GPOS:
590 case authpolicy::ERROR_LOCAL_IO: 591 case authpolicy::ERROR_LOCAL_IO:
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
692 693
693 ShowScreenWithData(OobeScreen::SCREEN_OOBE_ENROLLMENT, &screen_data); 694 ShowScreenWithData(OobeScreen::SCREEN_OOBE_ENROLLMENT, &screen_data);
694 if (first_show_) { 695 if (first_show_) {
695 first_show_ = false; 696 first_show_ = false;
696 UpdateStateInternal(NetworkError::ERROR_REASON_UPDATE, true); 697 UpdateStateInternal(NetworkError::ERROR_REASON_UPDATE, true);
697 } 698 }
698 histogram_helper_->OnScreenShow(); 699 histogram_helper_->OnScreenShow();
699 } 700 }
700 701
701 } // namespace chromeos 702 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698