Commit acd67df3 authored by Roman Sorokin's avatar Roman Sorokin Committed by Commit Bot

cros: Fix launch Guest session from the error screen.

Was broken by CL:2297621

Fixed: 1109179
Change-Id: Ieeb06baa6b42cbd89df462966bf30977b3fb8fa7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2320574
Auto-Submit: Roman Sorokin [CET] <rsorokin@chromium.org>
Reviewed-by: default avatarRenato Silva <rrsilva@google.com>
Commit-Queue: Roman Sorokin [CET] <rsorokin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#792258}
parent bf7bba2f
......@@ -267,7 +267,7 @@ cr.define('cr.ui', function() {
*/
Oobe.guestLoginForTesting = function() {
Oobe.skipToLoginForTesting();
chrome.send('launchIncognitoForTesting');
chrome.send('launchIncognito');
};
/**
......
......@@ -407,8 +407,7 @@ void SigninScreenHandler::RegisterMessages() {
AddCallback("authenticateUser", &SigninScreenHandler::HandleAuthenticateUser);
AddCallback("completeOfflineAuthentication",
&SigninScreenHandler::HandleCompleteOfflineAuthentication);
AddCallback("launchIncognitoForTesting",
&SigninScreenHandler::HandleLaunchIncognitoForTesting);
AddCallback("launchIncognito", &SigninScreenHandler::HandleLaunchIncognito);
AddCallback("launchSAMLPublicSession",
&SigninScreenHandler::HandleLaunchSAMLPublicSession);
AddRawCallback("offlineLogin", &SigninScreenHandler::HandleOfflineLogin);
......@@ -1031,7 +1030,7 @@ void SigninScreenHandler::HandleCompleteOfflineAuthentication(
false /* authenticated_by_pin */);
}
void SigninScreenHandler::HandleLaunchIncognitoForTesting() {
void SigninScreenHandler::HandleLaunchIncognito() {
UserContext context(user_manager::USER_TYPE_GUEST, EmptyAccountId());
if (delegate_)
delegate_->Login(context, SigninSpecifics());
......
......@@ -272,7 +272,7 @@ class SigninScreenHandler
bool authenticated_by_pin);
void HandleCompleteOfflineAuthentication(const std::string& email,
const std::string& password);
void HandleLaunchIncognitoForTesting();
void HandleLaunchIncognito();
void HandleLaunchSAMLPublicSession(const std::string& email);
void HandleOfflineLogin(const base::ListValue* args);
void HandleToggleEnrollmentScreen();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment