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

Unified Diff: content/common/layer_tree_settings_factory.cc

Issue 2443613002: Rename classes related to top controls (Closed)
Patch Set: fix test Created 4 years, 2 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 | « content/common/layer_tree_settings_factory.h ('k') | content/common/resize_params.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/layer_tree_settings_factory.cc
diff --git a/content/common/layer_tree_settings_factory.cc b/content/common/layer_tree_settings_factory.cc
index c6ebb32d762b4bf86fe22ed3868e5a3e5de0f2f7..5c33f1dcf10cad7c4b681f319c02946f74ada2ea 100644
--- a/content/common/layer_tree_settings_factory.cc
+++ b/content/common/layer_tree_settings_factory.cc
@@ -10,21 +10,21 @@
namespace content {
// static
-void LayerTreeSettingsFactory::SetTopControlsSettings(
+void LayerTreeSettingsFactory::SetBrowserControlsSettings(
cc::LayerTreeSettings& settings,
const base::CommandLine& cmd) {
- if (cmd.HasSwitch(cc::switches::kTopControlsShowThreshold)) {
+ if (cmd.HasSwitch(cc::switches::kBrowserControlsShowThreshold)) {
std::string top_threshold_str =
- cmd.GetSwitchValueASCII(cc::switches::kTopControlsShowThreshold);
+ cmd.GetSwitchValueASCII(cc::switches::kBrowserControlsShowThreshold);
double show_threshold;
if (base::StringToDouble(top_threshold_str, &show_threshold) &&
show_threshold >= 0.f && show_threshold <= 1.f)
settings.top_controls_show_threshold = show_threshold;
}
- if (cmd.HasSwitch(cc::switches::kTopControlsHideThreshold)) {
+ if (cmd.HasSwitch(cc::switches::kBrowserControlsHideThreshold)) {
std::string top_threshold_str =
- cmd.GetSwitchValueASCII(cc::switches::kTopControlsHideThreshold);
+ cmd.GetSwitchValueASCII(cc::switches::kBrowserControlsHideThreshold);
double hide_threshold;
if (base::StringToDouble(top_threshold_str, &hide_threshold) &&
hide_threshold >= 0.f && hide_threshold <= 1.f)
« no previous file with comments | « content/common/layer_tree_settings_factory.h ('k') | content/common/resize_params.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698