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

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

Issue 2737733003: Add Active Directory login UI tests (Closed)
Patch Set: Created 3 years, 9 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/gaia_screen_handler.h" 5 #include "chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.h"
6 6
7 #include "ash/common/system/chromeos/devicetype_utils.h" 7 #include "ash/common/system/chromeos/devicetype_utils.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/guid.h" 10 #include "base/guid.h"
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 user_context.SetUserType( 551 user_context.SetUserType(
552 user_manager::UserType::USER_TYPE_ACTIVE_DIRECTORY); 552 user_manager::UserType::USER_TYPE_ACTIVE_DIRECTORY);
553 Delegate()->CompleteLogin(user_context); 553 Delegate()->CompleteLogin(user_context);
554 break; 554 break;
555 } 555 }
556 case authpolicy::ERROR_PASSWORD_EXPIRED: 556 case authpolicy::ERROR_PASSWORD_EXPIRED:
557 core_oobe_view_->ShowActiveDirectoryPasswordChangeScreen(username); 557 core_oobe_view_->ShowActiveDirectoryPasswordChangeScreen(username);
558 break; 558 break;
559 case authpolicy::ERROR_PARSE_UPN_FAILED: 559 case authpolicy::ERROR_PARSE_UPN_FAILED:
560 case authpolicy::ERROR_BAD_USER_NAME: 560 case authpolicy::ERROR_BAD_USER_NAME:
561 CallJS("invalidateAd", username,
562 static_cast<int>(login::ERROR_STATE_BAD_USERNAME));
563 return;
561 case authpolicy::ERROR_BAD_PASSWORD: 564 case authpolicy::ERROR_BAD_PASSWORD:
562 CallJS("invalidateAd", username); 565 CallJS("invalidateAd", username,
563 return; 566 static_cast<int>(login::ERROR_STATE_BAD_PASSWORD));
564 case authpolicy::ERROR_UNKNOWN: 567 case authpolicy::ERROR_UNKNOWN:
565 case authpolicy::ERROR_DBUS_FAILURE: 568 case authpolicy::ERROR_DBUS_FAILURE:
566 case authpolicy::ERROR_CANNOT_RESOLVE_KDC: 569 case authpolicy::ERROR_CANNOT_RESOLVE_KDC:
567 case authpolicy::ERROR_KINIT_FAILED: 570 case authpolicy::ERROR_KINIT_FAILED:
568 case authpolicy::ERROR_NET_FAILED: 571 case authpolicy::ERROR_NET_FAILED:
569 case authpolicy::ERROR_SMBCLIENT_FAILED: 572 case authpolicy::ERROR_SMBCLIENT_FAILED:
570 case authpolicy::ERROR_PARSE_FAILED: 573 case authpolicy::ERROR_PARSE_FAILED:
571 case authpolicy::ERROR_PARSE_PREG_FAILED: 574 case authpolicy::ERROR_PARSE_PREG_FAILED:
572 case authpolicy::ERROR_BAD_GPOS: 575 case authpolicy::ERROR_BAD_GPOS:
573 case authpolicy::ERROR_LOCAL_IO: 576 case authpolicy::ERROR_LOCAL_IO:
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
971 SigninScreenHandlerDelegate* GaiaScreenHandler::Delegate() { 974 SigninScreenHandlerDelegate* GaiaScreenHandler::Delegate() {
972 return signin_screen_handler_->delegate_; 975 return signin_screen_handler_->delegate_;
973 } 976 }
974 977
975 bool GaiaScreenHandler::IsRestrictiveProxy() const { 978 bool GaiaScreenHandler::IsRestrictiveProxy() const {
976 return !disable_restrictive_proxy_check_for_test_ && 979 return !disable_restrictive_proxy_check_for_test_ &&
977 !IsOnline(captive_portal_status_); 980 !IsOnline(captive_portal_status_);
978 } 981 }
979 982
980 } // namespace chromeos 983 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698