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

Unified Diff: content/common/host_discardable_shared_memory_manager.cc

Issue 2334343002: [tracing] Fix HostDiscardable dump provider to register on the right thread (Closed)
Patch Set: use Get. Created 4 years, 3 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/host_discardable_shared_memory_manager.cc
diff --git a/content/common/host_discardable_shared_memory_manager.cc b/content/common/host_discardable_shared_memory_manager.cc
index c8e793fa89beeed94e331459a5b6688da27ddbeb..f862bbc00340b40bcd9e1afffa16a0ab08de7de7 100644
--- a/content/common/host_discardable_shared_memory_manager.cc
+++ b/content/common/host_discardable_shared_memory_manager.cc
@@ -177,7 +177,8 @@ HostDiscardableSharedMemoryManager::HostDiscardableSharedMemoryManager()
base::Bind(&HostDiscardableSharedMemoryManager::EnforceMemoryPolicy,
weak_ptr_factory_.GetWeakPtr());
base::trace_event::MemoryDumpManager::GetInstance()->RegisterDumpProvider(
- this, "HostDiscardableSharedMemoryManager", nullptr);
+ this, "HostDiscardableSharedMemoryManager",
+ base::ThreadTaskRunnerHandle::Get());
}
HostDiscardableSharedMemoryManager::~HostDiscardableSharedMemoryManager() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698