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

Side by Side Diff: components/variations/variations_experiment_util.h

Issue 1291763002: Componentize kExperimentLabelSeparator & BuildExperimentDateString. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Try moving kExperimentLabels into the component to fix the build on Windows Created 5 years, 4 months 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_EXPERIMENT_UTIL_H_ 5 #ifndef COMPONENTS_VARIATIONS_VARIATIONS_EXPERIMENT_UTIL_H_
6 #define CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_EXPERIMENT_UTIL_H_ 6 #define COMPONENTS_VARIATIONS_VARIATIONS_EXPERIMENT_UTIL_H_
7 7
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 9
10 namespace base { 10 namespace base {
11 class Time; 11 class Time;
12 } 12 }
13 13
14 namespace google_update { 14 namespace variations {
15 15
16 #if defined(OS_WIN) 16 #if defined(OS_WIN)
17 // The name of the value where Google Update reads the list of experiments for 17 // The name of the value where Google Update reads the list of experiments for
18 // itself and Chrome. 18 // itself and Chrome.
19 extern const wchar_t kExperimentLabels[]; 19 extern const wchar_t kExperimentLabels[];
Alexei Svitkine (slow) 2015/08/13 15:18:29 Hmm, this doesn't seem to be used anywhere in vari
sdefresne 2015/08/13 16:46:49 Ah sorry, you reviewed one of my test patchset to
20 #endif 20 #endif
21 21
22 // The separator used to separate items in kExperimentLabels. 22 // The separator used to separate items in kExperimentLabels.
23 extern const base::char16 kExperimentLabelSeparator; 23 extern const base::char16 kExperimentLabelSeparator;
24 24
25 } // namespace google_update
26
27 namespace installer {
28
29 // Constructs a date string in the format understood by Google Update for the 25 // Constructs a date string in the format understood by Google Update for the
30 // |current_time| plus one year. 26 // |current_time| plus one year.
31 base::string16 BuildExperimentDateString(const base::Time& current_time); 27 base::string16 BuildExperimentDateString(const base::Time& current_time);
32 28
33 } // namespace installer 29 } // namespace variations
34 30
35 #endif // CHROME_INSTALLER_UTIL_GOOGLE_UPDATE_EXPERIMENT_UTIL_H_ 31 #endif // COMPONENTS_VARIATIONS_VARIATIONS_EXPERIMENT_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698