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

Unified Diff: chrome/renderer/chrome_content_renderer_client.cc

Issue 2714873002: Fix 2 issues that were hitting dchecks when enabling ModuleDatabase (Closed)
Patch Set: Created 3 years, 10 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 | « chrome/browser/conflicts/module_database_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/chrome_content_renderer_client.cc
diff --git a/chrome/renderer/chrome_content_renderer_client.cc b/chrome/renderer/chrome_content_renderer_client.cc
index a4f67e1e5346a49d35f450a620dac255b2b2bf00..265c073baec8efcc99bdea89801db67cc32de389 100644
--- a/chrome/renderer/chrome_content_renderer_client.cc
+++ b/chrome/renderer/chrome_content_renderer_client.cc
@@ -366,6 +366,10 @@ void ChromeContentRendererClient::RenderThreadStarted() {
if (base::FeatureList::IsEnabled(features::kModuleDatabase)) {
thread->GetRemoteInterfaces()->GetInterface(&module_event_sink_);
+ // Rebind the ModuleEventSink so that it can be accessed on the IO thread.
+ module_event_sink_.Bind(module_event_sink_.PassInterface(),
+ thread->GetIOTaskRunner());
+
// It is safe to pass an unretained pointer to |module_event_sink_|, as it
// is owned by the process singleton ChromeContentRendererClient, which is
// leaked.
« no previous file with comments | « chrome/browser/conflicts/module_database_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698