refactor: replace --offscreen flag with ApplyWebPreferences (#28938)
This commit is contained in:
parent
e0fa327daf
commit
9601dc59fc
4 changed files with 6 additions and 22 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue