| 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 14de9bf3712953bf0c67db9e3156dc7e2f7682c0..d384ac7eadcbe97cbeb9d6ede8abb1ac1ecce83a 100644
|
| --- a/cc/trees/layer_tree_host_impl_unittest.cc
|
| +++ b/cc/trees/layer_tree_host_impl_unittest.cc
|
| @@ -2446,7 +2446,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(),
|
| @@ -2457,7 +2456,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);
|
| }
|
| @@ -7455,7 +7454,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_);
|
|
|