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

Unified Diff: components/signin/core/browser/signin_client.h

Issue 2442843002: Override SigninManager::SignOut if force-signin is enabled. (Closed)
Patch Set: Created 4 years, 1 month 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/signin/core/browser/signin_client.h
diff --git a/components/signin/core/browser/signin_client.h b/components/signin/core/browser/signin_client.h
index 99b37c49fbb8c8c332922bc556581f9d3c91f75a..6c2c17dc323ec35a8d0780427f0644a96c537d38 100644
--- a/components/signin/core/browser/signin_client.h
+++ b/components/signin/core/browser/signin_client.h
@@ -34,7 +34,7 @@ class SigninClient : public KeyedService {
// The subcription for cookie changed notifications.
class CookieChangedSubscription {
public:
- virtual ~CookieChangedSubscription() {};
+ virtual ~CookieChangedSubscription() {}
};
~SigninClient() override {}
@@ -97,6 +97,10 @@ class SigninClient : public KeyedService {
const std::string& username,
const std::string& password) {}
+ // Called before Google signout started, call |sign_out| to start the sign out
+ // process.
+ virtual void PreSignOut(const base::Callback<void()>& sign_out);
+
virtual bool IsFirstRun() const = 0;
virtual base::Time GetInstallDate() = 0;
@@ -120,6 +124,9 @@ class SigninClient : public KeyedService {
const std::string& source,
net::URLRequestContextGetter* getter) = 0;
+ // Called once the credentials has been copied to another SigninManager.
+ virtual void AfterCredentialsCopied() {}
+
protected:
// Returns device id that is scoped to single signin.
// Stores the ID in the kGoogleServicesSigninScopedDeviceId pref.
« no previous file with comments | « chrome/browser/ui/sync/one_click_signin_sync_starter.cc ('k') | components/signin/core/browser/signin_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698