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

Unified Diff: ash/mus/shelf_delegate_mus.cc

Issue 2761373002: Move yet more from WmShell to Shell (Closed)
Patch Set: merge Created 3 years, 9 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
« no previous file with comments | « ash/metrics/user_metrics_recorder_unittest.cc ('k') | ash/mus/system_tray_delegate_mus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/shelf_delegate_mus.cc
diff --git a/ash/mus/shelf_delegate_mus.cc b/ash/mus/shelf_delegate_mus.cc
index 3f0e6d86ea0cf22d1da64a53a0dbd063152be54e..90dd0f91dc864d5ad9f23d6921b52ca531387a90 100644
--- a/ash/mus/shelf_delegate_mus.cc
+++ b/ash/mus/shelf_delegate_mus.cc
@@ -5,7 +5,7 @@
#include "ash/mus/shelf_delegate_mus.h"
#include "ash/common/shelf/shelf_controller.h"
-#include "ash/common/wm_shell.h"
+#include "ash/shell.h"
#include "base/strings/string_util.h"
namespace ash {
@@ -18,8 +18,8 @@ ShelfDelegateMus::~ShelfDelegateMus() {}
// ShelfDelegate:
ShelfID ShelfDelegateMus::GetShelfIDForAppID(const std::string& app_id) {
- if (WmShell::Get()->shelf_controller()->app_id_to_shelf_id().count(app_id))
- return WmShell::Get()->shelf_controller()->app_id_to_shelf_id().at(app_id);
+ if (Shell::Get()->shelf_controller()->app_id_to_shelf_id().count(app_id))
+ return Shell::Get()->shelf_controller()->app_id_to_shelf_id().at(app_id);
return 0;
}
@@ -30,12 +30,12 @@ ShelfID ShelfDelegateMus::GetShelfIDForAppIDAndLaunchID(
}
bool ShelfDelegateMus::HasShelfIDToAppIDMapping(ShelfID id) const {
- return WmShell::Get()->shelf_controller()->shelf_id_to_app_id().count(id) > 0;
+ return Shell::Get()->shelf_controller()->shelf_id_to_app_id().count(id) > 0;
}
const std::string& ShelfDelegateMus::GetAppIDForShelfID(ShelfID id) {
- if (WmShell::Get()->shelf_controller()->shelf_id_to_app_id().count(id))
- return WmShell::Get()->shelf_controller()->shelf_id_to_app_id().at(id);
+ if (Shell::Get()->shelf_controller()->shelf_id_to_app_id().count(id))
+ return Shell::Get()->shelf_controller()->shelf_id_to_app_id().at(id);
return base::EmptyString();
}
« no previous file with comments | « ash/metrics/user_metrics_recorder_unittest.cc ('k') | ash/mus/system_tray_delegate_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698