| OLD | NEW |
| 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 <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 webui_handler_(NULL) { | 31 webui_handler_(NULL) { |
| 32 } | 32 } |
| 33 | 33 |
| 34 AppLaunchSigninScreen::~AppLaunchSigninScreen() { | 34 AppLaunchSigninScreen::~AppLaunchSigninScreen() { |
| 35 oobe_ui_->ResetSigninScreenHandlerDelegate(); | 35 oobe_ui_->ResetSigninScreenHandlerDelegate(); |
| 36 } | 36 } |
| 37 | 37 |
| 38 void AppLaunchSigninScreen::Show() { | 38 void AppLaunchSigninScreen::Show() { |
| 39 InitOwnerUserList(); | 39 InitOwnerUserList(); |
| 40 oobe_ui_->web_ui()->CallJavascriptFunctionUnsafe( | 40 oobe_ui_->web_ui()->CallJavascriptFunctionUnsafe( |
| 41 "login.AccountPickerScreen.setShouldShowApps", | 41 "login.AccountPickerScreen.setShouldShowApps", base::Value(false)); |
| 42 base::FundamentalValue(false)); | |
| 43 oobe_ui_->ShowSigninScreen(LoginScreenContext(), this, NULL); | 42 oobe_ui_->ShowSigninScreen(LoginScreenContext(), this, NULL); |
| 44 } | 43 } |
| 45 | 44 |
| 46 void AppLaunchSigninScreen::InitOwnerUserList() { | 45 void AppLaunchSigninScreen::InitOwnerUserList() { |
| 47 user_manager::UserManager* user_manager = GetUserManager(); | 46 user_manager::UserManager* user_manager = GetUserManager(); |
| 48 const std::string& owner_email = | 47 const std::string& owner_email = |
| 49 user_manager->GetOwnerAccountId().GetUserEmail(); | 48 user_manager->GetOwnerAccountId().GetUserEmail(); |
| 50 const user_manager::UserList& all_users = user_manager->GetUsers(); | 49 const user_manager::UserList& all_users = user_manager->GetUsers(); |
| 51 | 50 |
| 52 owner_user_list_.clear(); | 51 owner_user_list_.clear(); |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 } | 228 } |
| 230 | 229 |
| 231 void AppLaunchSigninScreen::CheckUserStatus(const AccountId& account_id) {} | 230 void AppLaunchSigninScreen::CheckUserStatus(const AccountId& account_id) {} |
| 232 | 231 |
| 233 bool AppLaunchSigninScreen::IsUserWhitelisted(const AccountId& account_id) { | 232 bool AppLaunchSigninScreen::IsUserWhitelisted(const AccountId& account_id) { |
| 234 NOTREACHED(); | 233 NOTREACHED(); |
| 235 return true; | 234 return true; |
| 236 } | 235 } |
| 237 | 236 |
| 238 } // namespace chromeos | 237 } // namespace chromeos |
| OLD | NEW |