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

Unified Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 294833002: Mojo: more idiomatic C++ bindings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more Created 6 years, 7 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
Index: content/browser/renderer_host/render_process_host_impl.cc
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
index 91f67778ce2ddc681e474c26b51a29cceeb4cc4a..ec83f8b1cff120ad082ead38a49994bf35196871 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -138,7 +138,6 @@
#include "ipc/ipc_switches.h"
#include "media/base/media_switches.h"
#include "mojo/common/common_type_converters.h"
-#include "mojo/public/cpp/bindings/allocation_scope.h"
#include "net/url_request/url_request_context_getter.h"
#include "ppapi/shared_impl/ppapi_switches.h"
#include "third_party/skia/include/core/SkBitmap.h"
@@ -2076,9 +2075,8 @@ void RenderProcessHostImpl::ConnectTo(
mojo_activation_required_ = true;
MaybeActivateMojo();
- mojo::AllocationScope scope;
- mojo_application_host_->shell_client()->AcceptConnection(service_name,
- handle.Pass());
+ mojo_application_host_->shell_client()->AcceptConnection(
+ mojo::String::From(service_name), handle.Pass());
}
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698