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

Unified Diff: ui/aura/mus/gpu_service.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
« no previous file with comments | « services/ui/ws/window_tree_client_unittest.cc ('k') | ui/aura/mus/input_method_mus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/mus/gpu_service.cc
diff --git a/ui/aura/mus/gpu_service.cc b/ui/aura/mus/gpu_service.cc
index 6ed3255bab48b2949e450da65fbdf401c8d891f1..4ffe4900c4685bd8995321ad29e2d159e501277a 100644
--- a/ui/aura/mus/gpu_service.cc
+++ b/ui/aura/mus/gpu_service.cc
@@ -11,6 +11,7 @@
#include "mojo/public/cpp/bindings/sync_call_restrictions.h"
#include "mojo/public/cpp/system/platform_handle.h"
#include "services/service_manager/public/cpp/connector.h"
+#include "services/ui/public/interfaces/constants.mojom.h"
#include "services/ui/public/interfaces/gpu_service.mojom.h"
#include "ui/aura/mus/mojo_gpu_memory_buffer_manager.h"
@@ -64,7 +65,7 @@ void GpuService::EstablishGpuChannel(
if (gpu_service_)
return;
- connector_->ConnectToInterface("ui", &gpu_service_);
+ connector_->ConnectToInterface(ui::mojom::kServiceName, &gpu_service_);
gpu_service_->EstablishGpuChannel(
base::Bind(&GpuService::OnEstablishedGpuChannel, base::Unretained(this)));
}
@@ -77,7 +78,7 @@ scoped_refptr<gpu::GpuChannelHost> GpuService::EstablishGpuChannelSync() {
int client_id = 0;
mojo::ScopedMessagePipeHandle channel_handle;
gpu::GPUInfo gpu_info;
- connector_->ConnectToInterface("ui", &gpu_service_);
+ connector_->ConnectToInterface(ui::mojom::kServiceName, &gpu_service_);
mojo::SyncCallRestrictions::ScopedAllowSyncCall allow_sync_call;
if (!gpu_service_->EstablishGpuChannel(&client_id, &channel_handle,
« no previous file with comments | « services/ui/ws/window_tree_client_unittest.cc ('k') | ui/aura/mus/input_method_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698