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

Unified Diff: mandoline/ui/aura/surface_binding.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_service_unittest.cc ('k') | mandoline/ui/browser/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mandoline/ui/aura/surface_binding.cc
diff --git a/mandoline/ui/aura/surface_binding.cc b/mandoline/ui/aura/surface_binding.cc
index c1b09303ba9f8b0f48849e9e30dece987e7e4169..e1a0566c5f7c60694fd5844cab2646df9905e3be 100644
--- a/mandoline/ui/aura/surface_binding.cc
+++ b/mandoline/ui/aura/surface_binding.cc
@@ -204,7 +204,9 @@ void SurfaceBinding::PerViewManagerState::Init() {
DCHECK(!surface_.get());
mojo::ServiceProviderPtr surfaces_service_provider;
- shell_->ConnectToApplication("mojo:surfaces_service",
+ mojo::URLRequestPtr request(mojo::URLRequest::New());
+ request->url = mojo::String::From("mojo:surfaces_service");
+ shell_->ConnectToApplication(request.Pass(),
GetProxy(&surfaces_service_provider),
nullptr);
ConnectToService(surfaces_service_provider.get(), &surface_);
@@ -221,7 +223,9 @@ void SurfaceBinding::PerViewManagerState::Init() {
mojo::ServiceProviderPtr gpu_service_provider;
// TODO(jamesr): Should be mojo:gpu_service
- shell_->ConnectToApplication("mojo:native_viewport_service",
+ mojo::URLRequestPtr request2(mojo::URLRequest::New());
+ request2->url = mojo::String::From("mojo:native_viewport_service");
+ shell_->ConnectToApplication(request2.Pass(),
GetProxy(&gpu_service_provider),
nullptr);
ConnectToService(gpu_service_provider.get(), &gpu_);
« no previous file with comments | « components/view_manager/view_manager_service_unittest.cc ('k') | mandoline/ui/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698