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

Unified Diff: chrome/browser/policy/browser_policy_connector.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
« no previous file with comments | « chrome/browser/policy/auto_enrollment_client.cc ('k') | chrome/browser/policy/browser_policy_connector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/browser_policy_connector.h
===================================================================
--- chrome/browser/policy/browser_policy_connector.h (revision 150390)
+++ chrome/browser/policy/browser_policy_connector.h (working copy)
@@ -48,14 +48,9 @@
// policy system running.
void Init();
- // Creates a UserCloudPolicyManager for the given profile, or returns NULL if
- // it is not supported on this platform. Ownership is transferred to the
- // caller.
- scoped_ptr<UserCloudPolicyManager> CreateCloudPolicyManager(Profile* profile);
-
// Creates a new policy service for the given profile, or a global one if
// it is NULL. Ownership is transferred to the caller.
- scoped_ptr<PolicyService> CreatePolicyService(Profile* profile);
+ PolicyService* CreatePolicyService(Profile* profile);
// Returns a weak pointer to the CloudPolicySubsystem corresponding to the
// device policy managed by this policy connector, or NULL if no such
@@ -145,10 +140,6 @@
AppPackUpdater* GetAppPackUpdater();
- DeviceManagementService* device_management_service() {
- return device_management_service_.get();
- }
-
// Sets a |provider| that will be included in PolicyServices returned by
// CreatePolicyService. This is a static method because local state is
// created immediately after the connector, and tests don't have a chance to
@@ -157,10 +148,6 @@
static void SetPolicyProviderForTesting(
ConfigurationPolicyProvider* provider);
- // Gets the URL of the DM server (either the default or a URL provided via the
- // command line).
- static std::string GetDeviceManagementUrl();
-
private:
// content::NotificationObserver method overrides:
virtual void Observe(int type,
@@ -203,6 +190,7 @@
scoped_ptr<DeviceManagementService> device_management_service_;
ProxyPolicyProvider user_cloud_policy_provider_;
+ scoped_ptr<UserCloudPolicyManager> user_cloud_policy_manager_;
// Used to initialize the device policy subsystem once the message loops
// are spinning.
« no previous file with comments | « chrome/browser/policy/auto_enrollment_client.cc ('k') | chrome/browser/policy/browser_policy_connector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698