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

Unified Diff: ash/common/mojo_interface_factory.cc

Issue 2549903002: mash: Reverse the responsibilities of the NewWindowClient. (Closed)
Patch Set: Make StickyKeysBrowserTest how it was before last patch + RunAllPendingInMessageLoop. 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 e359a741b1a700e5b55404310c33f86b170db1d3..d300e9d47b85f14dc9aacfc25f2fae90d5bf51ff 100644
--- a/ash/common/mojo_interface_factory.cc
+++ b/ash/common/mojo_interface_factory.cc
@@ -7,6 +7,7 @@
#include <utility>
#include "ash/common/cast_config_controller.h"
+#include "ash/common/new_window_controller.h"
#include "ash/common/shelf/shelf_controller.h"
#include "ash/common/shutdown_controller.h"
#include "ash/common/system/locale/locale_notification_controller.h"
@@ -35,6 +36,11 @@ void BindLocaleNotificationControllerOnMainThread(
std::move(request));
}
+void BindNewWindowControllerRequestOnMainThread(
+ mojom::NewWindowControllerRequest request) {
+ WmShell::Get()->new_window_controller()->BindRequest(std::move(request));
+}
+
void BindShelfRequestOnMainThread(mojom::ShelfControllerRequest request) {
WmShell::Get()->shelf_controller()->BindRequest(std::move(request));
}
@@ -75,6 +81,9 @@ void RegisterInterfaces(
registry->AddInterface(
base::Bind(&BindLocaleNotificationControllerOnMainThread),
main_thread_task_runner);
+ registry->AddInterface(
+ base::Bind(&BindNewWindowControllerRequestOnMainThread),
+ main_thread_task_runner);
registry->AddInterface(base::Bind(&BindShelfRequestOnMainThread),
main_thread_task_runner);
registry->AddInterface(base::Bind(&BindShutdownControllerRequestOnMainThread),

Powered by Google App Engine
This is Rietveld 408576698