Move variations component code to variations namespace.

This is a re-land of https://codereview.chromium.org/412943002/
which broke on the official builder.

BUG=284540
[email protected], [email protected], [email protected]

Review URL: https://codereview.chromium.org/421663003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@285778 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/components/variations/variations_associated_data.h b/components/variations/variations_associated_data.h
index 13f68a44..8bacae1d 100644
--- a/components/variations/variations_associated_data.h
+++ b/components/variations/variations_associated_data.h
@@ -37,11 +37,11 @@
 //
 // VariationID id = GetGoogleVariationID(GOOGLE_WEB_PROPERTIES, "trial",
 //                                       "group1");
-// if (id != chrome_variations::kEmptyID) {
+// if (id != variations::kEmptyID) {
 //   // use |id|
 // }
 
-namespace chrome_variations {
+namespace variations {
 
 typedef int VariationID;
 
@@ -64,13 +64,13 @@
   ID_COLLECTION_COUNT,
 };
 
-// Associate a chrome_variations::VariationID value with a FieldTrial group for
+// Associate a variations::VariationID value with a FieldTrial group for
 // collection |key|. If an id was previously set for |trial_name| and
 // |group_name|, this does nothing. The group is denoted by |trial_name| and
 // |group_name|. This must be called whenever a FieldTrial is prepared (create
-// the trial and append groups) and needs to have a
-// chrome_variations::VariationID associated with it so Google servers can
-// recognize the FieldTrial. Thread safe.
+// the trial and append groups) and needs to have a variations::VariationID
+// associated with it so Google servers can recognize the FieldTrial.
+// Thread safe.
 void AssociateGoogleVariationID(IDCollectionKey key,
                                 const std::string& trial_name,
                                 const std::string& group_name,
@@ -82,12 +82,12 @@
                                      const std::string& group_name,
                                      VariationID id);
 
-// Retrieve the chrome_variations::VariationID associated with a FieldTrial
-// group for collection |key|. The group is denoted by |trial_name| and
-// |group_name|. This will return chrome_variations::kEmptyID if there is
-// currently no associated ID for the named group. This API can be nicely
-// combined with FieldTrial::GetActiveFieldTrialGroups() to enumerate the
-// variation IDs for all active FieldTrial groups. Thread safe.
+// Retrieve the variations::VariationID associated with a FieldTrial group for
+// collection |key|. The group is denoted by |trial_name| and |group_name|.
+// This will return variations::kEmptyID if there is currently no associated ID
+// for the named group. This API can be nicely combined with
+// FieldTrial::GetActiveFieldTrialGroups() to enumerate the variation IDs for
+// all active FieldTrial groups. Thread safe.
 VariationID GetGoogleVariationID(IDCollectionKey key,
                                  const std::string& trial_name,
                                  const std::string& group_name);
@@ -131,6 +131,6 @@
 
 }  // namespace testing
 
-}  // namespace chrome_variations
+}  // namespace variations
 
 #endif  // COMPONENTS_VARIATIONS_VARIATIONS_ASSOCIATED_DATA_H_