Chromium Code Reviews| Index: chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc |
| diff --git a/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc b/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc |
| index ce4351244a288f0bba947711958c93c6de346de9..90016053af7ba07da0092836c68d88e6bf4c038b 100644 |
| --- a/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc |
| +++ b/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc |
| @@ -153,8 +153,7 @@ GaiaContext::GaiaContext() |
| password_changed(false), |
| show_users(false), |
| use_offline(false), |
| - has_users(false), |
| - session_is_ephemeral(false) { |
| + has_users(false) { |
| } |
| GaiaScreenHandler::GaiaScreenHandler( |
| @@ -218,10 +217,6 @@ void GaiaScreenHandler::LoadGaiaWithVersion( |
| params.SetString("email", context.email); |
| params.SetBoolean("isEnrollingConsumerManagement", |
| is_enrolling_consumer_management); |
| - if (StartupUtils::IsWebviewSigninEnabled()) { |
| - params.SetString("deviceId", context.device_id); |
| - params.SetBoolean("sessionIsEphemeral", context.session_is_ephemeral); |
| - } |
| UpdateAuthParams(¶ms, |
| context.has_users, |
| @@ -338,9 +333,6 @@ void GaiaScreenHandler::LoadGaiaWithVersion( |
| void GaiaScreenHandler::UpdateGaia(const GaiaContext& context) { |
| base::DictionaryValue params; |
| - if (StartupUtils::IsWebviewSigninEnabled()) { |
| - params.SetString("deviceId", context.device_id); |
| - } |
| UpdateAuthParams(¶ms, context.has_users, |
| context.is_enrolling_consumer_management); |
| CallJS("updateAuthExtension", params); |
| @@ -503,8 +495,7 @@ void GaiaScreenHandler::HandleCompleteAuthentication( |
| const std::string& email, |
| const std::string& password, |
| const std::string& auth_code, |
| - bool using_saml, |
| - const std::string& device_id) { |
| + bool using_saml) { |
| if (!Delegate()) |
| return; |
| @@ -521,7 +512,6 @@ void GaiaScreenHandler::HandleCompleteAuthentication( |
| user_context.SetAuthFlow(using_saml |
| ? UserContext::AUTH_FLOW_GAIA_WITH_SAML |
| : UserContext::AUTH_FLOW_GAIA_WITHOUT_SAML); |
| - user_context.SetDeviceId(device_id); |
| Delegate()->CompleteLogin(user_context); |
| } |
| @@ -602,18 +592,7 @@ void GaiaScreenHandler::HandleToggleEasyBootstrap() { |
| } |
| void GaiaScreenHandler::HandleAttemptLogin(const std::string& email) { |
| - std::string device_id = |
| - user_manager::UserManager::Get()->GetKnownUserDeviceId( |
| - gaia::CanonicalizeEmail(gaia::SanitizeEmail(email))); |
| - |
| - if (!device_id.empty() && StartupUtils::IsWebviewSigninEnabled()) { |
| - base::DictionaryValue params; |
| - params.SetString("deviceId", device_id); |
| - CallJS("updateDeviceId", params); |
| - } else { |
| - // Mark current temporary device Id as used. |
| - temporary_device_id_ = std::string(); |
| - } |
| + // Kept for future use. |
|
achuithb
2015/05/12 23:25:01
What does this comment mean?
dzhioev (left Google)
2015/05/13 00:25:18
I believe we are going to make whitelist checking
|
| } |
| void GaiaScreenHandler::HandleGaiaUIReady() { |
| @@ -958,17 +937,6 @@ void GaiaScreenHandler::LoadAuthExtension(bool force, |
| context.has_users = !Delegate()->GetUsers().empty(); |
| } |
| - if (!context.email.empty()) { |
| - context.device_id = user_manager::UserManager::Get()->GetKnownUserDeviceId( |
| - gaia::CanonicalizeEmail(context.email)); |
| - } |
| - |
| - if (context.device_id.empty()) |
| - context.device_id = GetTemporaryDeviceId(); |
| - |
| - context.session_is_ephemeral = |
| - ChromeUserManager::Get()->AreEphemeralUsersEnabled(); |
| - |
| populated_email_.clear(); |
| LoadGaia(context); |
| @@ -988,12 +956,4 @@ void GaiaScreenHandler::SetSigninScreenHandler(SigninScreenHandler* handler) { |
| signin_screen_handler_ = handler; |
| } |
| -std::string GaiaScreenHandler::GetTemporaryDeviceId() { |
| - if (temporary_device_id_.empty()) |
| - temporary_device_id_ = base::GenerateGUID(); |
| - |
| - DCHECK(!temporary_device_id_.empty()); |
| - return temporary_device_id_; |
| -} |
| - |
| } // namespace chromeos |