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

Side by Side Diff: chrome/common/metrics/variations/experiment_labels.h

Issue 292663009: Move chrome/common/metrics/variations to chrome/common/variations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
OLDNEW
(Empty)
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 CHROME_COMMON_METRICS_VARIATIONS_EXPERIMENT_LABELS_H_
6 #define CHROME_COMMON_METRICS_VARIATIONS_EXPERIMENT_LABELS_H_
7
8 #include "base/metrics/field_trial.h"
9 #include "base/strings/string16.h"
10
11 namespace chrome_variations {
12
13 // Takes the list of active groups and builds the label for the ones that have
14 // Google Update VariationID associated with them. This will return an empty
15 // string if there are no such groups.
16 base::string16 BuildGoogleUpdateExperimentLabel(
17 const base::FieldTrial::ActiveGroups& active_groups);
18
19 // Creates a final combined experiment labels string with |variation_labels|
20 // and |other_labels|, appropriately appending a separator based on their
21 // contents. It is assumed that |variation_labels| and |other_labels| do not
22 // have leading or trailing separators.
23 base::string16 CombineExperimentLabels(const base::string16& variation_labels,
24 const base::string16& other_labels);
25
26 // Takes the value of experiment_labels from the registry and returns a valid
27 // experiment_labels string value containing only the labels that are not
28 // associated with Chrome Variations.
29 base::string16 ExtractNonVariationLabels(const base::string16& labels);
30
31 } // namespace chrome_variations
32
33 #endif // CHROME_COMMON_METRICS_VARIATIONS_EXPERIMENT_LABELS_H_
OLDNEW
« no previous file with comments | « chrome/common/metrics/variations/OWNERS ('k') | chrome/common/metrics/variations/experiment_labels.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698