Index: cc/trees/layer_tree_host_impl_unittest.cc |
diff --git a/cc/trees/layer_tree_host_impl_unittest.cc b/cc/trees/layer_tree_host_impl_unittest.cc |
index b5e3a813449eae773c77e5fe65a5f7aaed08053e..7ffa6831a92d75042bbcd3437802578bf00ed521 100644 |
--- a/cc/trees/layer_tree_host_impl_unittest.cc |
+++ b/cc/trees/layer_tree_host_impl_unittest.cc |
@@ -2473,7 +2473,6 @@ class LayerTreeHostImplTopControlsTest : public LayerTreeHostImplTest { |
: layer_size_(10, 10), |
clip_size_(layer_size_), |
top_controls_height_(50) { |
- settings_.calculate_top_controls_position = true; |
settings_.use_pinch_virtual_viewport = true; |
viewport_size_ = gfx::Size(clip_size_.width(), |
@@ -2484,7 +2483,7 @@ class LayerTreeHostImplTopControlsTest : public LayerTreeHostImplTest { |
scoped_ptr<OutputSurface> output_surface) override { |
bool init = |
LayerTreeHostImplTest::CreateHostImpl(settings, output_surface.Pass()); |
- if (init && settings.calculate_top_controls_position) { |
+ if (init) { |
host_impl_->active_tree()->set_top_controls_height(top_controls_height_); |
host_impl_->active_tree()->SetCurrentTopControlsShownRatio(1.f); |
} |
@@ -7426,7 +7425,6 @@ class LayerTreeHostImplWithTopControlsTest : public LayerTreeHostImplTest { |
public: |
void SetUp() override { |
LayerTreeSettings settings = DefaultSettings(); |
- settings.calculate_top_controls_position = true; |
CreateHostImpl(settings, CreateOutputSurface()); |
host_impl_->active_tree()->set_top_controls_height(top_controls_height_); |
host_impl_->sync_tree()->set_top_controls_height(top_controls_height_); |