Lines Matching refs:global_
487 FieldTrialList* FieldTrialList::global_ = nullptr; member in base::FieldTrialList
499 DCHECK(!global_); in FieldTrialList()
501 global_ = this; in FieldTrialList()
516 DCHECK_EQ(this, global_); in ~FieldTrialList()
517 global_ = nullptr; in ~FieldTrialList()
603 if (!global_) in Find()
605 AutoLock auto_lock(global_->lock_); in Find()
606 return global_->PreLockedFind(trial_name); in Find()
657 if (!global_) in AllStatesToString()
659 AutoLock auto_lock(global_->lock_); in AllStatesToString()
661 for (const auto& registered : global_->registered_) { in AllStatesToString()
726 if (!global_) in GetActiveFieldTrialGroups()
728 AutoLock auto_lock(global_->lock_); in GetActiveFieldTrialGroups()
730 for (RegistrationMap::iterator it = global_->registered_.begin(); in GetActiveFieldTrialGroups()
731 it != global_->registered_.end(); ++it) { in GetActiveFieldTrialGroups()
760 DCHECK(global_); in GetInitiallyActiveFieldTrials()
761 DCHECK(global_->create_trials_from_command_line_called_); in GetInitiallyActiveFieldTrials()
763 if (!global_->field_trial_allocator_) { in GetInitiallyActiveFieldTrials()
770 FieldTrialAllocator* allocator = global_->field_trial_allocator_.get(); in GetInitiallyActiveFieldTrials()
791 DCHECK(global_); in CreateTrialsFromString()
792 if (trials_string.empty() || !global_) in CreateTrialsFromString()
829 global_->create_trials_from_command_line_called_ = true; in CreateTrialsFromCommandLine()
866 !global_->field_trial_allocator_.get()) { in CreateFeaturesFromCommandLine()
873 global_->field_trial_allocator_.get()); in CreateFeaturesFromCommandLine()
880 if (!global_) in AppendFieldTrialHandleIfNeeded()
884 if (global_->readonly_allocator_handle_.IsValid()) in AppendFieldTrialHandleIfNeeded()
885 handles->push_back(global_->readonly_allocator_handle_.GetHandle()); in AppendFieldTrialHandleIfNeeded()
893 if (global_ && kUseSharedMemoryForFieldTrials) { in GetFieldTrialHandle()
896 return global_->readonly_allocator_handle_; in GetFieldTrialHandle()
913 if (!global_) { in CopyFieldTrialStateToFlags()
925 if (!global_->readonly_allocator_handle_.IsValid()) { in CopyFieldTrialStateToFlags()
931 global_->field_trial_allocator_->UpdateTrackingHistograms(); in CopyFieldTrialStateToFlags()
933 global_->readonly_allocator_handle_); in CopyFieldTrialStateToFlags()
961 DCHECK(global_); in CreateFieldTrial()
964 if (name.empty() || group_name.empty() || !global_) in CreateFieldTrial()
985 if (!global_) in AddObserver()
987 global_->observer_list_->AddObserver(observer); in AddObserver()
993 if (!global_) in RemoveObserver()
995 global_->observer_list_->RemoveObserver(observer); in RemoveObserver()
1000 DCHECK(!global_->synchronous_observer_); in SetSynchronousObserver()
1001 global_->synchronous_observer_ = observer; in SetSynchronousObserver()
1006 DCHECK_EQ(global_->synchronous_observer_, observer); in RemoveSynchronousObserver()
1007 global_->synchronous_observer_ = nullptr; in RemoveSynchronousObserver()
1012 if (!global_) in OnGroupFinalized()
1015 AddToAllocatorWhileLocked(global_->field_trial_allocator_.get(), in OnGroupFinalized()
1018 AutoLock auto_lock(global_->lock_); in OnGroupFinalized()
1019 AddToAllocatorWhileLocked(global_->field_trial_allocator_.get(), in OnGroupFinalized()
1026 if (!global_) in NotifyFieldTrialGroupSelection()
1030 AutoLock auto_lock(global_->lock_); in NotifyFieldTrialGroupSelection()
1051 if (global_->synchronous_observer_) { in NotifyFieldTrialGroupSelection()
1052 global_->synchronous_observer_->OnFieldTrialGroupFinalized( in NotifyFieldTrialGroupSelection()
1056 global_->observer_list_->Notify( in NotifyFieldTrialGroupSelection()
1063 if (!global_) in GetFieldTrialCount()
1065 AutoLock auto_lock(global_->lock_); in GetFieldTrialCount()
1066 return global_->registered_.size(); in GetFieldTrialCount()
1073 DCHECK(global_); in GetParamsFromSharedMemory()
1085 AutoLock auto_lock(global_->lock_); in GetParamsFromSharedMemory()
1086 if (!global_->field_trial_allocator_) in GetParamsFromSharedMemory()
1094 global_->field_trial_allocator_->GetAsObject<FieldTrial::FieldTrialEntry>( in GetParamsFromSharedMemory()
1098 global_->field_trial_allocator_->GetAllocSize(field_trial->ref_); in GetParamsFromSharedMemory()
1108 if (!global_) in ClearParamsFromSharedMemoryForTesting()
1111 AutoLock auto_lock(global_->lock_); in ClearParamsFromSharedMemoryForTesting()
1112 if (!global_->field_trial_allocator_) in ClearParamsFromSharedMemoryForTesting()
1118 FieldTrialAllocator* allocator = global_->field_trial_allocator_.get(); in ClearParamsFromSharedMemoryForTesting()
1156 FieldTrial* trial = global_->PreLockedFind(trial_name.as_string()); in ClearParamsFromSharedMemoryForTesting()
1174 if (!global_) in DumpAllFieldTrialsToPersistentAllocator()
1176 AutoLock auto_lock(global_->lock_); in DumpAllFieldTrialsToPersistentAllocator()
1177 for (const auto& registered : global_->registered_) { in DumpAllFieldTrialsToPersistentAllocator()
1198 return global_ != nullptr; in IsGlobalSetForTesting()
1337 global_->field_trial_allocator_.reset( in CreateTrialsFromSharedMemory()
1339 FieldTrialAllocator* shalloc = global_->field_trial_allocator_.get(); in CreateTrialsFromSharedMemory()
1368 if (!global_) in InstantiateFieldTrialAllocatorIfNeeded()
1370 AutoLock auto_lock(global_->lock_); in InstantiateFieldTrialAllocatorIfNeeded()
1372 if (global_->field_trial_allocator_ != nullptr) in InstantiateFieldTrialAllocatorIfNeeded()
1389 global_->field_trial_allocator_.reset( in InstantiateFieldTrialAllocatorIfNeeded()
1391 global_->field_trial_allocator_->CreateTrackingHistograms(kAllocatorName); in InstantiateFieldTrialAllocatorIfNeeded()
1394 for (const auto& registered : global_->registered_) { in InstantiateFieldTrialAllocatorIfNeeded()
1395 AddToAllocatorWhileLocked(global_->field_trial_allocator_.get(), in InstantiateFieldTrialAllocatorIfNeeded()
1401 global_->field_trial_allocator_.get()); in InstantiateFieldTrialAllocatorIfNeeded()
1404 global_->readonly_allocator_handle_ = GetSharedMemoryReadOnlyHandle( in InstantiateFieldTrialAllocatorIfNeeded()
1405 global_->field_trial_allocator_->shared_memory()); in InstantiateFieldTrialAllocatorIfNeeded()
1460 FieldTrialAllocator* allocator = global_->field_trial_allocator_.get(); in ActivateFieldTrialEntryWhileLocked()
1484 if (!global_) { in GetEntropyProviderForOneTimeRandomization()
1489 return global_->entropy_provider_.get(); in GetEntropyProviderForOneTimeRandomization()
1501 if (!global_) { in Register()
1505 AutoLock auto_lock(global_->lock_); in Register()
1506 CHECK(!global_->PreLockedFind(trial->trial_name())) << trial->trial_name(); in Register()
1509 global_->registered_[trial->trial_name()] = trial; in Register()
1515 if (global_) { in GetRegisteredTrials()
1516 AutoLock auto_lock(global_->lock_); in GetRegisteredTrials()
1517 output = global_->registered_; in GetRegisteredTrials()