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 <utility> | 7 #include <utility> |
8 | 8 |
9 #include "ash/common/wallpaper/wallpaper_controller.h" | 9 #include "ash/common/wallpaper/wallpaper_controller.h" |
10 #include "ash/common/wm_shell.h" | 10 #include "ash/common/wm_shell.h" |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 break; | 90 break; |
91 } | 91 } |
92 } | 92 } |
93 | 93 |
94 } // namespace | 94 } // namespace |
95 | 95 |
96 // static | 96 // static |
97 SupervisedUserCreationScreen* SupervisedUserCreationScreen::Get( | 97 SupervisedUserCreationScreen* SupervisedUserCreationScreen::Get( |
98 ScreenManager* manager) { | 98 ScreenManager* manager) { |
99 return static_cast<SupervisedUserCreationScreen*>( | 99 return static_cast<SupervisedUserCreationScreen*>( |
100 manager->GetScreen(WizardController::kSupervisedUserCreationScreenName)); | 100 manager->GetScreen(OobeScreen::SCREEN_CREATE_SUPERVISED_USER_FLOW)); |
101 } | 101 } |
102 | 102 |
103 SupervisedUserCreationScreen::SupervisedUserCreationScreen( | 103 SupervisedUserCreationScreen::SupervisedUserCreationScreen( |
104 BaseScreenDelegate* base_screen_delegate, | 104 BaseScreenDelegate* base_screen_delegate, |
105 SupervisedUserCreationScreenHandler* actor) | 105 SupervisedUserCreationScreenHandler* actor) |
106 : BaseScreen(base_screen_delegate, | 106 : BaseScreen(base_screen_delegate, |
107 WizardController::kSupervisedUserCreationScreenName), | 107 OobeScreen::SCREEN_CREATE_SUPERVISED_USER_FLOW), |
108 actor_(actor), | 108 actor_(actor), |
109 on_error_screen_(false), | 109 on_error_screen_(false), |
110 manager_signin_in_progress_(false), | 110 manager_signin_in_progress_(false), |
111 last_page_(kNameOfIntroScreen), | 111 last_page_(kNameOfIntroScreen), |
112 sync_service_(NULL), | 112 sync_service_(NULL), |
113 apply_photo_after_decoding_(false), | 113 apply_photo_after_decoding_(false), |
114 selected_image_(0), | 114 selected_image_(0), |
115 histogram_helper_(new ErrorScreensHistogramHelper("Supervised")), | 115 histogram_helper_(new ErrorScreensHistogramHelper("Supervised")), |
116 weak_factory_(this) { | 116 weak_factory_(this) { |
117 DCHECK(actor_); | 117 DCHECK(actor_); |
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
618 selected_image_ = user_manager::User::USER_IMAGE_EXTERNAL; | 618 selected_image_ = user_manager::User::USER_IMAGE_EXTERNAL; |
619 } else { | 619 } else { |
620 NOTREACHED() << "Unexpected image type: " << image_type; | 620 NOTREACHED() << "Unexpected image type: " << image_type; |
621 } | 621 } |
622 } | 622 } |
623 | 623 |
624 void SupervisedUserCreationScreen::OnImageAccepted() { | 624 void SupervisedUserCreationScreen::OnImageAccepted() { |
625 } | 625 } |
626 | 626 |
627 } // namespace chromeos | 627 } // namespace chromeos |
OLD | NEW |