| Index: cc/trees/layer_tree_host.cc
|
| diff --git a/cc/trees/layer_tree_host.cc b/cc/trees/layer_tree_host.cc
|
| index eca231158eead4edd5594d65a59c194be70434b2..5b656a8f7363adb04b77919df722098ecb258218 100644
|
| --- a/cc/trees/layer_tree_host.cc
|
| +++ b/cc/trees/layer_tree_host.cc
|
| @@ -448,11 +448,8 @@ scoped_ptr<LayerTreeHostImpl> LayerTreeHost::CreateLayerTreeHostImpl(
|
| host_impl->SetUseGpuRasterization(UseGpuRasterization());
|
| shared_bitmap_manager_ = NULL;
|
| gpu_memory_buffer_manager_ = NULL;
|
| - if (settings_.calculate_top_controls_position &&
|
| - host_impl->top_controls_manager()) {
|
| - top_controls_manager_weak_ptr_ =
|
| - host_impl->top_controls_manager()->AsWeakPtr();
|
| - }
|
| + top_controls_manager_weak_ptr_ =
|
| + host_impl->top_controls_manager()->AsWeakPtr();
|
| input_handler_weak_ptr_ = host_impl->AsWeakPtr();
|
| return host_impl.Pass();
|
| }
|
| @@ -1131,9 +1128,6 @@ void LayerTreeHost::SetDeviceScaleFactor(float device_scale_factor) {
|
| void LayerTreeHost::UpdateTopControlsState(TopControlsState constraints,
|
| TopControlsState current,
|
| bool animate) {
|
| - if (!settings_.calculate_top_controls_position)
|
| - return;
|
| -
|
| // Top controls are only used in threaded mode.
|
| proxy_->ImplThreadTaskRunner()->PostTask(
|
| FROM_HERE,
|
|
|