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

Unified Diff: components/metrics/reporting_service.cc

Issue 2752073002: Avoid double initializing reporting_service_ (Closed)
Patch Set: 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 | « components/metrics/metrics_service.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/metrics/reporting_service.cc
diff --git a/components/metrics/reporting_service.cc b/components/metrics/reporting_service.cc
index a541b298be8ffc829b7ba076f429ded46ffb0f29..8b96d4af2e831aec3cc74f84f9d50bf74e006059 100644
--- a/components/metrics/reporting_service.cc
+++ b/components/metrics/reporting_service.cc
@@ -43,6 +43,7 @@ ReportingService::~ReportingService() {
void ReportingService::Initialize() {
DCHECK(thread_checker_.CalledOnValidThread());
+ DCHECK(!upload_scheduler_);
log_store()->LoadPersistedUnsentLogs();
base::Closure send_next_log_callback = base::Bind(
&ReportingService::SendNextLog, self_ptr_factory_.GetWeakPtr());
« no previous file with comments | « components/metrics/metrics_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698