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

Unified Diff: chrome/installer/util/google_update_experiment_util.cc

Issue 23579003: GCAPI should append to the existing experiment_labels instead of clobbering them. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 7 years, 1 month 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
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());

Powered by Google App Engine
This is Rietveld 408576698