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

Unified Diff: components/domain_reliability/dispatcher.h

Issue 2336043007: Domain Reliability: Don't crash on shutdown with uploads pending (Closed)
Patch Set: Remove outdated comment. Created 4 years 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/test/BUILD.gn ('k') | components/domain_reliability/dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/domain_reliability/dispatcher.h
diff --git a/components/domain_reliability/dispatcher.h b/components/domain_reliability/dispatcher.h
index 41cb511123b7a080e210c081d4fa85edcb8195a8..b65d404f57b253eb81ce212f7b3957d2e6eac977 100644
--- a/components/domain_reliability/dispatcher.h
+++ b/components/domain_reliability/dispatcher.h
@@ -35,9 +35,15 @@ class DOMAIN_RELIABILITY_EXPORT DomainReliabilityDispatcher {
base::TimeDelta min_delay,
base::TimeDelta max_delay);
- // Runs all tasks whose minimum delay has already passed.
+ // Runs all existing tasks whose minimum delay has already passed. Does not
+ // run tasks added by those existing tasks, even if their minimum delay has
+ // already passed.
void RunEligibleTasks();
+ // Runs all waiting or eligible tasks, regardless of whether their minimum
+ // delay has passed.
+ void RunAllTasksForTesting();
+
private:
struct Task;
« no previous file with comments | « chrome/test/BUILD.gn ('k') | components/domain_reliability/dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698