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

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
« no previous file with comments | « no previous file | chrome/browser/signin/chrome_signin_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..a5fbd35f494f443e5cc1546fb6af1193ec485f33 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,17 @@ class ChromeSigninClient
override;
#endif
+ void AfterCredentialsCopied() 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);
+ void OnCloseBrowsersAborted(const base::FilePath& profile_path);
Profile* profile_;
SigninErrorController* signin_error_controller_;
@@ -110,6 +119,9 @@ class ChromeSigninClient
std::list<base::Closure> delayed_callbacks_;
#endif
+ bool is_force_signin_enabled_;
+ bool should_display_user_manager_ = true;
+
std::unique_ptr<gaia::GaiaOAuthClient> oauth_client_;
std::unique_ptr<OAuth2TokenService::Request> oauth_request_;
« no previous file with comments | « no previous file | chrome/browser/signin/chrome_signin_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698