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

Unified Diff: components/mus/public/cpp/lib/window_tree_host_factory.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/mus/public/cpp/lib/window_tree_host_factory.cc
diff --git a/components/mus/public/cpp/lib/window_tree_host_factory.cc b/components/mus/public/cpp/lib/window_tree_host_factory.cc
index 80de37ff9b261ce3568e72a868aee6401b159876..76a2cace9ff372dfaa279774fc6c4a578a4d1eae 100644
--- a/components/mus/public/cpp/lib/window_tree_host_factory.cc
+++ b/components/mus/public/cpp/lib/window_tree_host_factory.cc
@@ -32,9 +32,7 @@ void CreateSingleWindowTreeHost(
mojom::WindowManagerPtr window_manager,
WindowManagerDelegate* window_manager_delegate) {
mojom::WindowTreeHostFactoryPtr factory;
- mojo::URLRequestPtr request(mojo::URLRequest::New());
- request->url = "mojo:mus";
- app->ConnectToService(request.Pass(), &factory);
+ app->ConnectToService("mojo:mus", &factory);
CreateWindowTreeHost(factory.get(), mojom::WindowTreeHostClientPtr(),
delegate, host, window_manager.Pass(),
window_manager_delegate);

Powered by Google App Engine
This is Rietveld 408576698