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

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

Issue 2465003002: Removing Variations support for google_update_experiment_id. (Closed)
Patch Set: Fix typo. Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_VARIATIONS_EXPERIMENT_LABELS_H_ 5 #ifndef COMPONENTS_VARIATIONS_EXPERIMENT_LABELS_H_
6 #define COMPONENTS_VARIATIONS_EXPERIMENT_LABELS_H_ 6 #define COMPONENTS_VARIATIONS_EXPERIMENT_LABELS_H_
7 7
8 #include "base/metrics/field_trial.h" 8 #include "base/metrics/field_trial.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 10
11 namespace variations { 11 namespace variations {
12 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 13 // 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 14 // experiment_labels string value containing only the labels that are not
28 // associated with Chrome Variations. 15 // associated with Chrome Variations.
29 base::string16 ExtractNonVariationLabels(const base::string16& labels); 16 base::string16 ExtractNonVariationLabels(const base::string16& labels);
30 17
31 } // namespace variations 18 } // namespace variations
32 19
33 #endif // COMPONENTS_VARIATIONS_EXPERIMENT_LABELS_H_ 20 #endif // COMPONENTS_VARIATIONS_EXPERIMENT_LABELS_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/sessions/sessions_sync_manager_unittest.cc ('k') | components/variations/experiment_labels.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698