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

Unified Diff: ash/shell/shell_delegate_impl.cc

Issue 2688353005: Fix shelf alignment and auto-hide initialization. (Closed)
Patch Set: Fix mash_unittests by installing a TestShellDelegate. Created 3 years, 10 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/shell/shell_delegate_impl.cc
diff --git a/ash/shell/shell_delegate_impl.cc b/ash/shell/shell_delegate_impl.cc
index 28e5e2daca455a4adcd9092a5796a4385474e459..5e181491f1646ab2a8fdf32280f14beb0a6b1004 100644
--- a/ash/shell/shell_delegate_impl.cc
+++ b/ash/shell/shell_delegate_impl.cc
@@ -163,8 +163,7 @@ keyboard::KeyboardUI* ShellDelegateImpl::CreateKeyboardUI() {
void ShellDelegateImpl::OpenUrlFromArc(const GURL& url) {}
ShelfDelegate* ShellDelegateImpl::CreateShelfDelegate(ShelfModel* model) {
- shelf_delegate_ = new test::TestShelfDelegate(model);
- return shelf_delegate_;
+ return new test::TestShelfDelegate();
}
SystemTrayDelegate* ShellDelegateImpl::CreateSystemTrayDelegate() {

Powered by Google App Engine
This is Rietveld 408576698