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

Unified Diff: base/metrics/field_trial_param_associator.cc

Issue 2568533002: Fix tsan deadlock in base_unittest (Closed)
Patch Set: Created 4 years 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/metrics/field_trial_param_associator.cc
diff --git a/base/metrics/field_trial_param_associator.cc b/base/metrics/field_trial_param_associator.cc
index 0230b8a8a8d39082d166052eb00303e4ff03919e..7e3a15febb28d2a42797c9bc2a67d39f67726892 100644
--- a/base/metrics/field_trial_param_associator.cc
+++ b/base/metrics/field_trial_param_associator.cc
@@ -66,8 +66,10 @@ bool FieldTrialParamAssociator::GetFieldTrialParamsWithoutFallback(
}
void FieldTrialParamAssociator::ClearAllParamsForTesting() {
- AutoLock scoped_lock(lock_);
- field_trial_params_.clear();
+ {
+ AutoLock scoped_lock(lock_);
+ field_trial_params_.clear();
+ }
FieldTrialList::ClearParamsFromSharedMemoryForTesting();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698