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

Unified Diff: components/font_service/public/cpp/font_loader.cc

Issue 1311353005: Adds a way to determine id of content handler that created app (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nuke comment Created 5 years, 4 months 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 | « no previous file | components/html_viewer/media_factory.cc » ('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 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());
« no previous file with comments | « no previous file | components/html_viewer/media_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698