| OLD | NEW |
| 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 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 515 user_context.SetAuthFlow(UserContext::AUTH_FLOW_ACTIVE_DIRECTORY); | 515 user_context.SetAuthFlow(UserContext::AUTH_FLOW_ACTIVE_DIRECTORY); |
| 516 user_context.SetIsUsingOAuth(false); | 516 user_context.SetIsUsingOAuth(false); |
| 517 user_context.SetUserType( | 517 user_context.SetUserType( |
| 518 user_manager::UserType::USER_TYPE_ACTIVE_DIRECTORY); | 518 user_manager::UserType::USER_TYPE_ACTIVE_DIRECTORY); |
| 519 Delegate()->CompleteLogin(user_context); | 519 Delegate()->CompleteLogin(user_context); |
| 520 break; | 520 break; |
| 521 } | 521 } |
| 522 case authpolicy::ERROR_PASSWORD_EXPIRED: | 522 case authpolicy::ERROR_PASSWORD_EXPIRED: |
| 523 core_oobe_actor_->ShowActiveDirectoryPasswordChangeScreen(username); | 523 core_oobe_actor_->ShowActiveDirectoryPasswordChangeScreen(username); |
| 524 break; | 524 break; |
| 525 case authpolicy::ERROR_UNKNOWN: | |
| 526 case authpolicy::ERROR_DBUS_FAILURE: | |
| 527 case authpolicy::ERROR_PARSE_UPN_FAILED: | 525 case authpolicy::ERROR_PARSE_UPN_FAILED: |
| 528 case authpolicy::ERROR_BAD_USER_NAME: | 526 case authpolicy::ERROR_BAD_USER_NAME: |
| 529 case authpolicy::ERROR_BAD_PASSWORD: | 527 case authpolicy::ERROR_BAD_PASSWORD: |
| 528 CallJS("invalidateAd", username); |
| 529 return; |
| 530 case authpolicy::ERROR_UNKNOWN: |
| 531 case authpolicy::ERROR_DBUS_FAILURE: |
| 530 case authpolicy::ERROR_CANNOT_RESOLVE_KDC: | 532 case authpolicy::ERROR_CANNOT_RESOLVE_KDC: |
| 531 case authpolicy::ERROR_KINIT_FAILED: | 533 case authpolicy::ERROR_KINIT_FAILED: |
| 532 case authpolicy::ERROR_NET_FAILED: | 534 case authpolicy::ERROR_NET_FAILED: |
| 533 case authpolicy::ERROR_SMBCLIENT_FAILED: | 535 case authpolicy::ERROR_SMBCLIENT_FAILED: |
| 534 case authpolicy::ERROR_PARSE_FAILED: | 536 case authpolicy::ERROR_PARSE_FAILED: |
| 535 case authpolicy::ERROR_PARSE_PREG_FAILED: | 537 case authpolicy::ERROR_PARSE_PREG_FAILED: |
| 536 case authpolicy::ERROR_BAD_GPOS: | 538 case authpolicy::ERROR_BAD_GPOS: |
| 537 case authpolicy::ERROR_LOCAL_IO: | 539 case authpolicy::ERROR_LOCAL_IO: |
| 538 case authpolicy::ERROR_NOT_JOINED: | 540 case authpolicy::ERROR_NOT_JOINED: |
| 539 case authpolicy::ERROR_NOT_LOGGED_IN: | 541 case authpolicy::ERROR_NOT_LOGGED_IN: |
| (...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 964 bool GaiaScreenHandler::IsRestrictiveProxy() const { | 966 bool GaiaScreenHandler::IsRestrictiveProxy() const { |
| 965 return !disable_restrictive_proxy_check_for_test_ && | 967 return !disable_restrictive_proxy_check_for_test_ && |
| 966 !IsOnline(captive_portal_status_); | 968 !IsOnline(captive_portal_status_); |
| 967 } | 969 } |
| 968 | 970 |
| 969 void GaiaScreenHandler::DisableRestrictiveProxyCheckForTest() { | 971 void GaiaScreenHandler::DisableRestrictiveProxyCheckForTest() { |
| 970 disable_restrictive_proxy_check_for_test_ = true; | 972 disable_restrictive_proxy_check_for_test_ = true; |
| 971 } | 973 } |
| 972 | 974 |
| 973 } // namespace chromeos | 975 } // namespace chromeos |
| OLD | NEW |