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

Unified Diff: ash/shell/shell_delegate_impl.cc

Issue 379803004: Move UserInfo to user_manager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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
Index: ash/shell/shell_delegate_impl.cc
diff --git a/ash/shell/shell_delegate_impl.cc b/ash/shell/shell_delegate_impl.cc
index 289d769c9c26a658e3ff9ce2f4245db520f2a242..7a966f8b7c704411f996bab90a4044400d4548c7 100644
--- a/ash/shell/shell_delegate_impl.cc
+++ b/ash/shell/shell_delegate_impl.cc
@@ -11,7 +11,6 @@
#include "ash/media_delegate.h"
#include "ash/new_window_delegate.h"
#include "ash/session/session_state_delegate.h"
-#include "ash/session/user_info.h"
#include "ash/shell/context_menu.h"
#include "ash/shell/example_factory.h"
#include "ash/shell/keyboard_controller_proxy_stub.h"
@@ -22,6 +21,7 @@
#include "ash/wm/window_state.h"
#include "base/message_loop/message_loop.h"
#include "base/strings/utf_string_conversions.h"
+#include "components/user_manager/user_info.h"
#include "ui/aura/window.h"
#include "ui/wm/core/input_method_event_filter.h"
@@ -71,12 +71,12 @@ class MediaDelegateImpl : public MediaDelegate {
DISALLOW_COPY_AND_ASSIGN(MediaDelegateImpl);
};
-class UserInfoImpl : public UserInfo {
+class UserInfoImpl : public user_manager::UserInfo {
public:
UserInfoImpl() {}
virtual ~UserInfoImpl() {}
- // UserInfo:
+ // user_manager::UserInfo:
virtual base::string16 GetDisplayName() const OVERRIDE {
return base::UTF8ToUTF16("stub-user");
}
@@ -141,10 +141,11 @@ class SessionStateDelegateImpl : public SessionStateDelegate {
return IsActiveUserSessionStarted() ? SESSION_STATE_ACTIVE
: SESSION_STATE_LOGIN_PRIMARY;
}
- virtual const UserInfo* GetUserInfo(MultiProfileIndex index) const OVERRIDE {
+ virtual const user_manager::UserInfo* GetUserInfo(
+ MultiProfileIndex index) const OVERRIDE {
return user_info_.get();
}
- virtual const UserInfo* GetUserInfo(
+ virtual const user_manager::UserInfo* GetUserInfo(
content::BrowserContext* context) const OVERRIDE {
return user_info_.get();
}
@@ -162,7 +163,7 @@ class SessionStateDelegateImpl : public SessionStateDelegate {
bool screen_locked_;
// A pseudo user info.
- scoped_ptr<UserInfo> user_info_;
+ scoped_ptr<user_manager::UserInfo> user_info_;
DISALLOW_COPY_AND_ASSIGN(SessionStateDelegateImpl);
};

Powered by Google App Engine
This is Rietveld 408576698