| Index: chrome/installer/util/google_update_experiment_util.cc
|
| diff --git a/chrome/installer/util/google_update_experiment_util.cc b/chrome/installer/util/google_update_experiment_util.cc
|
| index 0baca3946c66c171da8c911b71da6e6ee098e705..c87c52a830cd39864743f857c743bd8d30a3cc51 100644
|
| --- a/chrome/installer/util/google_update_experiment_util.cc
|
| +++ b/chrome/installer/util/google_update_experiment_util.cc
|
| @@ -24,7 +24,7 @@ const char* const kMonths[] =
|
|
|
| }
|
|
|
| -string16 BuildExperimentDateString() {
|
| +string16 BuildExperimentDateString(const base::Time& current_time) {
|
| // The Google Update experiment_labels timestamp format is:
|
| // "DAY, DD0 MON YYYY HH0:MI0:SE0 TZ"
|
| // DAY = 3 character day of week,
|
| @@ -36,7 +36,7 @@ string16 BuildExperimentDateString() {
|
| // SE0 = 2 digit second,
|
| // TZ = 3 character timezone
|
| base::Time::Exploded then = {};
|
| - base::Time::Now().UTCExplode(&then);
|
| + current_time.UTCExplode(&then);
|
| then.year += 1;
|
| DCHECK(then.HasValidValues());
|
|
|
|
|