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

Unified Diff: content/browser/mojo/mojo_app_connection_impl.cc

Issue 1311353005: Adds a way to determine id of content handler that created app (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nuke comment Created 5 years, 4 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/frame_mojo_shell.cc ('k') | content/browser/mojo/mojo_shell_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/mojo/mojo_app_connection_impl.cc
diff --git a/content/browser/mojo/mojo_app_connection_impl.cc b/content/browser/mojo/mojo_app_connection_impl.cc
index 06d07c562e7b8017f4217f86a912f40340324120..ca8d5a5f82415c35a3be734dc78bd235050d8e31 100644
--- a/content/browser/mojo/mojo_app_connection_impl.cc
+++ b/content/browser/mojo/mojo_app_connection_impl.cc
@@ -4,6 +4,7 @@
#include "content/browser/mojo/mojo_app_connection_impl.h"
+#include "base/bind.h"
#include "content/browser/mojo/mojo_shell_context.h"
#include "mojo/shell/capability_filter.h"
@@ -11,6 +12,10 @@ namespace content {
const char kBrowserMojoAppUrl[] = "system:content_browser";
+namespace {
+void OnGotContentHandlerID(uint32_t content_handler_id) {}
+} // namespace
+
// static
scoped_ptr<MojoAppConnection> MojoAppConnection::Create(
const GURL& url,
@@ -23,7 +28,8 @@ MojoAppConnectionImpl::MojoAppConnectionImpl(const GURL& url,
const GURL& requestor_url) {
MojoShellContext::ConnectToApplication(
url, requestor_url, mojo::GetProxy(&services_),
- mojo::ServiceProviderPtr(), mojo::shell::GetPermissiveCapabilityFilter());
+ mojo::ServiceProviderPtr(), mojo::shell::GetPermissiveCapabilityFilter(),
+ base::Bind(&OnGotContentHandlerID));
}
MojoAppConnectionImpl::~MojoAppConnectionImpl() {
« no previous file with comments | « content/browser/frame_host/frame_mojo_shell.cc ('k') | content/browser/mojo/mojo_shell_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698