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

Unified Diff: base/metrics/field_trial_param_associator.h

Issue 2463223002: Store field trial parameters in shared memory (Closed)
Patch Set: refactor Created 4 years, 1 month 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: base/metrics/field_trial_param_associator.h
diff --git a/base/metrics/field_trial_param_associator.h b/base/metrics/field_trial_param_associator.h
index 214e146966eebbdf8fe0888f4c705eea1f251fb0..09969efcb36faa904d5d4b5e390e19df0fb9e5ec 100644
--- a/base/metrics/field_trial_param_associator.h
+++ b/base/metrics/field_trial_param_associator.h
@@ -33,10 +33,15 @@ class BASE_EXPORT FieldTrialParamAssociator {
const std::string& group_name,
const FieldTrialParams& params);
- // Gets the parameters for a field trial and its chosen group.
+ // Gets the parameters for a field trial.
bool GetFieldTrialParams(const std::string& trial_name,
FieldTrialParams* params);
+ // Gets the parameters for a field trial. Caller must lock.
+ bool GetFieldTrialParamsWhileLocked(const std::string& trial_name,
Alexei Svitkine (slow) 2016/11/01 14:57:16 This is not correct. The lock in question is the
lawrencewu 2016/11/01 18:29:05 Fixed by overloading GetFieldTrialParams() and cal
+ const std::string& group_name,
+ FieldTrialParams* params);
+
// Clears the internal field_trial_params_ mapping.
void ClearAllParamsForTesting();

Powered by Google App Engine
This is Rietveld 408576698