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

Unified Diff: chrome/browser/ui/ash/app_list/app_list_controller_ash.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/app_list/app_list_controller_ash.cc
diff --git a/chrome/browser/ui/ash/app_list/app_list_controller_ash.cc b/chrome/browser/ui/ash/app_list/app_list_controller_ash.cc
index 07611d07f33361451b72f9180c418a91364c877d..b348d1a27437e8b83f53aedc641fd8e6741518ca 100644
--- a/chrome/browser/ui/ash/app_list/app_list_controller_ash.cc
+++ b/chrome/browser/ui/ash/app_list/app_list_controller_ash.cc
@@ -4,8 +4,9 @@
#include "chrome/browser/ui/ash/app_list/app_list_controller_ash.h"
+#include "ash/common/shelf/shelf_delegate.h"
+#include "ash/common/wm_shell.h"
#include "ash/metrics/task_switch_metrics_recorder.h"
-#include "ash/shelf/shelf_delegate.h"
#include "ash/shell.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h"
@@ -39,21 +40,21 @@ gfx::Rect AppListControllerDelegateAsh::GetAppListBounds() {
}
bool AppListControllerDelegateAsh::IsAppPinned(const std::string& app_id) {
- return ash::Shell::GetInstance()->GetShelfDelegate()->IsAppPinned(app_id);
+ return ash::WmShell::Get()->shelf_delegate()->IsAppPinned(app_id);
}
bool AppListControllerDelegateAsh::IsAppOpen(const std::string& app_id) const {
ash::ShelfID id =
- ash::Shell::GetInstance()->GetShelfDelegate()->GetShelfIDForAppID(app_id);
+ ash::WmShell::Get()->shelf_delegate()->GetShelfIDForAppID(app_id);
return id && ChromeLauncherController::instance()->IsOpen(id);
}
void AppListControllerDelegateAsh::PinApp(const std::string& app_id) {
- ash::Shell::GetInstance()->GetShelfDelegate()->PinAppWithID(app_id);
+ ash::WmShell::Get()->shelf_delegate()->PinAppWithID(app_id);
}
void AppListControllerDelegateAsh::UnpinApp(const std::string& app_id) {
- ash::Shell::GetInstance()->GetShelfDelegate()->UnpinAppWithID(app_id);
+ ash::WmShell::Get()->shelf_delegate()->UnpinAppWithID(app_id);
}
AppListControllerDelegate::Pinnable AppListControllerDelegateAsh::GetPinnable(
« no previous file with comments | « chrome/browser/extensions/bookmark_app_helper.cc ('k') | chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698