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

Unified Diff: mojo/runner/shell_test_base.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/native_runner_unittest.cc ('k') | mojo/services/network/http_server_apptest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/runner/shell_test_base.cc
diff --git a/mojo/runner/shell_test_base.cc b/mojo/runner/shell_test_base.cc
index df7144e96aacf86de09dbc87ab7523dbcfe7f355..40e9f1aa5f78e95424f8eb34ef5832d010dff6f6 100644
--- a/mojo/runner/shell_test_base.cc
+++ b/mojo/runner/shell_test_base.cc
@@ -48,8 +48,10 @@ ScopedMessagePipeHandle ShellTestBase::ConnectToService(
const GURL& application_url,
const std::string& service_name) {
ServiceProviderPtr services;
+ mojo::URLRequestPtr request(mojo::URLRequest::New());
+ request->url = mojo::String::From(application_url.spec());
shell_context_.application_manager()->ConnectToApplication(
- application_url, GURL(), GetProxy(&services), nullptr,
+ request.Pass(), GURL(), GetProxy(&services), nullptr,
base::Bind(&QuitIfRunning));
MessagePipe pipe;
services->ConnectToService(service_name, pipe.handle1.Pass());
« no previous file with comments | « mojo/runner/native_runner_unittest.cc ('k') | mojo/services/network/http_server_apptest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698