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

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

Issue 1995113002: Rename WebUI::CallJavascriptFunction to WebUI::CallJavascriptFunctionUnsafe (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 16 matching lines...) Expand all
27 delegate_(delegate), 27 delegate_(delegate),
28 webui_handler_(NULL) { 28 webui_handler_(NULL) {
29 } 29 }
30 30
31 AppLaunchSigninScreen::~AppLaunchSigninScreen() { 31 AppLaunchSigninScreen::~AppLaunchSigninScreen() {
32 oobe_ui_->ResetSigninScreenHandlerDelegate(); 32 oobe_ui_->ResetSigninScreenHandlerDelegate();
33 } 33 }
34 34
35 void AppLaunchSigninScreen::Show() { 35 void AppLaunchSigninScreen::Show() {
36 InitOwnerUserList(); 36 InitOwnerUserList();
37 oobe_ui_->web_ui()->CallJavascriptFunction( 37 oobe_ui_->web_ui()->CallJavascriptFunctionUnsafe(
38 "login.AccountPickerScreen.setShouldShowApps", 38 "login.AccountPickerScreen.setShouldShowApps",
39 base::FundamentalValue(false)); 39 base::FundamentalValue(false));
40 oobe_ui_->ShowSigninScreen(LoginScreenContext(), this, NULL); 40 oobe_ui_->ShowSigninScreen(LoginScreenContext(), this, NULL);
41 } 41 }
42 42
43 void AppLaunchSigninScreen::InitOwnerUserList() { 43 void AppLaunchSigninScreen::InitOwnerUserList() {
44 user_manager::UserManager* user_manager = GetUserManager(); 44 user_manager::UserManager* user_manager = GetUserManager();
45 const std::string& owner_email = 45 const std::string& owner_email =
46 user_manager->GetOwnerAccountId().GetUserEmail(); 46 user_manager->GetOwnerAccountId().GetUserEmail();
47 const user_manager::UserList& all_users = user_manager->GetUsers(); 47 const user_manager::UserList& all_users = user_manager->GetUsers();
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 } 214 }
215 215
216 void AppLaunchSigninScreen::CheckUserStatus(const AccountId& account_id) {} 216 void AppLaunchSigninScreen::CheckUserStatus(const AccountId& account_id) {}
217 217
218 bool AppLaunchSigninScreen::IsUserWhitelisted(const AccountId& account_id) { 218 bool AppLaunchSigninScreen::IsUserWhitelisted(const AccountId& account_id) {
219 NOTREACHED(); 219 NOTREACHED();
220 return true; 220 return true;
221 } 221 }
222 222
223 } // namespace chromeos 223 } // namespace chromeos
OLDNEW
« no previous file with comments | « ash/content/keyboard_overlay/keyboard_overlay_delegate.cc ('k') | chrome/browser/chromeos/login/kiosk_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698