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

Unified Diff: ash/frame/custom_frame_view_ash.cc

Issue 2042333002: mash: Migrate SessionStateDelegate interface to wm common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove semicolon Created 4 years, 6 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/session/session_state_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/frame/custom_frame_view_ash.cc
diff --git a/ash/frame/custom_frame_view_ash.cc b/ash/frame/custom_frame_view_ash.cc
index 0a1a5644b934db6c07b7d9e6f41cf0c99d83e127..78c4c159e79b7b0417f25006659c2bcddaf45c12 100644
--- a/ash/frame/custom_frame_view_ash.cc
+++ b/ash/frame/custom_frame_view_ash.cc
@@ -12,6 +12,7 @@
#include "ash/common/wm/window_state.h"
#include "ash/common/wm/window_state_delegate.h"
#include "ash/common/wm/window_state_observer.h"
+#include "ash/common/wm_lookup.h"
#include "ash/frame/caption_buttons/frame_caption_button_container_view.h"
#include "ash/frame/default_header_painter.h"
#include "ash/frame/frame_border_hit_test_controller.h"
@@ -249,7 +250,7 @@ int CustomFrameViewAsh::HeaderView::GetMinimumWidth() const {
void CustomFrameViewAsh::HeaderView::UpdateAvatarIcon() {
SessionStateDelegate* delegate =
Shell::GetInstance()->session_state_delegate();
- aura::Window* window = frame_->GetNativeView();
+ WmWindow* window = WmLookup::Get()->GetWindowForWidget(frame_);
bool show = delegate->ShouldShowAvatar(window);
if (!show) {
if (!avatar_icon_)
« no previous file with comments | « no previous file | ash/session/session_state_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698