| Index: components/web_view/public/cpp/web_view.cc
|
| diff --git a/components/web_view/public/cpp/web_view.cc b/components/web_view/public/cpp/web_view.cc
|
| index fe5399772ccde86d54b17d82631aa635fd1ca283..0aee7653a55c0921fb5a45ec0c3be4ac00810fb1 100644
|
| --- a/components/web_view/public/cpp/web_view.cc
|
| +++ b/components/web_view/public/cpp/web_view.cc
|
| @@ -21,16 +21,13 @@ WebView::WebView(mojom::WebViewClient* client) : binding_(client) {}
|
| WebView::~WebView() {}
|
|
|
| void WebView::Init(mojo::ApplicationImpl* app, mus::Window* window) {
|
| - mojo::URLRequestPtr request(mojo::URLRequest::New());
|
| - request->url = "mojo:web_view";
|
| -
|
| mojom::WebViewClientPtr client;
|
| mojo::InterfaceRequest<mojom::WebViewClient> client_request =
|
| GetProxy(&client);
|
| binding_.Bind(client_request.Pass());
|
|
|
| mojom::WebViewFactoryPtr factory;
|
| - app->ConnectToService(request.Pass(), &factory);
|
| + app->ConnectToService("mojo:web_view", &factory);
|
| factory->CreateWebView(client.Pass(), GetProxy(&web_view_));
|
|
|
| mus::mojom::WindowTreeClientPtr window_tree_client;
|
|
|