| 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/system/chromeos/devicetype_utils.h" | 7 #include "ash/system/chromeos/devicetype_utils.h" |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/guid.h" | 9 #include "base/guid.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 | 196 |
| 197 base::DictionaryValue params; | 197 base::DictionaryValue params; |
| 198 const bool is_enrolling_consumer_management = | 198 const bool is_enrolling_consumer_management = |
| 199 context.is_enrolling_consumer_management; | 199 context.is_enrolling_consumer_management; |
| 200 | 200 |
| 201 params.SetBoolean("forceReload", context.force_reload); | 201 params.SetBoolean("forceReload", context.force_reload); |
| 202 params.SetBoolean("isLocal", context.is_local); | 202 params.SetBoolean("isLocal", context.is_local); |
| 203 params.SetBoolean("isShowUsers", context.show_users); | 203 params.SetBoolean("isShowUsers", context.show_users); |
| 204 params.SetBoolean("useOffline", context.use_offline); | 204 params.SetBoolean("useOffline", context.use_offline); |
| 205 params.SetString("gaiaId", context.gaia_id); | 205 params.SetString("gaiaId", context.gaia_id); |
| 206 params.SetBoolean("readOnlyEmail", true); |
| 206 params.SetString("email", context.email); | 207 params.SetString("email", context.email); |
| 207 params.SetBoolean("isEnrollingConsumerManagement", | 208 params.SetBoolean("isEnrollingConsumerManagement", |
| 208 is_enrolling_consumer_management); | 209 is_enrolling_consumer_management); |
| 209 params.SetString("gapsCookie", context.gaps_cookie); | 210 params.SetString("gapsCookie", context.gaps_cookie); |
| 210 | 211 |
| 211 UpdateAuthParams(¶ms, | 212 UpdateAuthParams(¶ms, |
| 212 context.has_users, | 213 context.has_users, |
| 213 is_enrolling_consumer_management); | 214 is_enrolling_consumer_management); |
| 214 | 215 |
| 215 if (!context.use_offline) { | 216 if (!context.use_offline) { |
| (...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 856 void GaiaScreenHandler::UpdateState(NetworkError::ErrorReason reason) { | 857 void GaiaScreenHandler::UpdateState(NetworkError::ErrorReason reason) { |
| 857 if (signin_screen_handler_) | 858 if (signin_screen_handler_) |
| 858 signin_screen_handler_->UpdateState(reason); | 859 signin_screen_handler_->UpdateState(reason); |
| 859 } | 860 } |
| 860 | 861 |
| 861 SigninScreenHandlerDelegate* GaiaScreenHandler::Delegate() { | 862 SigninScreenHandlerDelegate* GaiaScreenHandler::Delegate() { |
| 862 return signin_screen_handler_->delegate_; | 863 return signin_screen_handler_->delegate_; |
| 863 } | 864 } |
| 864 | 865 |
| 865 } // namespace chromeos | 866 } // namespace chromeos |
| OLD | NEW |