From 3859244a79aee8cbf8b89efe8f766984b62fb4d8 Mon Sep 17 00:00:00 2001 From: Milan Burda Date: Mon, 1 Jul 2019 04:58:39 +0200 Subject: [PATCH] chore: remove unused switches::kDisableHtmlFullscreenWindowResize (#19041) --- shell/browser/web_contents_preferences.cc | 3 --- shell/common/options_switches.cc | 4 ---- shell/common/options_switches.h | 1 - 3 files changed, 8 deletions(-) diff --git a/shell/browser/web_contents_preferences.cc b/shell/browser/web_contents_preferences.cc index 5b51fa35ff62..3b40c6e63b03 100644 --- a/shell/browser/web_contents_preferences.cc +++ b/shell/browser/web_contents_preferences.cc @@ -415,9 +415,6 @@ void WebContentsPreferences::AppendCommandLineSwitches( if (IsEnabled(options::kNodeIntegrationInSubFrames)) command_line->AppendSwitch(switches::kNodeIntegrationInSubFrames); - if (IsEnabled(options::kDisableHtmlFullscreenWindowResize)) - command_line->AppendSwitch(switches::kDisableHtmlFullscreenWindowResize); - // We are appending args to a webContents so let's save the current state // of our preferences object so that during the lifetime of the WebContents // we can fetch the options used to initally configure the WebContents diff --git a/shell/common/options_switches.cc b/shell/common/options_switches.cc index 7362ce381f16..912e73e41cd2 100644 --- a/shell/common/options_switches.cc +++ b/shell/common/options_switches.cc @@ -242,10 +242,6 @@ const char kNodeIntegrationInWorker[] = "node-integration-in-worker"; // environments will be created in sub-frames. const char kNodeIntegrationInSubFrames[] = "node-integration-in-subframes"; -// Disable window resizing when HTML Fullscreen API is activated. -const char kDisableHtmlFullscreenWindowResize[] = - "disable-html-fullscreen-window-resize"; - // Widevine options // Path to Widevine CDM binaries. const char kWidevineCdmPath[] = "widevine-cdm-path"; diff --git a/shell/common/options_switches.h b/shell/common/options_switches.h index b16a24b8cf06..30881e95a2e2 100644 --- a/shell/common/options_switches.h +++ b/shell/common/options_switches.h @@ -117,7 +117,6 @@ extern const char kNativeWindowOpen[]; extern const char kNodeIntegrationInWorker[]; extern const char kWebviewTag[]; extern const char kNodeIntegrationInSubFrames[]; -extern const char kDisableHtmlFullscreenWindowResize[]; extern const char kDisableElectronSiteInstanceOverrides[]; extern const char kWidevineCdmPath[];