refactor: replace --offscreen flag with ApplyWebPreferences (#28938)

This commit is contained in:
Jeremy Rose 2021-05-03 06:28:14 -07:00 committed by GitHub
parent e0fa327daf
commit 9601dc59fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 22 deletions

View file

@ -325,13 +325,6 @@ void WebContentsPreferences::AppendCommandLineSwitches(
}
}
// --offscreen
// TODO(loc): Offscreen is duplicated in WebPreferences because it's needed
// earlier than we can get WebPreferences at the moment.
if (IsEnabled(options::kOffscreen)) {
command_line->AppendSwitch(options::kOffscreen);
}
#if defined(OS_MAC)
// Enable scroll bounce.
if (IsEnabled(options::kScrollBounce))