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() { ...@@ -267,7 +267,7 @@ cr.define('cr.ui', function() {
*/ */
Oobe.guestLoginForTesting = function() { Oobe.guestLoginForTesting = function() {
Oobe.skipToLoginForTesting(); Oobe.skipToLoginForTesting();
chrome.send('launchIncognitoForTesting'); chrome.send('launchIncognito');
}; };
/** /**
......
...@@ -407,8 +407,7 @@ void SigninScreenHandler::RegisterMessages() { ...@@ -407,8 +407,7 @@ void SigninScreenHandler::RegisterMessages() {
AddCallback("authenticateUser", &SigninScreenHandler::HandleAuthenticateUser); AddCallback("authenticateUser", &SigninScreenHandler::HandleAuthenticateUser);
AddCallback("completeOfflineAuthentication", AddCallback("completeOfflineAuthentication",
&SigninScreenHandler::HandleCompleteOfflineAuthentication); &SigninScreenHandler::HandleCompleteOfflineAuthentication);
AddCallback("launchIncognitoForTesting", AddCallback("launchIncognito", &SigninScreenHandler::HandleLaunchIncognito);
&SigninScreenHandler::HandleLaunchIncognitoForTesting);
AddCallback("launchSAMLPublicSession", AddCallback("launchSAMLPublicSession",
&SigninScreenHandler::HandleLaunchSAMLPublicSession); &SigninScreenHandler::HandleLaunchSAMLPublicSession);
AddRawCallback("offlineLogin", &SigninScreenHandler::HandleOfflineLogin); AddRawCallback("offlineLogin", &SigninScreenHandler::HandleOfflineLogin);
...@@ -1031,7 +1030,7 @@ void SigninScreenHandler::HandleCompleteOfflineAuthentication( ...@@ -1031,7 +1030,7 @@ void SigninScreenHandler::HandleCompleteOfflineAuthentication(
false /* authenticated_by_pin */); false /* authenticated_by_pin */);
} }
void SigninScreenHandler::HandleLaunchIncognitoForTesting() { void SigninScreenHandler::HandleLaunchIncognito() {
UserContext context(user_manager::USER_TYPE_GUEST, EmptyAccountId()); UserContext context(user_manager::USER_TYPE_GUEST, EmptyAccountId());
if (delegate_) if (delegate_)
delegate_->Login(context, SigninSpecifics()); delegate_->Login(context, SigninSpecifics());
......
...@@ -272,7 +272,7 @@ class SigninScreenHandler ...@@ -272,7 +272,7 @@ class SigninScreenHandler
bool authenticated_by_pin); bool authenticated_by_pin);
void HandleCompleteOfflineAuthentication(const std::string& email, void HandleCompleteOfflineAuthentication(const std::string& email,
const std::string& password); const std::string& password);
void HandleLaunchIncognitoForTesting(); void HandleLaunchIncognito();
void HandleLaunchSAMLPublicSession(const std::string& email); void HandleLaunchSAMLPublicSession(const std::string& email);
void HandleOfflineLogin(const base::ListValue* args); void HandleOfflineLogin(const base::ListValue* args);
void HandleToggleEnrollmentScreen(); 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