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

Unified Diff: ash/mus/shell_delegate_mus.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 | « ash/mus/shell_delegate_mus.h ('k') | ash/mus/window_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/shell_delegate_mus.cc
diff --git a/ash/mus/shell_delegate_mus.cc b/ash/mus/shell_delegate_mus.cc
index b068bc95b90043fd1c8bd34d19f77e5451e5b6a6..744ec665c27d2721d16c30258422242c142ed760 100644
--- a/ash/mus/shell_delegate_mus.cc
+++ b/ash/mus/shell_delegate_mus.cc
@@ -12,7 +12,6 @@
#include "ash/mus/system_tray_delegate_mus.h"
#include "ash/mus/wallpaper_delegate_mus.h"
#include "ash/palette_delegate.h"
-#include "ash/session/session_state_delegate.h"
#include "base/memory/ptr_util.h"
#include "base/strings/string16.h"
#include "base/strings/string_util.h"
@@ -20,32 +19,6 @@
#include "ui/gfx/image/image.h"
namespace ash {
-namespace {
-
-class SessionStateDelegateStub : public SessionStateDelegate {
- public:
- SessionStateDelegateStub() : user_info_(new user_manager::UserInfoImpl()) {}
-
- ~SessionStateDelegateStub() override {}
-
- // SessionStateDelegate:
- bool ShouldShowAvatar(WmWindow* window) const override {
- NOTIMPLEMENTED();
- return !user_info_->GetImage().isNull();
- }
- gfx::ImageSkia GetAvatarImageForWindow(WmWindow* window) const override {
- NOTIMPLEMENTED();
- return gfx::ImageSkia();
- }
-
- private:
- // A pseudo user info.
- std::unique_ptr<user_manager::UserInfo> user_info_;
-
- DISALLOW_COPY_AND_ASSIGN(SessionStateDelegateStub);
-};
-
-} // namespace
ShellDelegateMus::ShellDelegateMus(service_manager::Connector* connector)
: connector_(connector) {}
@@ -118,12 +91,6 @@ std::unique_ptr<WallpaperDelegate> ShellDelegateMus::CreateWallpaperDelegate() {
return base::MakeUnique<WallpaperDelegateMus>();
}
-SessionStateDelegate* ShellDelegateMus::CreateSessionStateDelegate() {
- // TODO: http://crbug.com/647416.
- NOTIMPLEMENTED() << " Using a stub SessionStateDeleagte implementation";
- return new SessionStateDelegateStub;
-}
-
AccessibilityDelegate* ShellDelegateMus::CreateAccessibilityDelegate() {
return new AccessibilityDelegateMus(connector_);
}
« no previous file with comments | « ash/mus/shell_delegate_mus.h ('k') | ash/mus/window_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698