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

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

Issue 2272793005: ash: Move alignment and autohide behavior from Shelf to WmShelf (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments Created 4 years, 4 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/desktop_background/desktop_background_controller.h" 9 #include "ash/desktop_background/desktop_background_controller.h"
9 #include "ash/shell.h" 10 #include "ash/shell.h"
10 #include "base/rand_util.h" 11 #include "base/rand_util.h"
11 #include "base/values.h" 12 #include "base/values.h"
12 #include "chrome/browser/chromeos/camera_detector.h" 13 #include "chrome/browser/chromeos/camera_detector.h"
13 #include "chrome/browser/chromeos/login/error_screens_histogram_helper.h" 14 #include "chrome/browser/chromeos/login/error_screens_histogram_helper.h"
14 #include "chrome/browser/chromeos/login/existing_user_controller.h" 15 #include "chrome/browser/chromeos/login/existing_user_controller.h"
15 #include "chrome/browser/chromeos/login/screen_manager.h" 16 #include "chrome/browser/chromeos/login/screen_manager.h"
16 #include "chrome/browser/chromeos/login/screens/base_screen_delegate.h" 17 #include "chrome/browser/chromeos/login/screens/base_screen_delegate.h"
17 #include "chrome/browser/chromeos/login/screens/error_screen.h" 18 #include "chrome/browser/chromeos/login/screens/error_screen.h"
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 Profile* manager_profile) { 369 Profile* manager_profile) {
369 DBusThreadManager::Get() 370 DBusThreadManager::Get()
370 ->GetSessionManagerClient() 371 ->GetSessionManagerClient()
371 ->NotifySupervisedUserCreationStarted(); 372 ->NotifySupervisedUserCreationStarted();
372 manager_signin_in_progress_ = false; 373 manager_signin_in_progress_ = false;
373 DCHECK(controller_.get()); 374 DCHECK(controller_.get());
374 // For manager user, move desktop to locked container so that windows created 375 // For manager user, move desktop to locked container so that windows created
375 // during the user image picker step are below it. 376 // during the user image picker step are below it.
376 ash::Shell::GetInstance()-> 377 ash::Shell::GetInstance()->
377 desktop_background_controller()->MoveDesktopToLockedContainer(); 378 desktop_background_controller()->MoveDesktopToLockedContainer();
378 ash::Shelf::ForPrimaryDisplay()->SetAlignment( 379 ash::Shelf::ForPrimaryDisplay()->wm_shelf()->SetAlignment(
379 ash::ShelfAlignment::SHELF_ALIGNMENT_BOTTOM_LOCKED); 380 ash::ShelfAlignment::SHELF_ALIGNMENT_BOTTOM_LOCKED);
380 381
381 controller_->SetManagerProfile(manager_profile); 382 controller_->SetManagerProfile(manager_profile);
382 if (actor_) 383 if (actor_)
383 actor_->ShowUsernamePage(); 384 actor_->ShowUsernamePage();
384 385
385 last_page_ = kNameOfNewUserParametersScreen; 386 last_page_ = kNameOfNewUserParametersScreen;
386 CHECK(!sync_service_); 387 CHECK(!sync_service_);
387 sync_service_ = SupervisedUserSyncServiceFactory::GetForProfile( 388 sync_service_ = SupervisedUserSyncServiceFactory::GetForProfile(
388 manager_profile); 389 manager_profile);
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 selected_image_ = user_manager::User::USER_IMAGE_EXTERNAL; 629 selected_image_ = user_manager::User::USER_IMAGE_EXTERNAL;
629 } else { 630 } else {
630 NOTREACHED() << "Unexpected image type: " << image_type; 631 NOTREACHED() << "Unexpected image type: " << image_type;
631 } 632 }
632 } 633 }
633 634
634 void SupervisedUserCreationScreen::OnImageAccepted() { 635 void SupervisedUserCreationScreen::OnImageAccepted() {
635 } 636 }
636 637
637 } // namespace chromeos 638 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698