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

Unified Diff: mojo/runner/context.cc

Issue 1354043002: Revert of Some more minor cleanup to ApplicationManager. (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 | « mojo/package_manager/package_manager_impl.cc ('k') | mojo/runner/native_runner_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/runner/context.cc
diff --git a/mojo/runner/context.cc b/mojo/runner/context.cc
index 048de9bf4be3c86b2d37a8ac3ee933920d2af0e8..b6d78e333d17a9def89f69a54854344420758ecb 100644
--- a/mojo/runner/context.cc
+++ b/mojo/runner/context.cc
@@ -209,14 +209,11 @@
new TracingServiceProvider(GetProxy(&tracing_service_provider_ptr));
mojo::URLRequestPtr request(mojo::URLRequest::New());
request->url = mojo::String::From("mojo:tracing");
-
- scoped_ptr<shell::ConnectToApplicationParams> params(
- new shell::ConnectToApplicationParams);
- params->SetURLInfo(request.Pass());
- params->set_services(GetProxy(&service_provider_ptr));
- params->set_exposed_services(tracing_service_provider_ptr.Pass());
- params->set_filter(shell::GetPermissiveCapabilityFilter());
- application_manager_->ConnectToApplication(params.Pass());
+ application_manager_->ConnectToApplication(
+ nullptr, request.Pass(), std::string(), GetProxy(&service_provider_ptr),
+ tracing_service_provider_ptr.Pass(),
+ shell::GetPermissiveCapabilityFilter(), base::Closure(),
+ shell::EmptyConnectCallback());
// Record the shell startup metrics used for performance testing.
if (base::CommandLine::ForCurrentProcess()->HasSwitch(
@@ -266,16 +263,11 @@
app_urls_.insert(url);
mojo::URLRequestPtr request(mojo::URLRequest::New());
request->url = mojo::String::From(url.spec());
-
- scoped_ptr<shell::ConnectToApplicationParams> params(
- new shell::ConnectToApplicationParams);
- params->SetURLInfo(request.Pass());
- params->set_services(GetProxy(&services));
- params->set_exposed_services(exposed_services.Pass());
- params->set_filter(shell::GetPermissiveCapabilityFilter());
- params->set_on_application_end(
- base::Bind(&Context::OnApplicationEnd, base::Unretained(this), url));
- application_manager_->ConnectToApplication(params.Pass());
+ application_manager_->ConnectToApplication(
+ nullptr, request.Pass(), std::string(), GetProxy(&services),
+ exposed_services.Pass(), shell::GetPermissiveCapabilityFilter(),
+ base::Bind(&Context::OnApplicationEnd, base::Unretained(this), url),
+ shell::EmptyConnectCallback());
}
void Context::RunCommandLineApplication(const base::Closure& callback) {
« no previous file with comments | « mojo/package_manager/package_manager_impl.cc ('k') | mojo/runner/native_runner_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698