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

Unified Diff: chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc

Issue 2177663002: mash: Move ownership of ShelfDelegate to WmShell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix wallpaper tests again Created 4 years, 5 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: chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc
diff --git a/chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc b/chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc
index e043c80d73546a1fb71c888c8a5a3d144089003a..eba8e08d10b8dbf54c1b839830cd7c97f2279284 100644
--- a/chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc
+++ b/chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.cc
@@ -4,9 +4,9 @@
#include "chrome/browser/ui/ash/launcher/extension_app_window_launcher_controller.h"
-#include "ash/shelf/shelf_delegate.h"
+#include "ash/common/shelf/shelf_delegate.h"
+#include "ash/common/wm_shell.h"
#include "ash/shelf/shelf_util.h"
-#include "ash/shell.h"
#include "ash/wm/window_util.h"
#include "base/stl_util.h"
#include "base/strings/stringprintf.h"
@@ -163,8 +163,7 @@ void ExtensionAppWindowLauncherController::RegisterApp(AppWindow* app_window) {
} else if (app_shelf_id == app_id) {
// show_in_shelf in false and not a panel
shelf_id =
- ash::Shell::GetInstance()->GetShelfDelegate()->GetShelfIDForAppID(
- app_id);
+ ash::WmShell::Get()->shelf_delegate()->GetShelfIDForAppID(app_id);
// Check if the shelf_id corresponds to an already opened
// showInShelf=true window that has the same app_id. The current
// showInShelf=false window should not fold under this shelf item,

Powered by Google App Engine
This is Rietveld 408576698