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

Unified Diff: services/ui/public/cpp/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
Index: services/ui/public/cpp/gpu_service.cc
diff --git a/services/ui/public/cpp/gpu_service.cc b/services/ui/public/cpp/gpu_service.cc
index 76e0c4b7fa1b9dc659f8fea9ce8313a937fb3e68..e495e0a37d052650bc2d318c097bdf45362bb9cb 100644
--- a/services/ui/public/cpp/gpu_service.cc
+++ b/services/ui/public/cpp/gpu_service.cc
@@ -13,6 +13,7 @@
#include "services/service_manager/public/cpp/connector.h"
#include "services/ui/common/switches.h"
#include "services/ui/public/cpp/mojo_gpu_memory_buffer_manager.h"
+#include "services/ui/public/interfaces/constants.mojom.h"
#include "services/ui/public/interfaces/gpu_service.mojom.h"
namespace ui {
@@ -65,7 +66,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)));
}
@@ -78,7 +79,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/ime/test_ime_driver/test_ime_application.cc ('k') | services/ui/public/cpp/mojo_gpu_memory_buffer_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698