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

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..74357b5f14da9242c5fef9c69b7b3120357df04e 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);
+ // Create 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 for testing.
+ virtual std::unique_ptr<const base::FieldTrial::EntropyProvider>
+ CreateLowEntropyProvider();
+
// 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.
« no previous file with comments | « components/variations/entropy_provider_unittest.cc ('k') | components/variations/service/variations_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698