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

Unified Diff: chrome/common/metrics/variations_util.h

Issue 10795060: Rename all of experiments_helper to variations_helper, including files, namespaces, and various fun… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: rebase Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/metrics/experiments_helper_unittest.cc ('k') | chrome/common/metrics/variations_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/metrics/variations_util.h
===================================================================
--- chrome/common/metrics/variations_util.h (revision 148577)
+++ chrome/common/metrics/variations_util.h (working copy)
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_COMMON_METRICS_EXPERIMENTS_HELPER_H_
-#define CHROME_COMMON_METRICS_EXPERIMENTS_HELPER_H_
+#ifndef CHROME_COMMON_METRICS_VARIATIONS_UTIL_H_
+#define CHROME_COMMON_METRICS_VARIATIONS_UTIL_H_
#include <string>
#include <vector>
@@ -16,7 +16,7 @@
// base::FieldTrial.
//
// This includes a simple API used to handle getting and setting
-// data related to Google-specific experiments in the browser. This is meant to
+// data related to Google-specific variations in the browser. This is meant to
// be an extension to the base::FieldTrial for Google-specific functionality.
//
// These calls are meant to be made directly after appending all your groups to
@@ -45,7 +45,7 @@
// The AssociateGoogleVariationID and GetGoogleVariationID API methods are
// thread safe.
-namespace experiments_helper {
+namespace chrome_variations {
// The Unique ID of a trial and its selected group, where the name and group
// identifiers are hashes of the trial and group name strings.
@@ -100,16 +100,16 @@
const std::string& trial_name,
const std::string& group_name);
-// Generates experiment chunks from |experiment_strings| that are suitable for
+// Generates variation chunks from |variation_strings| that are suitable for
// crash reporting.
-void GenerateExperimentChunks(const std::vector<string16>& experiment_strings,
- std::vector<string16>* chunks);
+void GenerateVariationChunks(const std::vector<string16>& variation_strings,
+ std::vector<string16>* chunks);
-// Get the current set of chosen FieldTrial groups (aka experiments) and send
+// Get the current set of chosen FieldTrial groups (aka variations) and send
// them to the child process logging module so it can save it for crash dumps.
-void SetChildProcessLoggingExperimentList();
+void SetChildProcessLoggingVariationList();
-} // namespace experiments_helper
+} // namespace chrome_variations
// Expose some functions for testing. These functions just wrap functionality
// that is implemented above.
@@ -117,10 +117,10 @@
void TestGetFieldTrialSelectedGroupIdsForSelectedGroups(
const base::FieldTrial::SelectedGroups& selected_groups,
- std::vector<experiments_helper::SelectedGroupId>* name_group_ids);
+ std::vector<chrome_variations::SelectedGroupId>* name_group_ids);
uint32 TestHashName(const std::string& name);
} // namespace testing
-#endif // CHROME_COMMON_METRICS_EXPERIMENTS_HELPER_H_
+#endif // CHROME_COMMON_METRICS_VARIATIONS_UTIL_H_
« no previous file with comments | « chrome/common/metrics/experiments_helper_unittest.cc ('k') | chrome/common/metrics/variations_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698