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

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

Issue 2293183002: ash: Remove ash::Shelf in favor of ash::WmShelf (Closed)
Patch Set: rebase again 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"
8 #include "ash/common/shelf/wm_shelf.h" 7 #include "ash/common/shelf/wm_shelf.h"
8 #include "ash/common/wm_shell.h"
9 #include "ash/shell.h" 9 #include "ash/shell.h"
10 #include "ash/wallpaper/wallpaper_controller.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"
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 wallpaper to locked container so that windows 375 // For manager user, move wallpaper to locked container so that windows
376 // created during the user image picker step are below it. 376 // created during the user image picker step are below it.
377 ash::Shell::GetInstance()->wallpaper_controller()->MoveToLockedContainer(); 377 ash::Shell::GetInstance()->wallpaper_controller()->MoveToLockedContainer();
378 ash::Shelf::ForPrimaryDisplay()->wm_shelf()->SetAlignment( 378 ash::WmShelf::ForWindow(ash::WmShell::Get()->GetPrimaryRootWindow())
379 ash::ShelfAlignment::SHELF_ALIGNMENT_BOTTOM_LOCKED); 379 ->SetAlignment(ash::ShelfAlignment::SHELF_ALIGNMENT_BOTTOM_LOCKED);
380 380
381 controller_->SetManagerProfile(manager_profile); 381 controller_->SetManagerProfile(manager_profile);
382 if (actor_) 382 if (actor_)
383 actor_->ShowUsernamePage(); 383 actor_->ShowUsernamePage();
384 384
385 last_page_ = kNameOfNewUserParametersScreen; 385 last_page_ = kNameOfNewUserParametersScreen;
386 CHECK(!sync_service_); 386 CHECK(!sync_service_);
387 sync_service_ = SupervisedUserSyncServiceFactory::GetForProfile( 387 sync_service_ = SupervisedUserSyncServiceFactory::GetForProfile(
388 manager_profile); 388 manager_profile);
389 sync_service_->AddObserver(this); 389 sync_service_->AddObserver(this);
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 selected_image_ = user_manager::User::USER_IMAGE_EXTERNAL; 628 selected_image_ = user_manager::User::USER_IMAGE_EXTERNAL;
629 } else { 629 } else {
630 NOTREACHED() << "Unexpected image type: " << image_type; 630 NOTREACHED() << "Unexpected image type: " << image_type;
631 } 631 }
632 } 632 }
633 633
634 void SupervisedUserCreationScreen::OnImageAccepted() { 634 void SupervisedUserCreationScreen::OnImageAccepted() {
635 } 635 }
636 636
637 } // namespace chromeos 637 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/first_run/steps/tray_step.cc ('k') | chrome/browser/ui/ash/launcher/chrome_launcher_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698