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

Unified Diff: ash/mojo_interface_factory.cc

Issue 2848813002: Introduce ash mojo interface for lock screen action handlers (Closed)
Patch Set: . 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/mojo_interface_factory.cc
diff --git a/ash/mojo_interface_factory.cc b/ash/mojo_interface_factory.cc
index fc1f2b8ef027676821258b5f84f1a7149096439a..137c0108b7ea07e6db9ddf66ce3f904ac54a86c1 100644
--- a/ash/mojo_interface_factory.cc
+++ b/ash/mojo_interface_factory.cc
@@ -18,6 +18,7 @@
#include "ash/system/locale/locale_notification_controller.h"
#include "ash/system/network/vpn_list.h"
#include "ash/system/tray/system_tray_controller.h"
+#include "ash/tray_action_handler/tray_action_handler_controller.h"
#include "ash/wallpaper/wallpaper_controller.h"
#include "ash/wm/maximize_mode/maximize_mode_controller.h"
#include "base/bind.h"
@@ -79,6 +80,12 @@ void BindTouchViewRequestOnMainThread(mojom::TouchViewManagerRequest request) {
Shell::Get()->maximize_mode_controller()->BindRequest(std::move(request));
}
+void BindTrayActionHandlerControllerRequestOnMainThread(
+ mojom::TrayActionHandlerControllerRequest request) {
+ Shell::Get()->tray_action_handler_controller()->BindRequest(
+ std::move(request));
+}
+
void BindVpnListRequestOnMainThread(mojom::VpnListRequest request) {
Shell::Get()->vpn_list()->BindRequest(std::move(request));
}
@@ -120,6 +127,9 @@ void RegisterInterfaces(
main_thread_task_runner);
registry->AddInterface(base::Bind(&BindTouchViewRequestOnMainThread),
main_thread_task_runner);
+ registry->AddInterface(
+ base::Bind(&BindTrayActionHandlerControllerRequestOnMainThread),
+ main_thread_task_runner);
registry->AddInterface(base::Bind(&BindVpnListRequestOnMainThread),
main_thread_task_runner);
registry->AddInterface(base::Bind(&BindWallpaperRequestOnMainThread),

Powered by Google App Engine
This is Rietveld 408576698