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

Unified Diff: components/variations/active_field_trials.h

Issue 2950173003: Support add-on 'field trial' records. (Closed)
Patch Set: addressed review comments by asvitkine Created 3 years, 6 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: components/variations/active_field_trials.h
diff --git a/components/variations/active_field_trials.h b/components/variations/active_field_trials.h
index 9e4667738181bc549569b8e8dc5bd35455ec16ad..486377bd0209bd8e09ac1a7777433580090e1fbe 100644
--- a/components/variations/active_field_trials.h
+++ b/components/variations/active_field_trials.h
@@ -10,6 +10,7 @@
#include <string>
#include "base/metrics/field_trial.h"
+#include "base/strings/string_piece.h"
namespace variations {
@@ -21,8 +22,8 @@ struct ActiveGroupId {
};
// Returns an ActiveGroupId struct for the given trial and group names.
-ActiveGroupId MakeActiveGroupId(const std::string& trial_name,
- const std::string& group_name);
+ActiveGroupId MakeActiveGroupId(base::StringPiece trial_name,
+ base::StringPiece group_name);
// We need to supply a Compare class for templates since ActiveGroupId is a
// user-defined type.
« no previous file with comments | « components/metrics/persistent_system_profile_unittest.cc ('k') | components/variations/active_field_trials.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698