Update shell_main_delegate.cc
This commit is contained in:
parent
03f71ec2b7
commit
f141cd1a4f
1 changed files with 7 additions and 5 deletions
|
@ -186,8 +186,8 @@ bool ShellMainDelegate::BasicStartupComplete(int* exit_code) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ShellMainDelegate::ShouldCreateFeatureList() {
|
bool ShellMainDelegate::ShouldCreateFeatureList(InvokedIn invoked_in) {
|
||||||
return false;
|
return invoked_in == InvokedIn::kChildProcess;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ShellMainDelegate::PreSandboxStartup() {
|
void ShellMainDelegate::PreSandboxStartup() {
|
||||||
|
@ -335,10 +335,12 @@ void ShellMainDelegate::PreBrowserMain() {
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void ShellMainDelegate::PostEarlyInitialization(bool is_running_tests) {
|
void ShellMainDelegate::PostEarlyInitialization(InvokedIn invoked_in) {
|
||||||
// Apply field trial testing configuration.
|
if (!ShouldCreateFeatureList(invoked_in)) {
|
||||||
|
// Apply field trial testing configuration since content did not.
|
||||||
browser_client_->CreateFeatureListAndFieldTrials();
|
browser_client_->CreateFeatureListAndFieldTrials();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ContentClient* ShellMainDelegate::CreateContentClient() {
|
ContentClient* ShellMainDelegate::CreateContentClient() {
|
||||||
content_client_ = std::make_unique<ShellContentClient>();
|
content_client_ = std::make_unique<ShellContentClient>();
|
||||||
|
|
Loading…
Reference in a new issue