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

Unified Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 2113933003: Add mojo interface to load hyphenation dictionaries on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dcheng review Created 4 years, 5 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 | « content/browser/hyphenation/hyphenation_impl.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_process_host_impl.cc
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
index c4b72a3241682e420e1aee06434c9c44cbaf6003..dcab6dee21f2bb61a7c8eed55e295b689ba0dbd7 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -236,6 +236,10 @@
#include "services/ui/common/switches.h" // nogncheck
#endif
+#if defined(USE_MINIKIN_HYPHENATION)
+#include "content/browser/hyphenation/hyphenation_impl.h"
+#endif
+
#if defined(OS_WIN)
#define IntToStringType base::IntToString16
#else
@@ -1076,9 +1080,15 @@ void RenderProcessHostImpl::RegisterMojoInterfaces() {
base::Unretained(
storage_partition_impl_->GetBroadcastChannelProvider())));
+ scoped_refptr<base::SingleThreadTaskRunner> file_task_runner =
+ BrowserThread::GetTaskRunnerForThread(BrowserThread::FILE);
GetInterfaceRegistry()->AddInterface(
- base::Bind(&MimeRegistryImpl::Create),
- BrowserThread::GetTaskRunnerForThread(BrowserThread::FILE));
+ base::Bind(&MimeRegistryImpl::Create), file_task_runner);
+
+#if defined(USE_MINIKIN_HYPHENATION)
+ GetInterfaceRegistry()->AddInterface(
+ base::Bind(&hyphenation::HyphenationImpl::Create), file_task_runner);
+#endif
scoped_refptr<base::SingleThreadTaskRunner> io_task_runner =
BrowserThread::GetTaskRunnerForThread(BrowserThread::IO);
« no previous file with comments | « content/browser/hyphenation/hyphenation_impl.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698