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

Unified Diff: ui/arc/notification/arc_notification_manager.cc

Issue 2171493002: Moves ToastManager from Shell to WmShell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove include 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
« no previous file with comments | « ash/system/toast/toast_manager_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/arc/notification/arc_notification_manager.cc
diff --git a/ui/arc/notification/arc_notification_manager.cc b/ui/arc/notification/arc_notification_manager.cc
index ced4c101dde6747556591274bb2e8eb0c8d8670d..b25aeba2d64eefbf793eebcd4fb5072bb27afc6d 100644
--- a/ui/arc/notification/arc_notification_manager.cc
+++ b/ui/arc/notification/arc_notification_manager.cc
@@ -5,7 +5,7 @@
#include "ui/arc/notification/arc_notification_manager.h"
#include "ash/common/system/toast/toast_manager.h"
-#include "ash/shell.h"
+#include "ash/common/wm_shell.h"
#include "base/memory/ptr_util.h"
#include "base/stl_util.h"
#include "ui/arc/notification/arc_custom_notification_item.h"
@@ -192,12 +192,12 @@ void ArcNotificationManager::SendNotificationButtonClickedOnChrome(
}
void ArcNotificationManager::OnToastPosted(mojom::ArcToastDataPtr data) {
- ash::Shell::GetInstance()->toast_manager()->Show(
+ ash::WmShell::Get()->toast_manager()->Show(
ash::ToastData(data->id, data->text, data->duration, data->dismiss_text));
}
void ArcNotificationManager::OnToastCancelled(mojom::ArcToastDataPtr data) {
- ash::Shell::GetInstance()->toast_manager()->Cancel(data->id);
+ ash::WmShell::Get()->toast_manager()->Cancel(data->id);
}
} // namespace arc
« no previous file with comments | « ash/system/toast/toast_manager_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698