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

Unified Diff: ash/common/system/tray/tray_bubble_wrapper.cc

Issue 2726823003: Remove WmLookup. (Closed)
Patch Set: Clean up include and modify comment. Created 3 years, 10 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 | « ash/common/system/tray/tray_background_view.cc ('k') | ash/common/system/tray/tray_event_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/tray/tray_bubble_wrapper.cc
diff --git a/ash/common/system/tray/tray_bubble_wrapper.cc b/ash/common/system/tray/tray_bubble_wrapper.cc
index 9d993aee75439f91a0807c2b436682ced004e7e0..549504294e22ff051188274b2f58206585326309 100644
--- a/ash/common/system/tray/tray_bubble_wrapper.cc
+++ b/ash/common/system/tray/tray_bubble_wrapper.cc
@@ -6,7 +6,6 @@
#include "ash/common/system/tray/tray_background_view.h"
#include "ash/common/system/tray/tray_event_filter.h"
-#include "ash/common/wm_lookup.h"
#include "ash/common/wm_window.h"
#include "ui/views/bubble/tray_bubble_view.h"
#include "ui/views/widget/widget.h"
@@ -43,7 +42,7 @@ void TrayBubbleWrapper::OnWidgetDestroying(views::Widget* widget) {
// will invoke PerformAction which reopens the bubble again. To prevent the
// reopen, the mouse capture of |tray_| has to be released.
// See crbug.com/177075
- WmLookup::Get()->GetWindowForWidget(tray_->GetWidget())->ReleaseCapture();
+ WmWindow::Get(tray_->GetWidget()->GetNativeWindow())->ReleaseCapture();
tray_->HideBubbleWithView(bubble_view_); // May destroy |bubble_view_|
}
« no previous file with comments | « ash/common/system/tray/tray_background_view.cc ('k') | ash/common/system/tray/tray_event_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698