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

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

Issue 1344443002: Implement new password separated sign in flow for chrome desktop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 5 years, 2 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/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
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(&params, 212 UpdateAuthParams(&params,
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698