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

Side by Side Diff: ash/shelf/shelf_widget.cc

Issue 608283003: Remove retail mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ash/shelf/shelf_widget.h" 5 #include "ash/shelf/shelf_widget.h"
6 6
7 #include "ash/ash_switches.h" 7 #include "ash/ash_switches.h"
8 #include "ash/focus_cycler.h" 8 #include "ash/focus_cycler.h"
9 #include "ash/root_window_controller.h" 9 #include "ash/root_window_controller.h"
10 #include "ash/session/session_state_delegate.h" 10 #include "ash/session/session_state_delegate.h"
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 Shell::GetInstance()->system_tray_delegate()->GetUserLoginStatus(); 710 Shell::GetInstance()->system_tray_delegate()->GetUserLoginStatus();
711 711
712 switch (login_status) { 712 switch (login_status) {
713 case user::LOGGED_IN_USER: 713 case user::LOGGED_IN_USER:
714 case user::LOGGED_IN_OWNER: 714 case user::LOGGED_IN_OWNER:
715 return true; 715 return true;
716 case user::LOGGED_IN_LOCKED: 716 case user::LOGGED_IN_LOCKED:
717 case user::LOGGED_IN_PUBLIC: 717 case user::LOGGED_IN_PUBLIC:
718 case user::LOGGED_IN_SUPERVISED: 718 case user::LOGGED_IN_SUPERVISED:
719 case user::LOGGED_IN_GUEST: 719 case user::LOGGED_IN_GUEST:
720 case user::LOGGED_IN_RETAIL_MODE:
721 case user::LOGGED_IN_KIOSK_APP: 720 case user::LOGGED_IN_KIOSK_APP:
722 case user::LOGGED_IN_NONE: 721 case user::LOGGED_IN_NONE:
723 return false; 722 return false;
724 } 723 }
725 724
726 DCHECK(false); 725 DCHECK(false);
727 return false; 726 return false;
728 } 727 }
729 728
730 ShelfAlignment ShelfWidget::GetAlignment() const { 729 ShelfAlignment ShelfWidget::GetAlignment() const {
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
828 DCHECK(delegate_view_); 827 DCHECK(delegate_view_);
829 return delegate_view_->disable_dimming_animations_for_test(); 828 return delegate_view_->disable_dimming_animations_for_test();
830 } 829 }
831 830
832 void ShelfWidget::WillDeleteShelf() { 831 void ShelfWidget::WillDeleteShelf() {
833 shelf_layout_manager_->RemoveObserver(this); 832 shelf_layout_manager_->RemoveObserver(this);
834 shelf_layout_manager_ = NULL; 833 shelf_layout_manager_ = NULL;
835 } 834 }
836 835
837 } // namespace ash 836 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698