Skip to content

Commit

Permalink
Assert ContentMainRunnerImpl::Run (#823)
Browse files Browse the repository at this point in the history
  • Loading branch information
Domiii committed Jul 16, 2023
1 parent eed5011 commit bed1679
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions base/metrics/field_trial.cc
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,10 @@ void FieldTrialList::CreateTrialsFromCommandLine(const CommandLine& cmd_line,
return;
}

recordreplay::Assert(
"[RUN-2350-2356] FieldTrialList::CreateTrialsFromCommandLine %d %d",
recordreplay::IsRecordingOrReplaying(), recordreplay::FeatureEnabled("no-field-trials"));

#if !BUILDFLAG(IS_NACL) && !BUILDFLAG(IS_IOS)
if (cmd_line.HasSwitch(switches::kFieldTrialHandle)) {
std::string switch_value =
Expand Down
3 changes: 3 additions & 0 deletions content/app/content_main_runner_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1049,6 +1049,9 @@ int NO_STACK_PROTECTOR ContentMainRunnerImpl::Run() {
// Zygotes will run this at a later point in time when the command line
// has been updated.
CreateChildThreadPool(process_type);
recordreplay::Assert("[RUN-2350-2356] ContentMainRunnerImpl::Run %d",
delegate_->ShouldCreateFeatureList(
ContentMainDelegate::InvokedInChildProcess()));
if (delegate_->ShouldCreateFeatureList(
ContentMainDelegate::InvokedInChildProcess())) {
InitializeFieldTrialAndFeatureList();
Expand Down

0 comments on commit bed1679

Please sign in to comment.