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

Unified Diff: ash/common/mojo_interface_factory.cc

Issue 2525563003: mash: Change CastConfigDelegate to a mojoified CastConfigClient. (Closed)
Patch Set: Add more RunAllPendingInMessageLoop to the tray tests. 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 f8bab26711a577dd45cc822ecdf41ca7919cfeaf..bb00d0d434259acb7542f554d059ade12d85ee5e 100644
--- a/ash/common/mojo_interface_factory.cc
+++ b/ash/common/mojo_interface_factory.cc
@@ -6,6 +6,7 @@
#include <utility>
+#include "ash/common/cast_config_controller.h"
#include "ash/common/shelf/shelf_controller.h"
#include "ash/common/shutdown_controller.h"
#include "ash/common/system/locale/locale_notification_controller.h"
@@ -23,6 +24,10 @@ namespace ash {
namespace {
+void BindCastConfigOnMainThread(mojom::CastConfigRequest request) {
+ WmShell::Get()->cast_config()->BindRequest(std::move(request));
+}
+
void BindLocaleNotificationControllerOnMainThread(
mojom::LocaleNotificationControllerRequest request) {
WmShell::Get()->locale_notification_controller()->BindRequest(
@@ -60,6 +65,8 @@ namespace mojo_interface_factory {
void RegisterInterfaces(
service_manager::InterfaceRegistry* registry,
scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner) {
+ registry->AddInterface(base::Bind(&BindCastConfigOnMainThread),
+ main_thread_task_runner);
registry->AddInterface(
base::Bind(&BindLocaleNotificationControllerOnMainThread),
main_thread_task_runner);

Powered by Google App Engine
This is Rietveld 408576698