Chromium Code Reviews| 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/chromeos/login/supervised/supervised_user_creation_scre en.h" | 5 #include "chrome/browser/chromeos/login/supervised/supervised_user_creation_scre en.h" |
| 6 | 6 |
| 7 #include "ash/desktop_background/desktop_background_controller.h" | 7 #include "ash/desktop_background/desktop_background_controller.h" |
| 8 #include "ash/shell.h" | 8 #include "ash/shell.h" |
| 9 #include "base/rand_util.h" | 9 #include "base/rand_util.h" |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| (...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 363 } | 363 } |
| 364 | 364 |
| 365 void SupervisedUserCreationScreen::OnActorDestroyed( | 365 void SupervisedUserCreationScreen::OnActorDestroyed( |
| 366 SupervisedUserCreationScreenHandler* actor) { | 366 SupervisedUserCreationScreenHandler* actor) { |
| 367 if (actor_ == actor) | 367 if (actor_ == actor) |
| 368 actor_ = NULL; | 368 actor_ = NULL; |
| 369 } | 369 } |
| 370 | 370 |
| 371 void SupervisedUserCreationScreen::OnCreationError( | 371 void SupervisedUserCreationScreen::OnCreationError( |
| 372 SupervisedUserCreationController::ErrorCode code) { | 372 SupervisedUserCreationController::ErrorCode code) { |
| 373 LOG(ERROR) << "Supervised user creation failure, code: " << code; | |
|
ygorshenin1
2014/08/14 15:52:32
nit: s/code/error code/
Nikita (slow)
2014/08/14 16:02:06
Done.
| |
| 374 | |
| 373 base::string16 title; | 375 base::string16 title; |
| 374 base::string16 message; | 376 base::string16 message; |
| 375 base::string16 button; | 377 base::string16 button; |
| 376 // TODO(antrim) : find out which errors do we really have. | 378 // TODO(antrim) : find out which errors do we really have. |
| 377 // We might reuse some error messages from ordinary user flow. | 379 // We might reuse some error messages from ordinary user flow. |
| 378 switch (code) { | 380 switch (code) { |
| 379 case SupervisedUserCreationController::CRYPTOHOME_NO_MOUNT: | 381 case SupervisedUserCreationController::CRYPTOHOME_NO_MOUNT: |
| 380 case SupervisedUserCreationController::CRYPTOHOME_FAILED_MOUNT: | 382 case SupervisedUserCreationController::CRYPTOHOME_FAILED_MOUNT: |
| 381 case SupervisedUserCreationController::CRYPTOHOME_FAILED_TPM: | 383 case SupervisedUserCreationController::CRYPTOHOME_FAILED_TPM: |
| 382 title = l10n_util::GetStringUTF16( | 384 title = l10n_util::GetStringUTF16( |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 591 selected_image_ = user_manager::User::USER_IMAGE_EXTERNAL; | 593 selected_image_ = user_manager::User::USER_IMAGE_EXTERNAL; |
| 592 } else { | 594 } else { |
| 593 NOTREACHED() << "Unexpected image type: " << image_type; | 595 NOTREACHED() << "Unexpected image type: " << image_type; |
| 594 } | 596 } |
| 595 } | 597 } |
| 596 | 598 |
| 597 void SupervisedUserCreationScreen::OnImageAccepted() { | 599 void SupervisedUserCreationScreen::OnImageAccepted() { |
| 598 } | 600 } |
| 599 | 601 |
| 600 } // namespace chromeos | 602 } // namespace chromeos |
| OLD | NEW |