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

Unified Diff: components/domain_reliability/scheduler.cc

Issue 272773004: Domain Reliability: Don't clear "upload pending" bit until upload starts (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase Created 6 years, 7 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 | components/domain_reliability/scheduler_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/domain_reliability/scheduler.cc
diff --git a/components/domain_reliability/scheduler.cc b/components/domain_reliability/scheduler.cc
index b114d4b83a05f76c2039e61438b4a3f1f7c10f4c..3b7cfb5212f46a277fd1c3ff9a5de98dd0f523f1 100644
--- a/components/domain_reliability/scheduler.cc
+++ b/components/domain_reliability/scheduler.cc
@@ -89,6 +89,7 @@ void DomainReliabilityScheduler::OnBeaconAdded() {
size_t DomainReliabilityScheduler::OnUploadStart() {
DCHECK(upload_scheduled_);
DCHECK_EQ(kInvalidCollectorIndex, collector_index_);
+ upload_pending_ = false;
upload_scheduled_ = false;
upload_running_ = true;
@@ -139,7 +140,6 @@ void DomainReliabilityScheduler::MaybeScheduleUpload() {
if (!upload_pending_ || upload_scheduled_ || upload_running_)
return;
- upload_pending_ = false;
upload_scheduled_ = true;
old_first_beacon_time_ = first_beacon_time_;
« no previous file with comments | « no previous file | components/domain_reliability/scheduler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698