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

Unified Diff: content/browser/gpu/gpu_process_host.cc

Issue 2398783002: Rename a bunch of Mojo Application stuff to reference Services. (Closed)
Patch Set: . Created 4 years, 2 months 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 | « content/browser/frame_host/render_frame_host_impl.cc ('k') | content/browser/ppapi_plugin_process_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/gpu_process_host.cc
diff --git a/content/browser/gpu/gpu_process_host.cc b/content/browser/gpu/gpu_process_host.cc
index 007039dd7524793fa49529bb69850f09b645e6c6..423079449b5c59bb8d48c56d36e9cd8872bf233b 100644
--- a/content/browser/gpu/gpu_process_host.cc
+++ b/content/browser/gpu/gpu_process_host.cc
@@ -38,7 +38,7 @@
#include "content/common/establish_channel_params.h"
#include "content/common/gpu_host_messages.h"
#include "content/common/in_process_child_thread_params.h"
-#include "content/common/mojo/mojo_child_connection.h"
+#include "content/common/service_manager/child_connection.h"
#include "content/common/view_messages.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/content_browser_client.h"
@@ -50,10 +50,10 @@
#include "content/public/common/content_client.h"
#include "content/public/common/content_switches.h"
#include "content/public/common/mojo_channel_switches.h"
-#include "content/public/common/mojo_shell_connection.h"
#include "content/public/common/result_codes.h"
#include "content/public/common/sandbox_type.h"
#include "content/public/common/sandboxed_process_launcher_delegate.h"
+#include "content/public/common/service_manager_connection.h"
#include "content/public/common/service_names.h"
#include "gpu/command_buffer/service/gpu_preferences.h"
#include "gpu/command_buffer/service/gpu_switches.h"
@@ -302,7 +302,7 @@ class GpuProcessHost::ConnectionFilterImpl : public ConnectionFilter {
bool OnConnect(const shell::Identity& remote_identity,
shell::InterfaceRegistry* registry,
shell::Connector* connector) override {
- if (remote_identity.name() != kGpuMojoApplicationName)
+ if (remote_identity.name() != kGpuServiceName)
return false;
GetContentClient()->browser()->ExposeInterfacesToGpuProcess(registry,
@@ -464,7 +464,7 @@ GpuProcessHost::GpuProcessHost(int host_id, GpuProcessKind kind)
base::Bind(base::IgnoreResult(&GpuProcessHostUIShim::Create), host_id));
process_.reset(new BrowserChildProcessHostImpl(
- PROCESS_TYPE_GPU, this, kGpuMojoApplicationName));
+ PROCESS_TYPE_GPU, this, kGpuServiceName));
}
GpuProcessHost::~GpuProcessHost() {
@@ -560,8 +560,8 @@ bool GpuProcessHost::Init() {
TRACE_EVENT_INSTANT0("gpu", "LaunchGpuProcess", TRACE_EVENT_SCOPE_THREAD);
// May be null during test execution.
- if (MojoShellConnection::GetForProcess()) {
- MojoShellConnection::GetForProcess()->AddConnectionFilter(
+ if (ServiceManagerConnection::GetForProcess()) {
+ ServiceManagerConnection::GetForProcess()->AddConnectionFilter(
base::MakeUnique<ConnectionFilterImpl>(this));
}
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | content/browser/ppapi_plugin_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698