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

Unified Diff: components/html_viewer/html_widget.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
Index: components/html_viewer/html_widget.cc
diff --git a/components/html_viewer/html_widget.cc b/components/html_viewer/html_widget.cc
index 5a60d3e6e2622e68724d95975c770da4feb50e8e..a7515cec0b7f9989af310b0d1b1e3d5d7360ca55 100644
--- a/components/html_viewer/html_widget.cc
+++ b/components/html_viewer/html_widget.cc
@@ -35,10 +35,8 @@ void InitializeWebLayerTreeView(WebLayerTreeViewImpl* web_layer_tree_view,
mus::Window* window,
blink::WebWidget* widget) {
DCHECK(window);
- mojo::URLRequestPtr request(mojo::URLRequest::New());
- request->url = mojo::String::From("mojo:mus");
mus::mojom::GpuPtr gpu_service;
- app->ConnectToService(request.Pass(), &gpu_service);
+ app->ConnectToService("mojo:mus", &gpu_service);
web_layer_tree_view->Initialize(gpu_service.Pass(), window, widget);
}
« no previous file with comments | « components/html_viewer/html_document_application_delegate.cc ('k') | components/html_viewer/layout_test_html_viewer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698