Commit 5d5b6f22 authored by lawrencewu's avatar lawrencewu Committed by Commit bot

Fix tsan deadlock in base_unittest

BUG=672859

Review-Url: https://codereview.chromium.org/2568533002
Cr-Commit-Position: refs/heads/master@{#437623}
parent 597a5430
...@@ -65,8 +65,10 @@ bool FieldTrialParamAssociator::GetFieldTrialParamsWithoutFallback( ...@@ -65,8 +65,10 @@ bool FieldTrialParamAssociator::GetFieldTrialParamsWithoutFallback(
} }
void FieldTrialParamAssociator::ClearAllParamsForTesting() { void FieldTrialParamAssociator::ClearAllParamsForTesting() {
AutoLock scoped_lock(lock_); {
field_trial_params_.clear(); AutoLock scoped_lock(lock_);
field_trial_params_.clear();
}
FieldTrialList::ClearParamsFromSharedMemoryForTesting(); FieldTrialList::ClearParamsFromSharedMemoryForTesting();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment