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

Unified Diff: ash/shelf/shelf_layout_manager.cc

Issue 2267183002: ash: Remove unnecessary utility methods from ash::Shelf (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . 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 side-by-side diff with in-line comments
Download patch
Index: ash/shelf/shelf_layout_manager.cc
diff --git a/ash/shelf/shelf_layout_manager.cc b/ash/shelf/shelf_layout_manager.cc
index 83715d8c8a555e98f297fc61b67b75b72bbce099..7f761c22806cea1e13cc2a1b2f86700835cc3f5b 100644
--- a/ash/shelf/shelf_layout_manager.cc
+++ b/ash/shelf/shelf_layout_manager.cc
@@ -905,11 +905,10 @@ ShelfAutoHideState ShelfLayoutManager::CalculateAutoHideState(
shelf_widget_->status_area_widget()->ShouldShowShelf())
return SHELF_AUTO_HIDE_SHOWN;
- if (shelf_widget_->shelf() && shelf_widget_->shelf()->IsShowingMenu())
+ if (shelf_widget_->IsShowingMenu())
return SHELF_AUTO_HIDE_SHOWN;
- if (shelf_widget_->shelf() &&
- shelf_widget_->shelf()->IsShowingOverflowBubble())
+ if (shelf_widget_->IsShowingOverflowBubble())
return SHELF_AUTO_HIDE_SHOWN;
if (shelf_widget_->IsActive() ||
« no previous file with comments | « ash/shelf/shelf.cc ('k') | ash/shelf/shelf_unittest.cc » ('j') | ash/shelf/shelf_widget.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698