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

Unified Diff: ash/common/mojo_interface_factory.cc

Issue 2525563003: mash: Change CastConfigDelegate to a mojoified CastConfigClient. (Closed)
Patch Set: move dep to chromeos section 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
« no previous file with comments | « ash/common/cast_config_delegate.cc ('k') | ash/common/system/chromeos/cast/tray_cast.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..e359a741b1a700e5b55404310c33f86b170db1d3 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"
@@ -24,6 +25,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(
@@ -65,6 +70,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);
« no previous file with comments | « ash/common/cast_config_delegate.cc ('k') | ash/common/system/chromeos/cast/tray_cast.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698