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

Unified Diff: content/common/content_switches_internal.cc

Issue 1655323002: Switch use-zoom-for-dsf flag to use tri-value flags (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | « chrome/browser/about_flags.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/content_switches_internal.cc
diff --git a/content/common/content_switches_internal.cc b/content/common/content_switches_internal.cc
index f496c504f5986d43d23cb300353bbd900dcd19f2..27f63c253c35b53d07a0cdd7436a197e815b923f 100644
--- a/content/common/content_switches_internal.cc
+++ b/content/common/content_switches_internal.cc
@@ -84,8 +84,11 @@ V8CacheOptions GetV8CacheOptions() {
}
bool IsUseZoomForDSFEnabled() {
- static bool enabled = base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableUseZoomForDSF);
+ base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
+ bool enabled = command_line->HasSwitch(switches::kEnableUseZoomForDSF) &&
+ command_line->GetSwitchValueASCII(
+ switches::kEnableUseZoomForDSF) != "false";
+
return enabled;
}
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698