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

Unified Diff: services/ui/public/cpp/window_tree_client.cc

Issue 2503063003: Add service name constant for UI service. (Closed)
Patch Set: . Created 4 years, 1 month 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: services/ui/public/cpp/window_tree_client.cc
diff --git a/services/ui/public/cpp/window_tree_client.cc b/services/ui/public/cpp/window_tree_client.cc
index 9742feb2238f8f7a042deeafab08f307641a6cb9..e0ad8d2c0c20d4b8e49603d7c8fc87da81949e5f 100644
--- a/services/ui/public/cpp/window_tree_client.cc
+++ b/services/ui/public/cpp/window_tree_client.cc
@@ -24,6 +24,7 @@
#include "services/ui/public/cpp/window_tracker.h"
#include "services/ui/public/cpp/window_tree_client_delegate.h"
#include "services/ui/public/cpp/window_tree_client_observer.h"
+#include "services/ui/public/interfaces/constants.mojom.h"
#include "services/ui/public/interfaces/window_manager_window_tree_factory.mojom.h"
#include "ui/events/event.h"
#include "ui/gfx/geometry/insets.h"
@@ -124,7 +125,7 @@ void WindowTreeClient::ConnectViaWindowTreeFactory(
client_id_ = 101;
mojom::WindowTreeFactoryPtr factory;
- connector->ConnectToInterface("ui", &factory);
+ connector->ConnectToInterface(ui::mojom::kServiceName, &factory);
mojom::WindowTreePtr window_tree;
factory->CreateWindowTree(GetProxy(&window_tree),
binding_.CreateInterfacePtrAndBind());
@@ -136,7 +137,7 @@ void WindowTreeClient::ConnectAsWindowManager(
DCHECK(window_manager_delegate_);
mojom::WindowManagerWindowTreeFactoryPtr factory;
- connector->ConnectToInterface("ui", &factory);
+ connector->ConnectToInterface(ui::mojom::kServiceName, &factory);
mojom::WindowTreePtr window_tree;
factory->CreateWindowTree(GetProxy(&window_tree),
binding_.CreateInterfacePtrAndBind());
« no previous file with comments | « services/ui/public/cpp/mojo_gpu_memory_buffer_manager.cc ('k') | services/ui/public/cpp/window_tree_host_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698