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

Unified Diff: chrome/browser/chromeos/login/user_manager.h

Issue 9355059: Renaming virtual setters/getters in UserManager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: year Created 8 years, 9 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: chrome/browser/chromeos/login/user_manager.h
diff --git a/chrome/browser/chromeos/login/user_manager.h b/chrome/browser/chromeos/login/user_manager.h
index cf27eafda1419509c69a82530c2d5993054bf4bd..2f4f5e6013295e7c4cb99a5630022cb7c3c5473f 100644
--- a/chrome/browser/chromeos/login/user_manager.h
+++ b/chrome/browser/chromeos/login/user_manager.h
@@ -89,8 +89,8 @@ class UserManager {
virtual const User* FindUser(const std::string& email) const = 0;
// Returns the logged-in user.
- virtual const User& logged_in_user() const = 0;
- virtual User& logged_in_user() = 0;
+ virtual const User& GetLoggedInUser() const = 0;
+ virtual User& GetLoggedInUser() = 0;
// Returns true if given display name is unique.
virtual bool IsDisplayNameUnique(const std::string& display_name) const = 0;
@@ -140,13 +140,14 @@ class UserManager {
// download times).
virtual void DownloadProfileImage(const std::string& reason) = 0;
- // Accessor for current_user_is_owner_
- virtual bool current_user_is_owner() const = 0;
- virtual void set_current_user_is_owner(bool current_user_is_owner) = 0;
+ // Returns true if current user is an owner.
+ virtual bool IsCurrentUserOwner() const = 0;
- // Accessor for current_user_is_new_.
- virtual bool current_user_is_new() const = 0;
- virtual bool user_is_logged_in() const = 0;
+ // Returns true if current user is not existing one (hasn't signed in before).
+ virtual bool IsCurrentUserNew() const = 0;
+
+ // Returns true if user is signed in.
+ virtual bool IsUserLoggedIn() const = 0;
// Returns true if we're logged in as a demo user.
virtual bool IsLoggedInAsDemoUser() const = 0;
@@ -161,7 +162,7 @@ class UserManager {
// Returns the result of the last successful profile image download, if any.
// Otherwise, returns an empty bitmap.
- virtual const SkBitmap& downloaded_profile_image() const = 0;
+ virtual const SkBitmap& DownloadedProfileImage() const = 0;
};
} // namespace chromeos
« no previous file with comments | « chrome/browser/chromeos/login/user_image_screen.cc ('k') | chrome/browser/chromeos/login/user_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698