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

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

Issue 1354003002: Make CapabilityFilter be part of Identity (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 3 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 | « no previous file | mojo/fetcher/about_fetcher_unittest.cc » ('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 45d22736742fe971715d74a4394e3d77398cc440..2c94008b0b694fd954649656b998b69ab48de59b 100644
--- a/content/browser/mojo/mojo_shell_context.cc
+++ b/content/browser/mojo/mojo_shell_context.cc
@@ -237,12 +237,12 @@ void MojoShellContext::ConnectToApplicationOnOwnThread(
const mojo::Shell::ConnectToApplicationCallback& callback) {
scoped_ptr<mojo::shell::ConnectToApplicationParams> params(
new mojo::shell::ConnectToApplicationParams);
- params->set_originator_identity(mojo::shell::Identity(requestor_url));
- params->set_originator_filter(mojo::shell::GetPermissiveCapabilityFilter());
- params->SetURLInfo(url);
+ params->set_source(
+ mojo::shell::Identity(requestor_url, std::string(),
+ mojo::shell::GetPermissiveCapabilityFilter()));
+ params->SetTarget(mojo::shell::Identity(url, std::string(), filter));
params->set_services(request.Pass());
params->set_exposed_services(exposed_services.Pass());
- params->set_filter(filter);
params->set_on_application_end(base::Bind(&base::DoNothing));
params->set_connect_callback(callback);
application_manager_->ConnectToApplication(params.Pass());
« no previous file with comments | « no previous file | mojo/fetcher/about_fetcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698