OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/managed/locally_managed_user_creation_sc
reen.h" | 5 #include "chrome/browser/chromeos/login/managed/locally_managed_user_creation_sc
reen.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 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 master_key); | 328 master_key); |
329 } | 329 } |
330 | 330 |
331 void LocallyManagedUserCreationScreen::OnManagerLoginFailure() { | 331 void LocallyManagedUserCreationScreen::OnManagerLoginFailure() { |
332 if (actor_) | 332 if (actor_) |
333 actor_->ShowManagerPasswordError(); | 333 actor_->ShowManagerPasswordError(); |
334 } | 334 } |
335 | 335 |
336 void LocallyManagedUserCreationScreen::OnManagerFullyAuthenticated( | 336 void LocallyManagedUserCreationScreen::OnManagerFullyAuthenticated( |
337 Profile* manager_profile) { | 337 Profile* manager_profile) { |
338 LOG(ERROR) << "-----------------------------OnManagerFullyAuthenticated"; | |
339 DCHECK(controller_.get()); | 338 DCHECK(controller_.get()); |
340 // For manager user, move desktop to locked container so that windows created | 339 // For manager user, move desktop to locked container so that windows created |
341 // during the user image picker step are below it. | 340 // during the user image picker step are below it. |
342 ash::Shell::GetInstance()-> | 341 ash::Shell::GetInstance()-> |
343 desktop_background_controller()->MoveDesktopToLockedContainer(); | 342 desktop_background_controller()->MoveDesktopToLockedContainer(); |
344 | 343 |
345 controller_->SetManagerProfile(manager_profile); | 344 controller_->SetManagerProfile(manager_profile); |
346 if (actor_) | 345 if (actor_) |
347 actor_->ShowUsernamePage(); | 346 actor_->ShowUsernamePage(); |
348 | 347 |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
592 selected_image_ = User::kExternalImageIndex; | 591 selected_image_ = User::kExternalImageIndex; |
593 } else { | 592 } else { |
594 NOTREACHED() << "Unexpected image type: " << image_type; | 593 NOTREACHED() << "Unexpected image type: " << image_type; |
595 } | 594 } |
596 } | 595 } |
597 | 596 |
598 void LocallyManagedUserCreationScreen::OnImageAccepted() { | 597 void LocallyManagedUserCreationScreen::OnImageAccepted() { |
599 } | 598 } |
600 | 599 |
601 } // namespace chromeos | 600 } // namespace chromeos |
OLD | NEW |