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

Unified Diff: components/variations/variations_associated_data.cc

Issue 286063004: Move active field trial API to variations component. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/variations/variations_associated_data.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/variations/variations_associated_data.cc
===================================================================
--- components/variations/variations_associated_data.cc (revision 271393)
+++ components/variations/variations_associated_data.cc (working copy)
@@ -9,10 +9,14 @@
#include <vector>
#include "base/memory/singleton.h"
-#include "components/variations/metrics_util.h"
namespace chrome_variations {
+// TODO(asvitkine): Delete these when this file moves to variations namespace.
+using variations::ActiveGroupId;
+using variations::ActiveGroupIdCompare;
+using variations::MakeActiveGroupId;
+
namespace {
// The internal singleton accessor for the map, used to keep it thread-safe.
@@ -173,14 +177,6 @@
} // namespace
-ActiveGroupId MakeActiveGroupId(const std::string& trial_name,
- const std::string& group_name) {
- ActiveGroupId id;
- id.name = metrics::HashName(trial_name);
- id.group = metrics::HashName(group_name);
- return id;
-}
-
void AssociateGoogleVariationID(IDCollectionKey key,
const std::string& trial_name,
const std::string& group_name,
« no previous file with comments | « components/variations/variations_associated_data.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698