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

Unified Diff: components/font_service/public/cpp/font_loader.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/filesystem/files_test_base.cc ('k') | components/html_viewer/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/font_service/public/cpp/font_loader.cc
diff --git a/components/font_service/public/cpp/font_loader.cc b/components/font_service/public/cpp/font_loader.cc
index f029349b998210b23cb275826528603d3714bfa0..da045180fd9fc7376833e1ad7b6828612a56a2eb 100644
--- a/components/font_service/public/cpp/font_loader.cc
+++ b/components/font_service/public/cpp/font_loader.cc
@@ -30,10 +30,8 @@ FontLoader::FontLoader(mojo::Shell* shell) {
}
FontLoader::FontLoader(mojo::ApplicationImpl* application_impl) {
- mojo::URLRequestPtr request(mojo::URLRequest::New());
- request->url = mojo::String::From("mojo:font_service");
FontServicePtr font_service;
- application_impl->ConnectToService(request.Pass(), &font_service);
+ application_impl->ConnectToService("mojo:font_service", &font_service);
thread_ = new internal::FontServiceThread(font_service.Pass());
}
« no previous file with comments | « components/filesystem/files_test_base.cc ('k') | components/html_viewer/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698