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

Side by Side Diff: chrome/browser/chromeos/login/app_launch_signin_screen.cc

Issue 1058433002: [cros login, new GAIA] New UI for not authorized error (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 8 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/chromeos/login/app_launch_signin_screen.h" 5 #include "chrome/browser/chromeos/login/app_launch_signin_screen.h"
6 6
7 #include "base/values.h" 7 #include "base/values.h"
8 #include "chrome/browser/chromeos/login/help_app_launcher.h" 8 #include "chrome/browser/chromeos/login/help_app_launcher.h"
9 #include "chrome/browser/chromeos/login/screens/user_selection_screen.h" 9 #include "chrome/browser/chromeos/login/screens/user_selection_screen.h"
10 #include "chrome/browser/chromeos/login/session/user_session_manager.h" 10 #include "chrome/browser/chromeos/login/session/user_session_manager.h"
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 } 177 }
178 178
179 void AppLaunchSigninScreen::Signout() { 179 void AppLaunchSigninScreen::Signout() {
180 NOTREACHED(); 180 NOTREACHED();
181 } 181 }
182 182
183 void AppLaunchSigninScreen::OnAuthFailure(const AuthFailure& error) { 183 void AppLaunchSigninScreen::OnAuthFailure(const AuthFailure& error) {
184 LOG(ERROR) << "Unlock failure: " << error.reason(); 184 LOG(ERROR) << "Unlock failure: " << error.reason();
185 webui_handler_->ClearAndEnablePassword(); 185 webui_handler_->ClearAndEnablePassword();
186 webui_handler_->ShowError( 186 webui_handler_->ShowError(
187 0, 187 0, l10n_util::GetStringUTF8(IDS_LOGIN_ERROR_AUTHENTICATING_KIOSK),
188 l10n_util::GetStringUTF8(IDS_LOGIN_ERROR_AUTHENTICATING_KIOSK), 188 std::string(), HelpAppLauncher::HELP_CANT_ACCESS_ACCOUNT);
189 std::string(),
190 HelpAppLauncher::HELP_CANT_ACCESS_ACCOUNT_OFFLINE);
191 } 189 }
192 190
193 void AppLaunchSigninScreen::OnAuthSuccess(const UserContext& user_context) { 191 void AppLaunchSigninScreen::OnAuthSuccess(const UserContext& user_context) {
194 delegate_->OnOwnerSigninSuccess(); 192 delegate_->OnOwnerSigninSuccess();
195 } 193 }
196 194
197 void AppLaunchSigninScreen::HandleGetUsers() { 195 void AppLaunchSigninScreen::HandleGetUsers() {
198 base::ListValue users_list; 196 base::ListValue users_list;
199 const user_manager::UserList& users = GetUsers(); 197 const user_manager::UserList& users = GetUsers();
200 198
(...skipping 15 matching lines...) Expand all
216 users_list.Append(user_dict); 214 users_list.Append(user_dict);
217 } 215 }
218 216
219 webui_handler_->LoadUsers(users_list, false); 217 webui_handler_->LoadUsers(users_list, false);
220 } 218 }
221 219
222 void AppLaunchSigninScreen::CheckUserStatus(const std::string& user_id) { 220 void AppLaunchSigninScreen::CheckUserStatus(const std::string& user_id) {
223 } 221 }
224 222
225 } // namespace chromeos 223 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/app/chromeos_strings.grdp ('k') | chrome/browser/chromeos/login/existing_user_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698