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

Unified Diff: chrome/browser/policy/profile_policy_connector_factory.cc

Issue 6979011: Move user cloud policy to BrowserProcess. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments by mnissler. Created 9 years, 6 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/profile_policy_connector_factory.cc
diff --git a/chrome/browser/policy/profile_policy_connector_factory.cc b/chrome/browser/policy/profile_policy_connector_factory.cc
deleted file mode 100644
index 5e89910179cda5f649b2ac7e4ff1d7f74e538cf8..0000000000000000000000000000000000000000
--- a/chrome/browser/policy/profile_policy_connector_factory.cc
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/policy/profile_policy_connector_factory.h"
-
-#include "chrome/browser/policy/profile_policy_connector.h"
-#include "chrome/browser/profiles/profile.h"
-#include "chrome/browser/profiles/profile_dependency_manager.h"
-
-namespace policy {
-
-// static
-ProfilePolicyConnector* ProfilePolicyConnectorFactory::GetForProfile(
- Profile* profile) {
- return static_cast<ProfilePolicyConnector*>(
- GetInstance()->GetServiceForProfile(profile, true));
-}
-
-// static
-ProfilePolicyConnectorFactory* ProfilePolicyConnectorFactory::GetInstance() {
- return Singleton<ProfilePolicyConnectorFactory>::get();
-}
-
-ProfilePolicyConnectorFactory::ProfilePolicyConnectorFactory()
- : ProfileKeyedServiceFactory(ProfileDependencyManager::GetInstance()) {
- // TODO(jknotten):
- // DependsOn(URLRequestContextGetterFactory::GetInstance());
- // DependsOn(PrefServiceFactory::GetInstance());
- // See comment in profile_policy_connector.h w.r.t. Shutdown()
-}
-
-ProfilePolicyConnectorFactory::~ProfilePolicyConnectorFactory() {
-}
-
-ProfileKeyedService* ProfilePolicyConnectorFactory::BuildServiceInstanceFor(
- Profile* profile) const {
- return new ProfilePolicyConnector(profile);
-}
-
-} // namespace policy
« no previous file with comments | « chrome/browser/policy/profile_policy_connector_factory.h ('k') | chrome/browser/policy/profile_policy_connector_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698