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

Unified Diff: components/variations/service/variations_service.h

Issue 1984003002: Use low entropy for studies that send experiment IDs to Google properties. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
Index: components/variations/service/variations_service.h
diff --git a/components/variations/service/variations_service.h b/components/variations/service/variations_service.h
index 4d3c282ff640cf9350c5526e2be015eb51323982..abb74cabfe1dc1481365e93dbbf87ee761e52d1d 100644
--- a/components/variations/service/variations_service.h
+++ b/components/variations/service/variations_service.h
@@ -178,6 +178,12 @@ class VariationsService
bool is_delta_compressed,
bool is_gzip_compressed);
+ // Get an entropy provider based on low entropy. This is used to create trials
+ // for studies that should only depend on low entropy, such as studies that
+ // send experiment IDs to Google web properties.
+ virtual std::unique_ptr<const base::FieldTrial::EntropyProvider>
+ GetLowEntropyProvider();
+
// Creates the VariationsService with the given |local_state| prefs service
// and |state_manager|. Does not take ownership of |state_manager|. Caller
// should ensure that |state_manager| is valid for the lifetime of this class.

Powered by Google App Engine
This is Rietveld 408576698