Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1613)

Unified Diff: content/browser/renderer_host/delegated_frame_host.cc

Issue 2135743002: Adds command line switch to disable resize lock (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: disable Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/public/common/content_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/delegated_frame_host.cc
diff --git a/content/browser/renderer_host/delegated_frame_host.cc b/content/browser/renderer_host/delegated_frame_host.cc
index 5540e0be19f94261c9fb2806fe4d15c6339adc02..78e5ca788099f9423101c2b98495572cc9e105c2 100644
--- a/content/browser/renderer_host/delegated_frame_host.cc
+++ b/content/browser/renderer_host/delegated_frame_host.cc
@@ -120,6 +120,12 @@ void DelegatedFrameHost::MaybeCreateResizeLock() {
}
bool DelegatedFrameHost::ShouldCreateResizeLock() {
+ static const bool is_disabled =
+ base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kDisableResizeLock);
+ if (is_disabled)
+ return false;
+
if (!client_->DelegatedFrameCanCreateResizeLock())
return false;
« no previous file with comments | « no previous file | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698