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

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

Issue 2024363002: Convert MimeRegistry to use mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@message-mojom-magic
Patch Set: Created 4 years, 7 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/mime_registry_message_filter.cc ('k') | content/common/content_message_generator.h » ('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 08d50a2c5ce8246f4f49130387eedcdc43d6a039..b07a5daf083d18c87c265ee82fd37dcf501a8fe0 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -82,7 +82,7 @@
#include "content/browser/media/midi_host.h"
#include "content/browser/memory/memory_message_filter.h"
#include "content/browser/message_port_message_filter.h"
-#include "content/browser/mime_registry_message_filter.h"
+#include "content/browser/mime_registry_impl.h"
#include "content/browser/mojo/constants.h"
#include "content/browser/mojo/mojo_application_host.h"
#include "content/browser/mojo/mojo_child_connection.h"
@@ -931,7 +931,6 @@ void RenderProcessHostImpl::CreateMessageFilters() {
blob_storage_context.get(), StreamContext::GetFor(browser_context)));
AddFilter(new BlobDispatcherHost(blob_storage_context.get()));
AddFilter(new FileUtilitiesMessageFilter(GetID()));
- AddFilter(new MimeRegistryMessageFilter());
AddFilter(
new DatabaseMessageFilter(storage_partition_impl_->GetDatabaseTracker()));
#if defined(OS_MACOSX)
@@ -1080,6 +1079,10 @@ void RenderProcessHostImpl::RegisterMojoServices() {
base::Bind(&RenderProcessHostImpl::CreateStoragePartitionService,
base::Unretained(this)));
+ mojo_application_host_->service_registry()->AddService(
+ base::Bind(&MimeRegistryImpl::Create),
+ BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE));
+
#if defined(OS_ANDROID)
ServiceRegistrarAndroid::RegisterProcessHostServices(
mojo_application_host_->service_registry_android());
« no previous file with comments | « content/browser/mime_registry_message_filter.cc ('k') | content/common/content_message_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698