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

Unified Diff: components/view_manager/public/cpp/lib/view_manager_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
Index: components/view_manager/public/cpp/lib/view_manager_context.cc
diff --git a/components/view_manager/public/cpp/lib/view_manager_context.cc b/components/view_manager/public/cpp/lib/view_manager_context.cc
index 1eaffae1f09495d79b17e42bb6ea05a8a6a5de67..c7a8e3d9037f70542ada74029cfbf3c2a8af17f1 100644
--- a/components/view_manager/public/cpp/lib/view_manager_context.cc
+++ b/components/view_manager/public/cpp/lib/view_manager_context.cc
@@ -13,7 +13,9 @@ class ApplicationImpl;
class ViewManagerContext::InternalState {
public:
explicit InternalState(ApplicationImpl* application_impl) {
- application_impl->ConnectToService("mojo:window_manager", &wm_);
+ mojo::URLRequestPtr request(mojo::URLRequest::New());
+ request->url = mojo::String::From("mojo:window_manager");
+ application_impl->ConnectToService(request.Pass(), &wm_);
}
~InternalState() {}
@@ -32,13 +34,15 @@ ViewManagerContext::~ViewManagerContext() {
}
void ViewManagerContext::Embed(const String& url) {
- Embed(url, nullptr, nullptr);
+ mojo::URLRequestPtr request(mojo::URLRequest::New());
+ request->url = mojo::String::From(url);
+ Embed(request.Pass(), nullptr, nullptr);
}
-void ViewManagerContext::Embed(const String& url,
+void ViewManagerContext::Embed(mojo::URLRequestPtr request,
InterfaceRequest<ServiceProvider> services,
ServiceProviderPtr exposed_services) {
- state_->wm()->Embed(url, services.Pass(), exposed_services.Pass());
+ state_->wm()->Embed(request.Pass(), services.Pass(), exposed_services.Pass());
}
} // namespace mojo

Powered by Google App Engine
This is Rietveld 408576698