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

Unified Diff: mojo/shell/connect_util.h

Issue 1719193003: Add a user id parameter to connections (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 10 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 | « mojo/shell/connect_params.cc ('k') | mojo/shell/identity.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/connect_util.h
diff --git a/mojo/shell/connect_util.h b/mojo/shell/connect_util.h
index 036ecde919eec16295e6c491f29c343cc7a95411..baa4d2ee832c3fa48836e61ff45d69c317c9e803 100644
--- a/mojo/shell/connect_util.h
+++ b/mojo/shell/connect_util.h
@@ -10,6 +10,7 @@
#include "mojo/public/cpp/bindings/interface_ptr.h"
#include "mojo/public/cpp/system/handle.h"
#include "mojo/shell/identity.h"
+#include "mojo/shell/public/interfaces/shell.mojom.h"
class GURL;
@@ -44,7 +45,8 @@ inline void ConnectToInterface(ApplicationManager* application_manager,
InterfacePtr<Interface>* ptr) {
ScopedMessagePipeHandle service_handle = ConnectToInterfaceByName(
application_manager, source,
- Identity(application_url, std::string(), GetPermissiveCapabilityFilter()),
+ Identity(application_url, std::string(), mojom::Shell::kUserInherit,
+ GetPermissiveCapabilityFilter()),
Interface::Name_);
ptr->Bind(InterfacePtrInfo<Interface>(std::move(service_handle), 0u));
}
« no previous file with comments | « mojo/shell/connect_params.cc ('k') | mojo/shell/identity.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698