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

Unified Diff: chrome/browser/policy/user_cloud_policy_manager.h

Issue 10823208: Reverting this as it causes browser tests on the Linux ChromiumOS builder to fail. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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/policy/user_cloud_policy_manager.h
===================================================================
--- chrome/browser/policy/user_cloud_policy_manager.h (revision 150390)
+++ chrome/browser/policy/user_cloud_policy_manager.h (working copy)
@@ -13,7 +13,6 @@
#include "chrome/browser/policy/configuration_policy_provider.h"
class PrefService;
-class Profile;
namespace policy {
@@ -34,32 +33,23 @@
bool wait_for_policy_fetch);
virtual ~UserCloudPolicyManager();
- // Creates a UserCloudPolicyService instance associated with the passed
- // |profile|.
- static scoped_ptr<UserCloudPolicyManager> Create(Profile* profile,
- bool wait_for_policy_fetch);
+#if defined(OS_CHROMEOS)
+ // Creates a UserCloudPolicyService instance for the Chrome OS platform.
+ static scoped_ptr<UserCloudPolicyManager> Create(bool wait_for_policy_fetch);
+#endif
- // Initializes the cloud connection. |local_prefs| and |service| must stay
- // valid until Shutdown() gets called. Virtual for mocking.
- virtual void Initialize(PrefService* local_prefs,
- DeviceManagementService* service,
- UserAffiliation user_affiliation);
+ // Initializes the cloud connection. |prefs| and |service| must stay valid
+ // until Shutdown() gets called.
+ void Initialize(PrefService* prefs,
+ DeviceManagementService* service,
+ UserAffiliation user_affiliation);
+ void Shutdown();
- // Virtual for mocks.
- virtual void Shutdown();
-
// Cancels waiting for the policy fetch and flags the
// ConfigurationPolicyProvider ready (assuming all other initialization tasks
// have completed).
void CancelWaitForPolicyFetch();
- // Returns true if the underlying CloudPolicyClient is already registered.
- // Virtual for mocking.
- virtual bool IsClientRegistered() const;
-
- // Register the CloudPolicyClient using the passed OAuth token.
- void RegisterClient(const std::string& access_token);
-
CloudPolicyService* cloud_policy_service() { return service_.get(); }
// ConfigurationPolicyProvider:
« no previous file with comments | « chrome/browser/policy/config_dir_policy_loader.cc ('k') | chrome/browser/policy/user_cloud_policy_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698