Index: base/metrics/field_trial.cc |
diff --git a/base/metrics/field_trial.cc b/base/metrics/field_trial.cc |
index f3fba05fe09e71348de2c01313903d4964b4ed72..647234389b624c3b0e59e6c821952d7bd33f37c7 100644 |
--- a/base/metrics/field_trial.cc |
+++ b/base/metrics/field_trial.cc |
@@ -407,7 +407,7 @@ void FieldTrial::FinalizeGroupChoiceImpl(bool is_locked) { |
SetGroupChoice(default_group_name_, kDefaultGroupNumber); |
// Add the field trial to shared memory. |
- if (kUseSharedMemoryForFieldTrials) |
+ if (kUseSharedMemoryForFieldTrials && trial_registered_) |
FieldTrialList::OnGroupFinalized(is_locked, this); |
} |