Index: ash/system/tray/system_tray_bubble.cc |
diff --git a/ash/system/tray/system_tray_bubble.cc b/ash/system/tray/system_tray_bubble.cc |
index 15314c3024c1f236848139e85edef1caabca996a..ef3c293678058d316c467b21b5bf1a6a8b5dd85f 100644 |
--- a/ash/system/tray/system_tray_bubble.cc |
+++ b/ash/system/tray/system_tray_bubble.cc |
@@ -279,12 +279,11 @@ void SystemTrayBubble::InitView(views::View* anchor, |
if (bubble_type_ == BUBBLE_TYPE_DETAILED && |
init_params.max_height < kDetailedBubbleMaxHeight) { |
init_params.max_height = kDetailedBubbleMaxHeight; |
+ } else if (bubble_type_ == BUBBLE_TYPE_NOTIFICATION) { |
+ init_params.close_on_deactivate = false; |
} |
- |
bubble_view_ = TrayBubbleView::Create(anchor, this, init_params); |
- if (bubble_type_ == BUBBLE_TYPE_NOTIFICATION) |
- bubble_view_->set_close_on_deactivate(false); |
CreateItemViews(login_status); |