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

Unified Diff: ash/root_window_controller.cc

Issue 2020623004: ash: Move shelf alignment and auto-hide calls from Shell to Shelf (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: typo Created 4 years, 7 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/root_window_controller.cc
diff --git a/ash/root_window_controller.cc b/ash/root_window_controller.cc
index 9bc5d4cea68b167ad9c42f585e223b4fd8dbbba0..515c2c0165fc97fca4a056b1eb549efe9c73f2c3 100644
--- a/ash/root_window_controller.cc
+++ b/ash/root_window_controller.cc
@@ -456,6 +456,11 @@ void RootWindowController::CreateShelf() {
shelf_widget_->PostCreateShelf();
}
+Shelf* RootWindowController::GetShelf() const {
+ // TODO(jamescook): Shelf should be owned by this class, not by ShelfWidget.
+ return shelf_widget_->shelf();
+}
+
void RootWindowController::UpdateAfterLoginStatusChange(
user::LoginStatus status) {
if (status != user::LOGGED_IN_NONE)

Powered by Google App Engine
This is Rietveld 408576698