sdefresne | 1eeb90f | 2015-08-13 18:52:09 | [diff] [blame] | 1 | // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef COMPONENTS_VARIATIONS_VARIATIONS_EXPERIMENT_UTIL_H_ |
| 6 | #define COMPONENTS_VARIATIONS_VARIATIONS_EXPERIMENT_UTIL_H_ |
| 7 | |
| 8 | #include "base/strings/string16.h" |
| 9 | |
| 10 | namespace base { |
| 11 | class Time; |
| 12 | } |
| 13 | |
| 14 | namespace variations { |
| 15 | |
| 16 | // The separator used to separate items in experiment labels. |
| 17 | extern const base::char16 kExperimentLabelSeparator; |
| 18 | |
| 19 | // Constructs a date string in the format understood by Google Update for the |
| 20 | // |current_time| plus one year. |
| 21 | base::string16 BuildExperimentDateString(const base::Time& current_time); |
| 22 | |
| 23 | } // namespace variations |
| 24 | |
| 25 | #endif // COMPONENTS_VARIATIONS_VARIATIONS_EXPERIMENT_UTIL_H_ |