Chromium Code Reviews| 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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 224 | 224 |
| 225 base::DictionaryValue params; | 225 base::DictionaryValue params; |
| 226 const bool is_enrolling_consumer_management = | 226 const bool is_enrolling_consumer_management = |
| 227 context.is_enrolling_consumer_management; | 227 context.is_enrolling_consumer_management; |
| 228 | 228 |
| 229 params.SetBoolean("forceReload", context.force_reload); | 229 params.SetBoolean("forceReload", context.force_reload); |
| 230 params.SetBoolean("isLocal", context.is_local); | 230 params.SetBoolean("isLocal", context.is_local); |
| 231 params.SetBoolean("isShowUsers", context.show_users); | 231 params.SetBoolean("isShowUsers", context.show_users); |
| 232 params.SetBoolean("useOffline", context.use_offline); | 232 params.SetBoolean("useOffline", context.use_offline); |
| 233 params.SetString("gaiaId", context.gaia_id); | 233 params.SetString("gaiaId", context.gaia_id); |
| 234 params.SetString("readOnlyEmail", "1"); | |
|
anthonyvd
2015/09/15 18:13:47
I only see this used as a conditional, any reason
Roger Tawa OOO till Jul 10th
2015/09/16 19:27:29
Done.
| |
| 234 params.SetString("email", context.email); | 235 params.SetString("email", context.email); |
| 235 params.SetBoolean("isEnrollingConsumerManagement", | 236 params.SetBoolean("isEnrollingConsumerManagement", |
| 236 is_enrolling_consumer_management); | 237 is_enrolling_consumer_management); |
| 237 params.SetString("gapsCookie", context.gaps_cookie); | 238 params.SetString("gapsCookie", context.gaps_cookie); |
| 238 | 239 |
| 239 UpdateAuthParams(¶ms, | 240 UpdateAuthParams(¶ms, |
| 240 context.has_users, | 241 context.has_users, |
| 241 is_enrolling_consumer_management); | 242 is_enrolling_consumer_management); |
| 242 | 243 |
| 243 if (!context.use_offline) { | 244 if (!context.use_offline) { |
| (...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 934 SigninScreenHandlerDelegate* GaiaScreenHandler::Delegate() { | 935 SigninScreenHandlerDelegate* GaiaScreenHandler::Delegate() { |
| 935 DCHECK(signin_screen_handler_); | 936 DCHECK(signin_screen_handler_); |
| 936 return signin_screen_handler_->delegate_; | 937 return signin_screen_handler_->delegate_; |
| 937 } | 938 } |
| 938 | 939 |
| 939 void GaiaScreenHandler::SetSigninScreenHandler(SigninScreenHandler* handler) { | 940 void GaiaScreenHandler::SetSigninScreenHandler(SigninScreenHandler* handler) { |
| 940 signin_screen_handler_ = handler; | 941 signin_screen_handler_ = handler; |
| 941 } | 942 } |
| 942 | 943 |
| 943 } // namespace chromeos | 944 } // namespace chromeos |
| OLD | NEW |