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

Unified Diff: ash/test/test_shell_delegate.cc

Issue 2791463002: mash: Remove ShelfDelegate; move functions to ShelfModel. (Closed)
Patch Set: Address comment. Created 3 years, 8 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/test/test_shell_delegate.cc
diff --git a/ash/test/test_shell_delegate.cc b/ash/test/test_shell_delegate.cc
index 27c12b0530ba80e907b6e260e7980f04b36e0072..5d75697439d8f5699efe230ffa9cd8bd4a3ef4f3 100644
--- a/ash/test/test_shell_delegate.cc
+++ b/ash/test/test_shell_delegate.cc
@@ -18,7 +18,6 @@
#include "ash/system/tray/system_tray_notifier.h"
#include "ash/test/test_keyboard_ui.h"
#include "ash/test/test_session_state_delegate.h"
-#include "ash/test/test_shelf_delegate.h"
#include "ash/test/test_system_tray_delegate.h"
#include "ash/test/test_wallpaper_delegate.h"
#include "ash/wm/window_state.h"
@@ -101,12 +100,14 @@ keyboard::KeyboardUI* TestShellDelegate::CreateKeyboardUI() {
void TestShellDelegate::OpenUrlFromArc(const GURL& url) {}
-ShelfDelegate* TestShellDelegate::CreateShelfDelegate(ShelfModel* model) {
+void TestShellDelegate::ShelfInit() {
// Create a separate shelf initializer that mimics ChromeLauncherController.
- shelf_initializer_ = base::MakeUnique<ShelfInitializer>();
- return new TestShelfDelegate();
+ if (!shelf_initializer_)
+ shelf_initializer_ = base::MakeUnique<ShelfInitializer>();
}
+void TestShellDelegate::ShelfShutdown() {}
+
SystemTrayDelegate* TestShellDelegate::CreateSystemTrayDelegate() {
return new TestSystemTrayDelegate;
}
« no previous file with comments | « ash/test/test_shell_delegate.h ('k') | chrome/browser/chromeos/arc/arc_play_store_enabled_preference_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698