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

Unified Diff: ash/common/frame/header_view.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/frame/header_painter_util.cc ('k') | ash/common/metrics/pointer_metrics_recorder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/frame/header_view.cc
diff --git a/ash/common/frame/header_view.cc b/ash/common/frame/header_view.cc
index 15d5ba2053111bbf04fa107e29ff0236e8c18575..fbd326ad7227eddcda8211e292c0b060bcbc8aff 100644
--- a/ash/common/frame/header_view.cc
+++ b/ash/common/frame/header_view.cc
@@ -7,8 +7,8 @@
#include "ash/common/frame/caption_buttons/frame_caption_button_container_view.h"
#include "ash/common/frame/default_header_painter.h"
#include "ash/common/session/session_state_delegate.h"
-#include "ash/common/wm_lookup.h"
#include "ash/common/wm_shell.h"
+#include "ash/common/wm_window.h"
#include "ui/gfx/canvas.h"
#include "ui/views/controls/image_view.h"
#include "ui/views/widget/widget.h"
@@ -65,7 +65,7 @@ int HeaderView::GetMinimumWidth() const {
void HeaderView::UpdateAvatarIcon() {
SessionStateDelegate* delegate = WmShell::Get()->GetSessionStateDelegate();
- WmWindow* window = WmLookup::Get()->GetWindowForWidget(target_widget_);
+ WmWindow* window = WmWindow::Get(target_widget_->GetNativeWindow());
bool show = delegate->ShouldShowAvatar(window);
if (!show) {
if (!avatar_icon_)
« no previous file with comments | « ash/common/frame/header_painter_util.cc ('k') | ash/common/metrics/pointer_metrics_recorder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698