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

Unified Diff: ash/common/mojo_interface_factory.cc

Issue 2552483002: mash: Have chrome set itself as a controller interface for changing volume (Closed)
Patch Set: rebase Created 4 years 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/common/mojo_interface_factory.cc
diff --git a/ash/common/mojo_interface_factory.cc b/ash/common/mojo_interface_factory.cc
index 22c02c4644f2393d08a6bd76dc4c57f5c12df686..a9108636c802c3a13fad9671119059ccdcb73f88 100644
--- a/ash/common/mojo_interface_factory.cc
+++ b/ash/common/mojo_interface_factory.cc
@@ -6,6 +6,7 @@
#include <utility>
+#include "ash/common/accelerators/accelerator_controller.h"
#include "ash/common/shelf/shelf_controller.h"
#include "ash/common/shutdown_controller.h"
#include "ash/common/system/locale/locale_notification_controller.h"
@@ -47,6 +48,10 @@ void BindTouchViewRequestOnMainThread(mojom::TouchViewManagerRequest request) {
WmShell::Get()->maximize_mode_controller()->BindRequest(std::move(request));
}
+void BindVolumeRequestOnMainThread(mojom::VolumeRequest request) {
+ WmShell::Get()->accelerator_controller()->BindRequest(std::move(request));
+}
+
#if defined(OS_CHROMEOS)
void BindVpnListRequestOnMainThread(mojom::VpnListRequest request) {
WmShell::Get()->vpn_list()->BindRequest(std::move(request));
@@ -76,6 +81,8 @@ void RegisterInterfaces(
main_thread_task_runner);
registry->AddInterface(base::Bind(&BindTouchViewRequestOnMainThread),
main_thread_task_runner);
+ registry->AddInterface(base::Bind(&BindVolumeRequestOnMainThread),
+ main_thread_task_runner);
#if defined(OS_CHROMEOS)
registry->AddInterface(base::Bind(&BindVpnListRequestOnMainThread),
main_thread_task_runner);

Powered by Google App Engine
This is Rietveld 408576698