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

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

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 | « content/browser/frame_host/frame_mojo_shell.cc ('k') | content/common/mojo/mojo_shell_connection_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/mojo/mojo_shell_context.cc
diff --git a/content/browser/mojo/mojo_shell_context.cc b/content/browser/mojo/mojo_shell_context.cc
index 13459912618eba303dee9048199f55a573f6676d..013b6ef263f3f499bce2d7a612b43455c1b751e7 100644
--- a/content/browser/mojo/mojo_shell_context.cc
+++ b/content/browser/mojo/mojo_shell_context.cc
@@ -273,10 +273,13 @@ void MojoShellContext::ConnectToApplicationOnOwnThread(
const mojo::shell::CapabilityFilter& filter,
const mojo::shell::mojom::Shell::ConnectCallback& callback) {
scoped_ptr<mojo::shell::ConnectParams> params(new mojo::shell::ConnectParams);
+ // TODO(beng): kUserRoot is obviously wrong.
params->set_source(
mojo::shell::Identity(requestor_url, std::string(),
+ mojo::shell::mojom::Shell::kUserRoot,
mojo::shell::GetPermissiveCapabilityFilter()));
- params->set_target(mojo::shell::Identity(url, std::string(), filter));
+ params->set_target(mojo::shell::Identity(
+ url, std::string(), mojo::shell::mojom::Shell::kUserRoot, filter));
params->set_remote_interfaces(std::move(request));
params->set_local_interfaces(std::move(exposed_services));
params->set_connect_callback(callback);
« no previous file with comments | « content/browser/frame_host/frame_mojo_shell.cc ('k') | content/common/mojo/mojo_shell_connection_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698