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

Unified Diff: ash/mojo_interface_factory.cc

Issue 2848813002: Introduce ash mojo interface for lock screen action handlers (Closed)
Patch Set: add ASH_EXPORTS Created 3 years, 7 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/BUILD.gn ('k') | ash/mus/manifest.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mojo_interface_factory.cc
diff --git a/ash/mojo_interface_factory.cc b/ash/mojo_interface_factory.cc
index 3f2e0fbb78bd15fbb01ac006e064729b2cf55f1d..04d32fbab38a12b788351d0c2cdeb3abbe358acc 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/tray_action.h"
#include "ash/wallpaper/wallpaper_controller.h"
#include "ash/wm/maximize_mode/maximize_mode_controller.h"
#include "base/bind.h"
@@ -96,6 +97,12 @@ void BindTouchViewRequestOnMainThread(
Shell::Get()->maximize_mode_controller()->BindRequest(std::move(request));
}
+void BindTrayActionRequestOnMainThread(
+ const service_manager::BindSourceInfo& source_info,
+ mojom::TrayActionRequest request) {
+ Shell::Get()->tray_action()->BindRequest(std::move(request));
+}
+
void BindVpnListRequestOnMainThread(
const service_manager::BindSourceInfo& source_info,
mojom::VpnListRequest request) {
@@ -140,6 +147,8 @@ void RegisterInterfaces(
main_thread_task_runner);
registry->AddInterface(base::Bind(&BindTouchViewRequestOnMainThread),
main_thread_task_runner);
+ registry->AddInterface(base::Bind(&BindTrayActionRequestOnMainThread),
+ main_thread_task_runner);
registry->AddInterface(base::Bind(&BindVpnListRequestOnMainThread),
main_thread_task_runner);
registry->AddInterface(base::Bind(&BindWallpaperRequestOnMainThread),
« no previous file with comments | « ash/BUILD.gn ('k') | ash/mus/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698