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

Side by Side Diff: chrome/browser/signin/chrome_signin_client.h

Issue 2478173003: Lock profile before sign in when force sign in is enabled. (Closed)
Patch Set: rogerta's comments 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_SIGNIN_CHROME_SIGNIN_CLIENT_H_ 5 #ifndef CHROME_BROWSER_SIGNIN_CHROME_SIGNIN_CLIENT_H_
6 #define CHROME_BROWSER_SIGNIN_CHROME_SIGNIN_CLIENT_H_ 6 #define CHROME_BROWSER_SIGNIN_CHROME_SIGNIN_CLIENT_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 #if !defined(OS_CHROMEOS) 98 #if !defined(OS_CHROMEOS)
99 // net::NetworkChangeController::NetworkChangeObserver implementation. 99 // net::NetworkChangeController::NetworkChangeObserver implementation.
100 void OnNetworkChanged(net::NetworkChangeNotifier::ConnectionType type) 100 void OnNetworkChanged(net::NetworkChangeNotifier::ConnectionType type)
101 override; 101 override;
102 #endif 102 #endif
103 103
104 void AfterCredentialsCopied() override; 104 void AfterCredentialsCopied() override;
105 105
106 protected: 106 protected:
107 virtual void ShowUserManager(const base::FilePath& profile_path); 107 virtual void ShowUserManager(const base::FilePath& profile_path);
108 virtual void LockProfile(const base::FilePath& profile_path); 108 virtual void LockForceSigninProfile(const base::FilePath& profile_path);
109 109
110 private: 110 private:
111 void MaybeFetchSigninTokenHandle(); 111 void MaybeFetchSigninTokenHandle();
112 void OnCloseBrowsersSuccess(const base::Callback<void()>& sign_out, 112 void OnCloseBrowsersSuccess(const base::Callback<void()>& sign_out,
113 const base::FilePath& profile_path); 113 const base::FilePath& profile_path);
114 void OnCloseBrowsersAborted(const base::FilePath& profile_path); 114 void OnCloseBrowsersAborted(const base::FilePath& profile_path);
115 Profile* profile_; 115 Profile* profile_;
116 116
117 SigninErrorController* signin_error_controller_; 117 SigninErrorController* signin_error_controller_;
118 #if !defined(OS_CHROMEOS) 118 #if !defined(OS_CHROMEOS)
119 std::list<base::Closure> delayed_callbacks_; 119 std::list<base::Closure> delayed_callbacks_;
120 #endif 120 #endif
121 121
122 bool is_force_signin_enabled_; 122 bool is_force_signin_enabled_;
123 bool should_display_user_manager_ = true; 123 bool should_display_user_manager_ = true;
124 124
125 std::unique_ptr<gaia::GaiaOAuthClient> oauth_client_; 125 std::unique_ptr<gaia::GaiaOAuthClient> oauth_client_;
126 std::unique_ptr<OAuth2TokenService::Request> oauth_request_; 126 std::unique_ptr<OAuth2TokenService::Request> oauth_request_;
127 127
128 DISALLOW_COPY_AND_ASSIGN(ChromeSigninClient); 128 DISALLOW_COPY_AND_ASSIGN(ChromeSigninClient);
129 }; 129 };
130 130
131 #endif // CHROME_BROWSER_SIGNIN_CHROME_SIGNIN_CLIENT_H_ 131 #endif // CHROME_BROWSER_SIGNIN_CHROME_SIGNIN_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_attributes_entry.cc ('k') | chrome/browser/signin/chrome_signin_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698