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

Unified Diff: chrome/browser/signin/chrome_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: chrome/browser/signin/chrome_signin_client.h
diff --git a/chrome/browser/signin/chrome_signin_client.h b/chrome/browser/signin/chrome_signin_client.h
index 5f9e089edbcd4289e9a5b9f9c9794a95c2b1f9c5..01a6f68a1be03d351f0195cad3ccc8c66b865e4f 100644
--- a/chrome/browser/signin/chrome_signin_client.h
+++ b/chrome/browser/signin/chrome_signin_client.h
@@ -77,6 +77,7 @@ class ChromeSigninClient
void PostSignedIn(const std::string& account_id,
const std::string& username,
const std::string& password) override;
+ void PreSignOut(const base::Callback<void()>& sign_out) override;
// SigninErrorController::Observer implementation.
void OnErrorChanged() override;
@@ -100,9 +101,16 @@ class ChromeSigninClient
override;
#endif
+ void OnCredentialsBeingCopied() override;
+
+ protected:
+ virtual void ShowUserManager(const base::FilePath& profile_path);
+ virtual void LockProfile(const base::FilePath& profile_path);
+
private:
void MaybeFetchSigninTokenHandle();
-
+ void OnCloseBrowsersSuccess(const base::Callback<void()>& sign_out,
+ const base::FilePath& profile_path);
Profile* profile_;
SigninErrorController* signin_error_controller_;
@@ -110,6 +118,9 @@ class ChromeSigninClient
std::list<base::Closure> delayed_callbacks_;
#endif
+ bool is_force_signin_enabled_;
+ bool is_user_manager_displayed_ = true;
+
std::unique_ptr<gaia::GaiaOAuthClient> oauth_client_;
std::unique_ptr<OAuth2TokenService::Request> oauth_request_;

Powered by Google App Engine
This is Rietveld 408576698