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

Unified Diff: components/view_manager/view_manager_app.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 | « components/view_manager/view_manager_app.h ('k') | components/view_manager/view_manager_service_apptest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/view_manager/view_manager_app.cc
diff --git a/components/view_manager/view_manager_app.cc b/components/view_manager/view_manager_app.cc
index a2e45c3e89f5b5d212436cf28ac55c2a6da082a0..f8084d4c790465c013701430eb77885f8d9d9b28 100644
--- a/components/view_manager/view_manager_app.cc
+++ b/components/view_manager/view_manager_app.cc
@@ -62,10 +62,11 @@ ClientConnection* ViewManagerApp::CreateClientConnectionForEmbedAtView(
mojo::InterfaceRequest<mojo::ViewManagerService> service_request,
mojo::ConnectionSpecificId creator_id,
const std::string& creator_url,
- const std::string& url,
+ mojo::URLRequestPtr request,
const ViewId& root_id) {
mojo::ViewManagerClientPtr client;
- app_impl_->ConnectToService(url, &client);
+ std::string url = request->url.To<std::string>();
+ app_impl_->ConnectToService(request.Pass(), &client);
scoped_ptr<ViewManagerServiceImpl> service(new ViewManagerServiceImpl(
connection_manager, creator_id, creator_url, url, root_id));
« no previous file with comments | « components/view_manager/view_manager_app.h ('k') | components/view_manager/view_manager_service_apptest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698