Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(342)

Side by Side Diff: chrome/browser/chromeos/login/supervised/supervised_user_creation_screen.cc

Issue 2290473004: Rename ash desktop_background to wallpaper. (Closed)
Patch Set: Address comments. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/common/shelf/shelf.h" 7 #include "ash/common/shelf/shelf.h"
8 #include "ash/common/shelf/wm_shelf.h" 8 #include "ash/common/shelf/wm_shelf.h"
9 #include "ash/desktop_background/desktop_background_controller.h"
10 #include "ash/shell.h" 9 #include "ash/shell.h"
10 #include "ash/wallpaper/wallpaper_controller.h"
11 #include "base/rand_util.h" 11 #include "base/rand_util.h"
12 #include "base/values.h" 12 #include "base/values.h"
13 #include "chrome/browser/chromeos/camera_detector.h" 13 #include "chrome/browser/chromeos/camera_detector.h"
14 #include "chrome/browser/chromeos/login/error_screens_histogram_helper.h" 14 #include "chrome/browser/chromeos/login/error_screens_histogram_helper.h"
15 #include "chrome/browser/chromeos/login/existing_user_controller.h" 15 #include "chrome/browser/chromeos/login/existing_user_controller.h"
16 #include "chrome/browser/chromeos/login/screen_manager.h" 16 #include "chrome/browser/chromeos/login/screen_manager.h"
17 #include "chrome/browser/chromeos/login/screens/base_screen_delegate.h" 17 #include "chrome/browser/chromeos/login/screens/base_screen_delegate.h"
18 #include "chrome/browser/chromeos/login/screens/error_screen.h" 18 #include "chrome/browser/chromeos/login/screens/error_screen.h"
19 #include "chrome/browser/chromeos/login/screens/network_error.h" 19 #include "chrome/browser/chromeos/login/screens/network_error.h"
20 #include "chrome/browser/chromeos/login/signin_specifics.h" 20 #include "chrome/browser/chromeos/login/signin_specifics.h"
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 actor_->ShowManagerPasswordError(); 365 actor_->ShowManagerPasswordError();
366 } 366 }
367 367
368 void SupervisedUserCreationScreen::OnManagerFullyAuthenticated( 368 void SupervisedUserCreationScreen::OnManagerFullyAuthenticated(
369 Profile* manager_profile) { 369 Profile* manager_profile) {
370 DBusThreadManager::Get() 370 DBusThreadManager::Get()
371 ->GetSessionManagerClient() 371 ->GetSessionManagerClient()
372 ->NotifySupervisedUserCreationStarted(); 372 ->NotifySupervisedUserCreationStarted();
373 manager_signin_in_progress_ = false; 373 manager_signin_in_progress_ = false;
374 DCHECK(controller_.get()); 374 DCHECK(controller_.get());
375 // For manager user, move desktop to locked container so that windows created 375 // For manager user, move wallpaper to locked container so that windows
376 // during the user image picker step are below it. 376 // created during the user image picker step are below it.
377 ash::Shell::GetInstance()-> 377 ash::Shell::GetInstance()->wallpaper_controller()->MoveToLockedContainer();
378 desktop_background_controller()->MoveDesktopToLockedContainer();
379 ash::Shelf::ForPrimaryDisplay()->wm_shelf()->SetAlignment( 378 ash::Shelf::ForPrimaryDisplay()->wm_shelf()->SetAlignment(
380 ash::ShelfAlignment::SHELF_ALIGNMENT_BOTTOM_LOCKED); 379 ash::ShelfAlignment::SHELF_ALIGNMENT_BOTTOM_LOCKED);
381 380
382 controller_->SetManagerProfile(manager_profile); 381 controller_->SetManagerProfile(manager_profile);
383 if (actor_) 382 if (actor_)
384 actor_->ShowUsernamePage(); 383 actor_->ShowUsernamePage();
385 384
386 last_page_ = kNameOfNewUserParametersScreen; 385 last_page_ = kNameOfNewUserParametersScreen;
387 CHECK(!sync_service_); 386 CHECK(!sync_service_);
388 sync_service_ = SupervisedUserSyncServiceFactory::GetForProfile( 387 sync_service_ = SupervisedUserSyncServiceFactory::GetForProfile(
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
629 selected_image_ = user_manager::User::USER_IMAGE_EXTERNAL; 628 selected_image_ = user_manager::User::USER_IMAGE_EXTERNAL;
630 } else { 629 } else {
631 NOTREACHED() << "Unexpected image type: " << image_type; 630 NOTREACHED() << "Unexpected image type: " << image_type;
632 } 631 }
633 } 632 }
634 633
635 void SupervisedUserCreationScreen::OnImageAccepted() { 634 void SupervisedUserCreationScreen::OnImageAccepted() {
636 } 635 }
637 636
638 } // namespace chromeos 637 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/lock/screen_locker.cc ('k') | chrome/browser/chromeos/login/ui/login_display_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698