Commit 22482ccf authored by Xiaohui Chen's avatar Xiaohui Chen Committed by Commit Bot

Remove duplicate set bounds for wallpaper

The window containers for wallpaper all have fill layout, there is no
need to set the bounds manually.

Bug: None
Test: manual and unit test
Change-Id: I60cd9940ec64ab4afe924377cabe8dd7b6b6e908
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2406670Reviewed-by: default avatarXiaoqian Dai <xdai@chromium.org>
Commit-Queue: Xiaohui Chen <xiaohuic@chromium.org>
Cr-Commit-Position: refs/heads/master@{#806711}
parent 3cdaa931
...@@ -256,9 +256,6 @@ std::unique_ptr<views::Widget> CreateWallpaperWidget( ...@@ -256,9 +256,6 @@ std::unique_ptr<views::Widget> CreateWallpaperWidget(
::wm::ANIMATE_NONE); ::wm::ANIMATE_NONE);
} }
aura::Window* container = root_window->GetChildById(container_id);
wallpaper_widget->SetBounds(container->bounds());
return wallpaper_widget; return wallpaper_widget;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment