Lines Matching refs:allocator
51 // Constants for the field trial allocator.
211 HANDLE CreateReadOnlyHandle(FieldTrialList::FieldTrialAllocator* allocator) {
212 HANDLE src = allocator->shared_memory()->handle().GetHandle();
223 int CreateReadOnlyHandle(FieldTrialList::FieldTrialAllocator* allocator) {
225 allocator->shared_memory()->ShareReadOnlyToProcess(GetCurrentProcessHandle(),
726 FieldTrialAllocator* allocator = global_->field_trial_allocator_.get();
727 FieldTrialAllocator::Iterator mem_iter(allocator);
794 // occur in some browser tests which don't initialize the allocator.
900 // anyways). But some browser tests don't create the allocator, so we need
1013 // If the field trial allocator is not set up yet, then there are several
1015 // - We are in the browser process and the allocator has not been set up
1020 // - We are in the child process and the allocator has not been set up yet.
1022 // allocator should get set up very early in the lifecycle. Try to see if
1054 // To clear the params, we iterate through every item in the allocator, copy
1057 FieldTrialAllocator* allocator = global_->field_trial_allocator_.get();
1058 FieldTrialAllocator::Iterator mem_iter(allocator);
1069 allocator->GetAsObject<FieldTrial::FieldTrialEntry>(prev_ref);
1081 allocator->New<FieldTrial::FieldTrialEntry>(total_size);
1094 FieldTrial::FieldTrialRef new_ref = allocator->GetAsReference(new_entry);
1100 allocator->ChangeType(prev_ref, 0,
1106 allocator->MakeIterable(ref);
1112 PersistentMemoryAllocator* allocator) {
1117 AddToAllocatorWhileLocked(allocator, registered.second);
1124 PersistentMemoryAllocator const& allocator) {
1126 FieldTrialAllocator::Iterator iter(&allocator);
1220 // Create the allocator if not already created and add all existing trials.
1262 PersistentMemoryAllocator* allocator,
1264 // Don't do anything if the allocator hasn't been instantiated yet.
1265 if (allocator == nullptr)
1268 // Or if the allocator is read only, which means we are in a child process and
1270 if (allocator->IsReadonly())
1278 // also add to the allocator.
1289 FieldTrial::FieldTrialRef ref = allocator->Allocate(
1297 allocator->GetAsObject<FieldTrial::FieldTrialEntry>(ref);
1307 allocator->MakeIterable(ref);
1314 FieldTrialAllocator* allocator = global_->field_trial_allocator_.get();
1317 if (allocator && allocator->IsReadonly())
1322 // It's fine to do this even if the allocator hasn't been instantiated
1331 allocator->GetAsObject<FieldTrial::FieldTrialEntry>(ref);