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

Side by Side Diff: chrome/browser/ui/webui/chromeos/login/user_board_screen_handler.cc

Issue 2664753002: Remove base::StringValue (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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/ui/webui/chromeos/login/user_board_screen_handler.h" 5 #include "chrome/browser/ui/webui/chromeos/login/user_board_screen_handler.h"
6 6
7 #include "chrome/browser/chromeos/login/screens/user_selection_screen.h" 7 #include "chrome/browser/chromeos/login/screens/user_selection_screen.h"
8 #include "components/login/localized_values_builder.h" 8 #include "components/login/localized_values_builder.h"
9 9
10 namespace chromeos { 10 namespace chromeos {
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 void UserBoardScreenHandler::HideUserPodCustomIcon( 84 void UserBoardScreenHandler::HideUserPodCustomIcon(
85 const AccountId& account_id) { 85 const AccountId& account_id) {
86 CallJS("login.AccountPickerScreen.hideUserPodCustomIcon", account_id); 86 CallJS("login.AccountPickerScreen.hideUserPodCustomIcon", account_id);
87 } 87 }
88 88
89 void UserBoardScreenHandler::SetAuthType( 89 void UserBoardScreenHandler::SetAuthType(
90 const AccountId& account_id, 90 const AccountId& account_id,
91 proximity_auth::ScreenlockBridge::LockHandler::AuthType auth_type, 91 proximity_auth::ScreenlockBridge::LockHandler::AuthType auth_type,
92 const base::string16& initial_value) { 92 const base::string16& initial_value) {
93 CallJS("login.AccountPickerScreen.setAuthType", account_id, 93 CallJS("login.AccountPickerScreen.setAuthType", account_id,
94 static_cast<int>(auth_type), base::StringValue(initial_value)); 94 static_cast<int>(auth_type), base::Value(initial_value));
95 } 95 }
96 96
97 void UserBoardScreenHandler::Bind(UserSelectionScreen* screen) { 97 void UserBoardScreenHandler::Bind(UserSelectionScreen* screen) {
98 screen_ = screen; 98 screen_ = screen;
99 BaseWebUIHandler::SetBaseScreen(screen_); 99 BaseWebUIHandler::SetBaseScreen(screen_);
100 } 100 }
101 101
102 void UserBoardScreenHandler::Unbind() { 102 void UserBoardScreenHandler::Unbind() {
103 screen_ = nullptr; 103 screen_ = nullptr;
104 BaseWebUIHandler::SetBaseScreen(nullptr); 104 BaseWebUIHandler::SetBaseScreen(nullptr);
105 } 105 }
106 106
107 base::WeakPtr<UserBoardView> UserBoardScreenHandler::GetWeakPtr() { 107 base::WeakPtr<UserBoardView> UserBoardScreenHandler::GetWeakPtr() {
108 return weak_factory_.GetWeakPtr(); 108 return weak_factory_.GetWeakPtr();
109 } 109 }
110 110
111 } // namespace chromeos 111 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/network_dropdown.cc ('k') | chrome/browser/ui/webui/chromeos/set_time_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698