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

Unified Diff: mojo/runner/context.cc

Issue 1121783003: Move navigations with POST or referrer to the shell. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years, 7 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/runner/BUILD.gn ('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 d9aee2ed667a2e236ac9ef59d1720dc083c79eb0..7c401b72a0ec471b613d8c0b770e9fe20ec96ff4 100644
--- a/mojo/runner/context.cc
+++ b/mojo/runner/context.cc
@@ -272,9 +272,11 @@ bool Context::Init() {
ServiceProviderPtr tracing_service_provider_ptr;
new TracingServiceProvider(GetProxy(&tracing_service_provider_ptr));
- application_manager_.ConnectToApplication(
- GURL("mojo:tracing"), GURL(""), nullptr,
- tracing_service_provider_ptr.Pass(), base::Closure());
+ mojo::URLRequestPtr request(mojo::URLRequest::New());
+ request->url = mojo::String::From("mojo:tracing");
+ application_manager_.ConnectToApplication(request.Pass(), GURL(""), nullptr,
+ tracing_service_provider_ptr.Pass(),
+ base::Closure());
return true;
}
@@ -313,8 +315,10 @@ void Context::Run(const GURL& url) {
ServiceProviderPtr exposed_services;
app_urls_.insert(url);
+ mojo::URLRequestPtr request(mojo::URLRequest::New());
+ request->url = mojo::String::From(url.spec());
application_manager_.ConnectToApplication(
- url, GURL(), GetProxy(&services), exposed_services.Pass(),
+ request.Pass(), GURL(), GetProxy(&services), exposed_services.Pass(),
base::Bind(&Context::OnApplicationEnd, base::Unretained(this), url));
}
« no previous file with comments | « mojo/runner/BUILD.gn ('k') | mojo/runner/native_runner_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698