| Index: net/reporting/reporting_garbage_collector.cc
|
| diff --git a/net/reporting/reporting_garbage_collector.cc b/net/reporting/reporting_garbage_collector.cc
|
| index b6486b4cc0438ac742dcdd997f7c5b97feffd3f3..a8cabe1a2dd4287ede1bc06a7d4e6d91e88cc332 100644
|
| --- a/net/reporting/reporting_garbage_collector.cc
|
| +++ b/net/reporting/reporting_garbage_collector.cc
|
| @@ -40,17 +40,15 @@ class ReportingGarbageCollectorImpl : public ReportingGarbageCollector,
|
|
|
| // ReportingObserver implementation:
|
| void OnCacheUpdated() override {
|
| - if (!timer_->IsRunning())
|
| - StartTimer();
|
| - }
|
| + if (timer_->IsRunning())
|
| + return;
|
|
|
| - private:
|
| - void StartTimer() {
|
| timer_->Start(FROM_HERE, context_->policy().garbage_collection_interval,
|
| base::Bind(&ReportingGarbageCollectorImpl::CollectGarbage,
|
| base::Unretained(this)));
|
| }
|
|
|
| + private:
|
| void CollectGarbage() {
|
| base::TimeTicks now = context_->tick_clock()->NowTicks();
|
| const ReportingPolicy& policy = context_->policy();
|
|
|