summaryrefslogtreecommitdiff
path: root/chromium/components/variations/variations_seed_store.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/components/variations/variations_seed_store.cc')
-rw-r--r--chromium/components/variations/variations_seed_store.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/chromium/components/variations/variations_seed_store.cc b/chromium/components/variations/variations_seed_store.cc
index 65b1efd1b5c..8067651b435 100644
--- a/chromium/components/variations/variations_seed_store.cc
+++ b/chromium/components/variations/variations_seed_store.cc
@@ -112,7 +112,10 @@ base::Time TruncateToUTCDay(const base::Time& time) {
exploded.second = 0;
exploded.millisecond = 0;
- return base::Time::FromUTCExploded(exploded);
+ base::Time out_time;
+ bool conversion_success = base::Time::FromUTCExploded(exploded, &out_time);
+ DCHECK(conversion_success);
+ return out_time;
}
VariationsSeedDateChangeState GetSeedDateChangeState(