diff options
Diffstat (limited to 'chromium/content/browser/renderer_host/render_process_host_impl.cc')
-rw-r--r-- | chromium/content/browser/renderer_host/render_process_host_impl.cc | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/chromium/content/browser/renderer_host/render_process_host_impl.cc b/chromium/content/browser/renderer_host/render_process_host_impl.cc index c0b7e50a9a8..8dc869f6971 100644 --- a/chromium/content/browser/renderer_host/render_process_host_impl.cc +++ b/chromium/content/browser/renderer_host/render_process_host_impl.cc @@ -2159,11 +2159,13 @@ void RenderProcessHostImpl::RegisterMojoInterfaces() { registry->AddInterface( base::BindRepeating(&metrics::CreateSingleSampleMetricsProvider)); - registry->AddInterface(base::BindRepeating( - &CodeCacheHostImpl::Create, GetID(), - base::RetainedRef(storage_partition_impl_->GetCacheStorageContext()), - base::RetainedRef( - storage_partition_impl_->GetGeneratedCodeCacheContext()))); + AddUIThreadInterface( + registry.get(), + base::BindRepeating( + &CodeCacheHostImpl::Create, GetID(), + base::RetainedRef(storage_partition_impl_->GetCacheStorageContext()), + base::RetainedRef( + storage_partition_impl_->GetGeneratedCodeCacheContext()))); #if BUILDFLAG(ENABLE_REPORTING) AddUIThreadInterface( |