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 5a1e8f537cc2ed439801b9c20998169d3efb8a04..c7886a77727c7cf65f531f263462113b1888c1a3 100644 |
--- a/components/font_service/public/cpp/font_loader.cc |
+++ b/components/font_service/public/cpp/font_loader.cc |
@@ -4,22 +4,25 @@ |
#include "components/font_service/public/cpp/font_loader.h" |
+#include "base/bind.h" |
#include "components/font_service/public/cpp/font_service_thread.h" |
#include "mojo/application/public/cpp/application_impl.h" |
#include "mojo/application/public/cpp/connect.h" |
#include "mojo/application/public/interfaces/shell.mojom.h" |
namespace font_service { |
+namespace { |
+void OnGotContentHandlerID(uint32_t content_handler_id) {} |
+} // namespace |
FontLoader::FontLoader(mojo::Shell* shell) { |
mojo::ServiceProviderPtr font_service_provider; |
mojo::URLRequestPtr request(mojo::URLRequest::New()); |
request->url = mojo::String::From("mojo:font_service"); |
FontServicePtr font_service; |
- shell->ConnectToApplication(request.Pass(), |
- GetProxy(&font_service_provider), |
- nullptr, |
- nullptr); |
+ shell->ConnectToApplication(request.Pass(), GetProxy(&font_service_provider), |
+ nullptr, nullptr, |
+ base::Bind(&OnGotContentHandlerID)); |
mojo::ConnectToService(font_service_provider.get(), &font_service); |
thread_ = new internal::FontServiceThread(font_service.Pass()); |