Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5108)

Unified Diff: ash/system/network/network_state_list_detailed_view.cc

Issue 2876363004: Fix activation issues with SystemTrayBubble. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ash/system/tray/system_tray.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/network/network_state_list_detailed_view.cc
diff --git a/ash/system/network/network_state_list_detailed_view.cc b/ash/system/network/network_state_list_detailed_view.cc
index 9bb2996a76d0edef330e9745a9714a3be2509109..e53221b531049049c680f7fbd7d7a6ddb20f7234 100644
--- a/ash/system/network/network_state_list_detailed_view.cc
+++ b/ash/system/network/network_state_list_detailed_view.cc
@@ -127,7 +127,6 @@ class NetworkStateListDetailedView::InfoBubble
set_shadow(views::BubbleBorder::NO_ASSETS);
set_anchor_view_insets(gfx::Insets(0, 0, kBubbleMargin, 0));
set_notify_enter_exit_on_child(true);
- set_close_on_deactivate(true);
SetLayoutManager(new views::FillLayout());
AddChildView(content);
}
@@ -392,13 +391,8 @@ void NetworkStateListDetailedView::ToggleInfoBubble() {
bool NetworkStateListDetailedView::ResetInfoBubble() {
if (!info_bubble_)
return false;
- // After losing activation, the InfoBubble will be closed.
- owner()
- ->system_tray()
- ->GetSystemBubble()
- ->bubble_view()
- ->GetWidget()
- ->Activate();
+
+ info_bubble_->GetWidget()->Close();
return true;
}
« no previous file with comments | « no previous file | ash/system/tray/system_tray.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698