Index: components/html_viewer/html_viewer.cc |
diff --git a/components/html_viewer/html_viewer.cc b/components/html_viewer/html_viewer.cc |
index dd2043462673249b12cea833bf5f8197f00149f1..bd45b87b448a30d28a3f032ac6538d569e8fc473 100644 |
--- a/components/html_viewer/html_viewer.cc |
+++ b/components/html_viewer/html_viewer.cc |
@@ -53,7 +53,9 @@ class HTMLViewerApplication : public mojo::Application { |
void Initialize(ShellPtr shell, const String& url) override { |
ServiceProviderPtr service_provider; |
shell_ = shell.Pass(); |
- shell_->ConnectToApplication("mojo:network_service", |
+ mojo::URLRequestPtr request(mojo::URLRequest::New()); |
+ request->url = mojo::String::From("mojo:network_service"); |
+ shell_->ConnectToApplication(request.Pass(), |
GetProxy(&service_provider), nullptr); |
ConnectToService(service_provider.get(), &network_service_); |
} |