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

Unified Diff: components/web_view/public/cpp/web_view.cc

Issue 1455833005: Convert ConnectToApplication to take a params class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 1 month 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/web_view/frame_devtools_agent.cc ('k') | content/browser/mojo/mojo_shell_client_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « components/web_view/frame_devtools_agent.cc ('k') | content/browser/mojo/mojo_shell_client_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698