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

Unified Diff: base/trace_event/memory_dump_scheduler.cc

Issue 2768933002: Reland of Add process uptime metadata event in tracing (Closed)
Patch Set: Fix if condition. Created 3 years, 9 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 | « base/process/process_info_unittest.cc ('k') | base/trace_event/trace_log.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/trace_event/memory_dump_scheduler.cc
diff --git a/base/trace_event/memory_dump_scheduler.cc b/base/trace_event/memory_dump_scheduler.cc
index eaa8d63661ca6d7bad289330cfa21f775a1ee07f..1c1c78ebf89c2e9862d4ecda1c029cff540f476a 100644
--- a/base/trace_event/memory_dump_scheduler.cc
+++ b/base/trace_event/memory_dump_scheduler.cc
@@ -96,7 +96,7 @@ void MemoryDumpScheduler::NotifyPollingSupported() {
void MemoryDumpScheduler::NotifyDumpTriggered() {
if (polling_state_.polling_task_runner &&
- polling_state_.polling_task_runner->RunsTasksOnCurrentThread()) {
+ !polling_state_.polling_task_runner->RunsTasksOnCurrentThread()) {
polling_state_.polling_task_runner->PostTask(
FROM_HERE,
Bind(&MemoryDumpScheduler::NotifyDumpTriggered, Unretained(this)));
@@ -115,7 +115,7 @@ void MemoryDumpScheduler::DisableAllTriggers() {
}
void MemoryDumpScheduler::DisablePolling() {
- if (polling_state_.polling_task_runner->RunsTasksOnCurrentThread()) {
+ if (!polling_state_.polling_task_runner->RunsTasksOnCurrentThread()) {
if (polling_state_.polling_task_runner->PostTask(
FROM_HERE,
Bind(&MemoryDumpScheduler::DisablePolling, Unretained(this))))
« no previous file with comments | « base/process/process_info_unittest.cc ('k') | base/trace_event/trace_log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698