| Index: chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc
|
| diff --git a/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc b/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc
|
| index 929bc24ba6c919519d96de0d4ff9ed4a2ac2b931..984adf5f1c8e7713da0083796c14afe348050a64 100644
|
| --- a/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc
|
| +++ b/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc
|
| @@ -1669,7 +1669,12 @@ void ChromeLauncherControllerImpl::ShelfItemChanged(
|
| // ash::WindowTreeHostManager::Observer:
|
|
|
| void ChromeLauncherControllerImpl::OnDisplayConfigurationChanged() {
|
| - SetShelfBehaviorsFromPrefs();
|
| + // In BOTTOM_LOCKED state, ignore the call of SetShelfBehaviorsFromPrefs.
|
| + // Because it might be called by some operations, like crbug.com/627040
|
| + // rotating screen.
|
| + ash::Shelf* shelf = ash::Shelf::ForPrimaryDisplay();
|
| + if (!shelf || shelf->alignment() != ash::SHELF_ALIGNMENT_BOTTOM_LOCKED)
|
| + SetShelfBehaviorsFromPrefs();
|
| }
|
|
|
| ///////////////////////////////////////////////////////////////////////////////
|
|
|