diff options
author | jknotten@chromium.org <jknotten@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-27 12:52:54 +0000 |
---|---|---|
committer | jknotten@chromium.org <jknotten@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-27 12:52:54 +0000 |
commit | d9ee002cc2c99761bb7d74d7c127d78aae3d8fe1 (patch) | |
tree | fde239b058bcca809acb9186e7969904b7f332bb /chrome/browser/policy/browser_policy_connector.cc | |
parent | b0fd74233c3b8d6c4cc9c32484b86e8d6a707706 (diff) | |
download | chromium_src-d9ee002cc2c99761bb7d74d7c127d78aae3d8fe1.zip chromium_src-d9ee002cc2c99761bb7d74d7c127d78aae3d8fe1.tar.gz chromium_src-d9ee002cc2c99761bb7d74d7c127d78aae3d8fe1.tar.bz2 |
Profile shouldn't own ProfilePolicyConnector. Introduce BrowserPolicyConnector::Create.
ProfilePolicyConnector is now owned by ProfilePolicyConnectorFactory, using
Profile has a key. This uses the ProfileKeyedService infrastructure originally
created for ThemeServiceFactory.
Also introduce BrowserPolicyConnector::Create method to faciliate stubbing out
for binary-size reduction purposes.
BUG=77155
TEST=Existing
Review URL: http://codereview.chromium.org/6902036
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83143 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/policy/browser_policy_connector.cc')
-rw-r--r-- | chrome/browser/policy/browser_policy_connector.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/policy/browser_policy_connector.cc b/chrome/browser/policy/browser_policy_connector.cc index 0dfc086..701fa04 100644 --- a/chrome/browser/policy/browser_policy_connector.cc +++ b/chrome/browser/policy/browser_policy_connector.cc @@ -31,6 +31,11 @@ namespace policy { +// static +BrowserPolicyConnector* BrowserPolicyConnector::Create() { + return new BrowserPolicyConnector(); +} + BrowserPolicyConnector::BrowserPolicyConnector() : ALLOW_THIS_IN_INITIALIZER_LIST(method_factory_(this)) { managed_platform_provider_.reset(CreateManagedPlatformProvider()); |