Chromium Code Reviews| Index: ash/mus/bridge/wm_shell_mus.cc |
| diff --git a/ash/mus/bridge/wm_shell_mus.cc b/ash/mus/bridge/wm_shell_mus.cc |
| index 4d72c9026b409cb153f21e4c1a3e96f3e295d430..2e531bb6d170419f3a3db4dcb9e049a8d160d436 100644 |
| --- a/ash/mus/bridge/wm_shell_mus.cc |
| +++ b/ash/mus/bridge/wm_shell_mus.cc |
| @@ -54,37 +54,11 @@ namespace { |
| // of SessionStateDelegate. |
| class SessionStateDelegateStub : public SessionStateDelegate { |
| public: |
| - SessionStateDelegateStub() |
| - : screen_locked_(false), user_info_(new user_manager::UserInfoImpl()) {} |
| + SessionStateDelegateStub() : user_info_(new user_manager::UserInfoImpl()) {} |
| ~SessionStateDelegateStub() override {} |
| // SessionStateDelegate: |
| - int GetMaximumNumberOfLoggedInUsers() const override { return 3; } |
| - int NumberOfLoggedInUsers() const override { return 1; } |
| - bool IsActiveUserSessionStarted() const override { return true; } |
| - bool CanLockScreen() const override { |
| - // The Chrome OS session_manager process currently rejects screen-lock |
| - // requests due to no user being logged in. |
| - return false; |
| - } |
| - bool IsScreenLocked() const override { return screen_locked_; } |
| - bool ShouldLockScreenAutomatically() const override { return false; } |
| - void LockScreen() override { |
| - screen_locked_ = true; |
| - NOTIMPLEMENTED(); |
| - } |
| - void UnlockScreen() override { |
| - NOTIMPLEMENTED(); |
| - screen_locked_ = false; |
| - } |
| - bool IsUserSessionBlocked() const override { return false; } |
| - session_manager::SessionState GetSessionState() const override { |
| - return session_manager::SessionState::ACTIVE; |
|
James Cook
2017/03/17 17:14:36
Hooray, mash will be happier with this change!
|
| - } |
| - const user_manager::UserInfo* GetUserInfo(UserIndex index) const override { |
| - return user_info_.get(); |
| - } |
| bool ShouldShowAvatar(WmWindow* window) const override { |
| NOTIMPLEMENTED(); |
| return !user_info_->GetImage().isNull(); |
| @@ -93,18 +67,8 @@ class SessionStateDelegateStub : public SessionStateDelegate { |
| NOTIMPLEMENTED(); |
| return gfx::ImageSkia(); |
| } |
| - void SwitchActiveUser(const AccountId& account_id) override {} |
| - void CycleActiveUser(CycleUserDirection direction) override {} |
| - bool IsMultiProfileAllowedByPrimaryUserPolicy() const override { |
| - return true; |
| - } |
| - void AddSessionStateObserver(ash::SessionStateObserver* observer) override {} |
| - void RemoveSessionStateObserver( |
| - ash::SessionStateObserver* observer) override {} |
| private: |
| - bool screen_locked_; |
| - |
| // A pseudo user info. |
| std::unique_ptr<user_manager::UserInfo> user_info_; |