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