| OLD | NEW |
| 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 "ash/audio/sounds.h" | 7 #include "ash/audio/sounds.h" |
| 8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 9 #include "base/values.h" | 9 #include "base/values.h" |
| 10 #include "chrome/browser/chromeos/login/screens/user_selection_screen.h" | 10 #include "chrome/browser/chromeos/login/screens/user_selection_screen.h" |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 | 295 |
| 296 void SupervisedUserCreationScreenHandler:: | 296 void SupervisedUserCreationScreenHandler:: |
| 297 HandleHideLocalSupervisedUserCreation() { | 297 HandleHideLocalSupervisedUserCreation() { |
| 298 delegate_->HideFlow(); | 298 delegate_->HideFlow(); |
| 299 } | 299 } |
| 300 | 300 |
| 301 void SupervisedUserCreationScreenHandler::HandleManagerSelected( | 301 void SupervisedUserCreationScreenHandler::HandleManagerSelected( |
| 302 const AccountId& manager_id) { | 302 const AccountId& manager_id) { |
| 303 if (!delegate_) | 303 if (!delegate_) |
| 304 return; | 304 return; |
| 305 WallpaperManager::Get()->SetUserWallpaperNow(manager_id.GetUserEmail()); | 305 WallpaperManager::Get()->SetUserWallpaperNow(manager_id); |
| 306 } | 306 } |
| 307 | 307 |
| 308 void SupervisedUserCreationScreenHandler::HandleImportUserSelected( | 308 void SupervisedUserCreationScreenHandler::HandleImportUserSelected( |
| 309 const AccountId& account_id) { | 309 const AccountId& account_id) { |
| 310 if (!delegate_) | 310 if (!delegate_) |
| 311 return; | 311 return; |
| 312 } | 312 } |
| 313 | 313 |
| 314 void SupervisedUserCreationScreenHandler::HandleCheckSupervisedUserName( | 314 void SupervisedUserCreationScreenHandler::HandleCheckSupervisedUserName( |
| 315 const base::string16& name) { | 315 const base::string16& name) { |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 463 void SupervisedUserCreationScreenHandler::SetCameraPresent(bool present) { | 463 void SupervisedUserCreationScreenHandler::SetCameraPresent(bool present) { |
| 464 CallJS("setCameraPresent", present); | 464 CallJS("setCameraPresent", present); |
| 465 } | 465 } |
| 466 | 466 |
| 467 void SupervisedUserCreationScreenHandler::ShowExistingSupervisedUsers( | 467 void SupervisedUserCreationScreenHandler::ShowExistingSupervisedUsers( |
| 468 const base::ListValue* users) { | 468 const base::ListValue* users) { |
| 469 CallJS("setExistingSupervisedUsers", *users); | 469 CallJS("setExistingSupervisedUsers", *users); |
| 470 } | 470 } |
| 471 | 471 |
| 472 } // namespace chromeos | 472 } // namespace chromeos |
| OLD | NEW |