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

Unified Diff: chrome/browser/ui/ash/session_state_delegate_chromeos.cc

Issue 2910773002: cros: CustomFrameViewAsh avatar icon from a window prop (Closed)
Patch Set: add test 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 | « chrome/browser/ui/ash/session_state_delegate_chromeos.h ('k') | chrome/browser/ui/ash/session_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ash/session_state_delegate_chromeos.cc
diff --git a/chrome/browser/ui/ash/session_state_delegate_chromeos.cc b/chrome/browser/ui/ash/session_state_delegate_chromeos.cc
deleted file mode 100644
index 588c50e91f7ab0c597884ed622c8c517514c4aa9..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/ash/session_state_delegate_chromeos.cc
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright (c) 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/ui/ash/session_state_delegate_chromeos.h"
-
-#include "ash/content/shell_content_state.h"
-#include "ash/wm_window.h"
-#include "chrome/browser/chromeos/login/users/multi_profile_user_controller.h"
-#include "chrome/browser/ui/ash/multi_user/multi_user_window_manager.h"
-#include "chrome/browser/ui/ash/session_util.h"
-#include "ui/gfx/image/image_skia.h"
-
-SessionStateDelegateChromeos::SessionStateDelegateChromeos() {}
-
-SessionStateDelegateChromeos::~SessionStateDelegateChromeos() {}
-
-bool SessionStateDelegateChromeos::ShouldShowAvatar(
- ash::WmWindow* window) const {
- return chrome::MultiUserWindowManager::GetInstance()->ShouldShowAvatar(
- ash::WmWindow::GetAuraWindow(window));
-}
-
-gfx::ImageSkia SessionStateDelegateChromeos::GetAvatarImageForWindow(
- ash::WmWindow* window) const {
- content::BrowserContext* context =
- ash::ShellContentState::GetInstance()->GetBrowserContextForWindow(
- ash::WmWindow::GetAuraWindow(window));
- return GetAvatarImageForContext(context);
-}
« no previous file with comments | « chrome/browser/ui/ash/session_state_delegate_chromeos.h ('k') | chrome/browser/ui/ash/session_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698