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

Unified Diff: components/user_manager/user_manager_base.h

Issue 1025663002: Implement oauth token external handler checking. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update fake user manager Created 5 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: components/user_manager/user_manager_base.h
diff --git a/components/user_manager/user_manager_base.h b/components/user_manager/user_manager_base.h
index 4faae77f2dfcae083f1bc3493512e7e202ca8de1..ef662b531a2bbd5069837d50f650ae02cfde71e5 100644
--- a/components/user_manager/user_manager_base.h
+++ b/components/user_manager/user_manager_base.h
@@ -105,6 +105,11 @@ class USER_MANAGER_EXPORT UserManagerBase : public UserManager {
UserManager::UserSessionStateObserver* obs) override;
void NotifyLocalStateChanged() override;
void ChangeUserChildStatus(User* user, bool is_child) override;
+ bool FindKnownUserPrefs(const UserID& user_id,
+ const base::DictionaryValue** out_value) override;
+ void UpdateKnownUserPrefs(const UserID& user_id,
+ const base::DictionaryValue& values,
+ bool clear) override;
virtual void SetIsCurrentUserNew(bool is_new);
@@ -202,21 +207,6 @@ class USER_MANAGER_EXPORT UserManagerBase : public UserManager {
// avatar, OAuth token status, display name, display email).
virtual void RemoveNonCryptohomeData(const std::string& user_id);
- // Methods for storage/retrieval of per-user properties in Local State.
-
- // Performs a lookup of properties associated with |user_id|. If found,
- // returns |true| and fills |out_value|. |out_value| can be NULL, if
- // only existence check is required.
- bool FindKnowUserPrefs(const UserID& user_id,
- const base::DictionaryValue** out_value);
-
- // Updates (or creates) properties associated with |user_id| based
- // on |values|. |clear| defines if existing properties are cleared (|true|)
- // or if it is just a incremental update (|false|).
- void UpdateKnowUserPrefs(const UserID& user_id,
- const base::DictionaryValue& values,
- bool clear);
-
// Check for a particular user type.
// Returns true if |user_id| represents demo app.
@@ -343,7 +333,7 @@ class USER_MANAGER_EXPORT UserManagerBase : public UserManager {
scoped_ptr<std::string> resolved_locale);
// Removes all user preferences associated with |user_id|.
- void RemoveKnowUserPrefs(const UserID& user_id);
+ void RemoveKnownUserPrefs(const UserID& user_id);
// Indicates stage of loading user from prefs.
UserLoadStage user_loading_stage_;

Powered by Google App Engine
This is Rietveld 408576698