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

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

Issue 2666093002: Remove base::FundamentalValue (Closed)
Patch Set: Rebase Created 3 years, 9 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 <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
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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 } 234 }
236 235
237 void AppLaunchSigninScreen::CheckUserStatus(const AccountId& account_id) {} 236 void AppLaunchSigninScreen::CheckUserStatus(const AccountId& account_id) {}
238 237
239 bool AppLaunchSigninScreen::IsUserWhitelisted(const AccountId& account_id) { 238 bool AppLaunchSigninScreen::IsUserWhitelisted(const AccountId& account_id) {
240 NOTREACHED(); 239 NOTREACHED();
241 return true; 240 return true;
242 } 241 }
243 242
244 } // namespace chromeos 243 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698