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

Unified Diff: chrome/common/variations/experiment_labels.cc

Issue 421663003: Move variations component code to variations namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Fix Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/variations/experiment_labels.cc
===================================================================
--- chrome/common/variations/experiment_labels.cc (revision 285608)
+++ chrome/common/variations/experiment_labels.cc (working copy)
@@ -24,7 +24,8 @@
// including a timestamp that is a year in the future from |current_time|. Since
// multiple headers can be transmitted, |count| is a number that is appended
// after the label key to differentiate the labels.
-base::string16 CreateSingleExperimentLabel(int count, VariationID id,
+base::string16 CreateSingleExperimentLabel(int count,
+ variations::VariationID id,
const base::Time& current_time) {
// Build the parts separately so they can be validated.
const base::string16 key =
@@ -52,10 +53,11 @@
// Find all currently active VariationIDs associated with Google Update.
for (base::FieldTrial::ActiveGroups::const_iterator it =
active_groups.begin(); it != active_groups.end(); ++it) {
- const VariationID id = GetGoogleVariationID(GOOGLE_UPDATE_SERVICE,
- it->trial_name, it->group_name);
+ const variations::VariationID id =
+ variations::GetGoogleVariationID(variations::GOOGLE_UPDATE_SERVICE,
+ it->trial_name, it->group_name);
- if (id == EMPTY_ID)
+ if (id == variations::EMPTY_ID)
continue;
if (!experiment_labels.empty())

Powered by Google App Engine
This is Rietveld 408576698