Chromium Code Reviews| Index: chrome/installer/gcapi/gcapi_omaha_experiment.cc |
| diff --git a/chrome/installer/gcapi/gcapi_omaha_experiment.cc b/chrome/installer/gcapi/gcapi_omaha_experiment.cc |
| index 5235afd20a9a7d5a91bb68a608d3634f42f3684f..f453264386f3a0b2eedd4e677afc7c3c6d332290 100644 |
| --- a/chrome/installer/gcapi/gcapi_omaha_experiment.cc |
| +++ b/chrome/installer/gcapi/gcapi_omaha_experiment.cc |
| @@ -20,7 +20,10 @@ namespace { |
| int GetCurrentRlzWeek(const base::Time& current_time) { |
| base::Time::Exploded february_third_2003_exploded = |
|
Lei Zhang
2016/07/06 17:44:30
const, if you don't mind.
maksims (do not use this acc)
2016/07/07 05:48:14
Done.
Lei Zhang
2016/07/07 05:50:55
Thanks!
|
| {2003, 2, 1, 3, 0, 0, 0, 0}; |
| - base::Time f = base::Time::FromUTCExploded(february_third_2003_exploded); |
| + base::Time f; |
| + bool conversion_success = |
| + base::Time::FromUTCExploded(february_third_2003_exploded, &f); |
| + DCHECK(conversion_success); |
| base::TimeDelta delta = current_time - f; |
| return delta.InDays() / 7; |
| } |