Index: ash/wm/system_modal_container_layout_manager.cc |
diff --git a/ash/wm/system_modal_container_layout_manager.cc b/ash/wm/system_modal_container_layout_manager.cc |
index 42cbb05dd8ede6e2fde35c7d4bd9a7123e2d956f..0b774b278584c4b256b5d02a9123320b9fd1251d 100644 |
--- a/ash/wm/system_modal_container_layout_manager.cc |
+++ b/ash/wm/system_modal_container_layout_manager.cc |
@@ -160,7 +160,10 @@ void SystemModalContainerLayoutManager::CreateModalBackground() { |
contents_view->set_background( |
views::Background::CreateSolidBackground(SK_ColorBLACK)); |
modal_background_->SetContentsView(contents_view); |
- modal_background_->GetNativeView()->layer()->SetOpacity(0.0f); |
+ // The layer should at the beginning be invisible and fade then in. Since |
+ // the visibility is true an opacity of 0.0 would be illegal and Show() |
+ // will complaint, we have to start with a slightly bigger value. |
+ modal_background_->GetNativeView()->layer()->SetOpacity(0.001f); |
} |
ui::ScopedLayerAnimationSettings settings( |