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

Unified Diff: chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.h

Issue 148843002: Make an online wildcard login check for enterprise devices. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 6 years, 11 months 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/chromeos/policy/user_cloud_policy_manager_chromeos.h
diff --git a/chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.h b/chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.h
index a46d8f273140001e1718b17c4eb005f7af7bc0ca..3c402c332d2967ae36c5ae90e828c4ac4050b7b6 100644
--- a/chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.h
+++ b/chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.h
@@ -36,6 +36,7 @@ namespace policy {
class CloudExternalDataManager;
class DeviceManagementService;
class PolicyOAuth2TokenFetcher;
+class WildcardLoginChecker;
// UserCloudPolicyManagerChromeOS implements logic for initializing user policy
// on Chrome OS.
@@ -85,6 +86,10 @@ class UserCloudPolicyManagerChromeOS
// Returns true if the underlying CloudPolicyClient is already registered.
bool IsClientRegistered() const;
+ // Indicates a wildcard login check should be performed once an access token
+ // is available.
+ void EnableWildcardLoginCheck(const std::string& username);
+
// ConfigurationPolicyProvider:
virtual void Shutdown() OVERRIDE;
virtual bool IsInitializationComplete(PolicyDomain domain) const OVERRIDE;
@@ -132,6 +137,9 @@ class UserCloudPolicyManagerChromeOS
// Manages external data referenced by policies.
scoped_ptr<CloudExternalDataManager> external_data_manager_;
+ // Username for the wildcard login check if applicable, empty otherwise.
+ std::string wildcard_username_;
+
// Path where policy for components will be cached.
base::FilePath component_policy_cache_path_;
@@ -150,6 +158,9 @@ class UserCloudPolicyManagerChromeOS
// a callback with an unretained reference to the manager, when it exists.
scoped_ptr<PolicyOAuth2TokenFetcher> token_fetcher_;
+ // Keeps alive the wildcard checker while its running.
+ scoped_ptr<WildcardLoginChecker> wildcard_login_checker_;
+
// The access token passed to OnAccessTokenAvailable. It is stored here so
// that it can be used if OnInitializationCompleted is called later.
std::string access_token_;

Powered by Google App Engine
This is Rietveld 408576698