diff options
Diffstat (limited to 'chromium/components/signin/core/browser/signin_manager.h')
-rw-r--r-- | chromium/components/signin/core/browser/signin_manager.h | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/chromium/components/signin/core/browser/signin_manager.h b/chromium/components/signin/core/browser/signin_manager.h index 5efd7f4bfc2..c70c9d93b6b 100644 --- a/chromium/components/signin/core/browser/signin_manager.h +++ b/chromium/components/signin/core/browser/signin_manager.h @@ -30,16 +30,13 @@ #include "components/keyed_service/core/keyed_service.h" #include "components/prefs/pref_change_registrar.h" #include "components/prefs/pref_member.h" -#include "components/signin/core/browser/account_consistency_method.h" #include "components/signin/core/browser/account_info.h" #include "components/signin/core/browser/account_tracker_service.h" #include "components/signin/core/browser/profile_oauth2_token_service.h" -#include "components/signin/core/browser/signin_client.h" #include "components/signin/core/browser/signin_manager_base.h" #include "components/signin/core/browser/signin_metrics.h" #include "net/cookies/canonical_cookie.h" -class GaiaCookieManagerService; class PrefService; namespace identity { @@ -49,16 +46,6 @@ class IdentityManager; class SigninManager : public SigninManagerBase, public OAuth2TokenService::Observer { public: - // Used to remove accounts from the token service and the account tracker. - enum class RemoveAccountsOption { - // Do not remove accounts. - kKeepAllAccounts, - // Remove all the accounts. - kRemoveAllAccounts, - // Removes the authenticated account if it is in authentication error. - kRemoveAuthenticatedAccountIfInError - }; - // This is used to distinguish URLs belonging to the special web signin flow // running in the special signin process from other URLs on the same domain. // We do not grant WebUI privilieges / bindings to this process or to URLs of @@ -78,30 +65,6 @@ class SigninManager : public SigninManagerBase, // are actually SigninManager instances. static SigninManager* FromSigninManagerBase(SigninManagerBase* manager); - // Signs a user out, removing the preference, erasing all keys - // associated with the authenticated user, and canceling all auth in progress. - // On mobile and on desktop pre-DICE, this also removes all accounts from - // Chrome by revoking all refresh tokens. - // On desktop with DICE enabled, this will remove the authenticated account - // from Chrome only if it is in authentication error. No other accounts are - // removed. - void SignOut(signin_metrics::ProfileSignout signout_source_metric, - signin_metrics::SignoutDelete signout_delete_metric); - - // Signs a user out, removing the preference, erasing all keys - // associated with the authenticated user, and canceling all auth in progress. - // It removes all accounts from Chrome by revoking all refresh tokens. - void SignOutAndRemoveAllAccounts( - signin_metrics::ProfileSignout signout_source_metric, - signin_metrics::SignoutDelete signout_delete_metric); - - // Signs a user out, removing the preference, erasing all keys - // associated with the authenticated user, and canceling all auth in progress. - // Does not remove the accounts from the token service. - void SignOutAndKeepAllAccounts( - signin_metrics::ProfileSignout signout_source_metric, - signin_metrics::SignoutDelete signout_delete_metric); - // On platforms where SigninManager is responsible for dealing with // invalid username policy updates, we need to check this during // initialization and sign the user out. @@ -121,14 +84,6 @@ class SigninManager : public SigninManagerBase, // Sets whether sign-in is allowed or not. void SetSigninAllowed(bool allowed); - protected: - // The sign out process which is started by SigninClient::PreSignOut() - virtual void OnSignoutDecisionReached( - signin_metrics::ProfileSignout signout_source_metric, - signin_metrics::SignoutDelete signout_delete_metric, - RemoveAccountsOption remove_option, - SigninClient::SignoutDecision signout_decision); - private: friend class identity::IdentityManager; FRIEND_TEST_ALL_PREFIXES(SigninManagerTest, Prohibited); @@ -137,26 +92,15 @@ class SigninManager : public SigninManagerBase, // Send all observers |GoogleSigninSucceeded| notifications. void FireGoogleSigninSucceeded(); - // Send all observers |GoogleSignedOut| notifications. - void FireGoogleSignedOut(const AccountInfo& account_info); - // OAuth2TokenService::Observer: void OnRefreshTokensLoaded() override; - // Starts the sign out process. - void StartSignOut(signin_metrics::ProfileSignout signout_source_metric, - signin_metrics::SignoutDelete signout_delete_metric, - RemoveAccountsOption remove_option); - void OnSigninAllowedPrefChanged(); void OnGoogleServicesUsernamePatternChanged(); // Returns true if the passed username is allowed by policy. bool IsAllowedUsername(const std::string& username) const; - // Object used to use the token to push a GAIA cookie into the cookie jar. - GaiaCookieManagerService* cookie_manager_service_; - // Helper object to listen for changes to signin preferences stored in non- // profile-specific local prefs (like kGoogleServicesUsernamePattern). PrefChangeRegistrar local_state_pref_registrar_; @@ -164,8 +108,6 @@ class SigninManager : public SigninManagerBase, // Helper object to listen for changes to the signin allowed preference. BooleanPrefMember signin_allowed_; - signin::AccountConsistencyMethod account_consistency_; - base::WeakPtrFactory<SigninManager> weak_pointer_factory_; DISALLOW_COPY_AND_ASSIGN(SigninManager); |