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

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

Issue 2812953002: Stop passing raw pointers to base::Value API in c/b/ui (Closed)
Patch Set: Rebased Created 3 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/supervised_user_creation_screen _handler.h" 5 #include "chrome/browser/ui/webui/chromeos/login/supervised_user_creation_screen _handler.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/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 ++it) { 232 ++it) {
233 bool is_owner = ((*it)->GetAccountId().GetUserEmail() == owner); 233 bool is_owner = ((*it)->GetAccountId().GetUserEmail() == owner);
234 auto user_dict = base::MakeUnique<base::DictionaryValue>(); 234 auto user_dict = base::MakeUnique<base::DictionaryValue>();
235 UserSelectionScreen::FillUserDictionary( 235 UserSelectionScreen::FillUserDictionary(
236 *it, is_owner, false, /* is_signin_to_add */ 236 *it, is_owner, false, /* is_signin_to_add */
237 proximity_auth::ScreenlockBridge::LockHandler::OFFLINE_PASSWORD, 237 proximity_auth::ScreenlockBridge::LockHandler::OFFLINE_PASSWORD,
238 NULL, /* public_session_recommended_locales */ 238 NULL, /* public_session_recommended_locales */
239 user_dict.get()); 239 user_dict.get());
240 users_list->Append(std::move(user_dict)); 240 users_list->Append(std::move(user_dict));
241 } 241 }
242 data->Set("managers", users_list.release()); 242 data->Set("managers", std::move(users_list));
243 ShowScreenWithData(OobeScreen::SCREEN_CREATE_SUPERVISED_USER_FLOW, 243 ShowScreenWithData(OobeScreen::SCREEN_CREATE_SUPERVISED_USER_FLOW,
244 data.get()); 244 data.get());
245 245
246 if (!delegate_) 246 if (!delegate_)
247 return; 247 return;
248 } 248 }
249 249
250 void SupervisedUserCreationScreenHandler::Hide() { 250 void SupervisedUserCreationScreenHandler::Hide() {
251 } 251 }
252 252
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 void SupervisedUserCreationScreenHandler::SetCameraPresent(bool present) { 468 void SupervisedUserCreationScreenHandler::SetCameraPresent(bool present) {
469 CallJS("setCameraPresent", present); 469 CallJS("setCameraPresent", present);
470 } 470 }
471 471
472 void SupervisedUserCreationScreenHandler::ShowExistingSupervisedUsers( 472 void SupervisedUserCreationScreenHandler::ShowExistingSupervisedUsers(
473 const base::ListValue* users) { 473 const base::ListValue* users) {
474 CallJS("setExistingSupervisedUsers", *users); 474 CallJS("setExistingSupervisedUsers", *users);
475 } 475 }
476 476
477 } // namespace chromeos 477 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698