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

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

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.h
diff --git a/chrome/browser/policy/profile_policy_connector_factory.h b/chrome/browser/policy/profile_policy_connector_factory.h
deleted file mode 100644
index b5a771ba02a6435a971060c6a441f3767eb1eca7..0000000000000000000000000000000000000000
--- a/chrome/browser/policy/profile_policy_connector_factory.h
+++ /dev/null
@@ -1,44 +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.
-#ifndef CHROME_BROWSER_POLICY_PROFILE_POLICY_CONNECTOR_FACTORY_H_
-#define CHROME_BROWSER_POLICY_PROFILE_POLICY_CONNECTOR_FACTORY_H_
-
-#include "base/compiler_specific.h"
-#include "base/memory/singleton.h"
-#include "chrome/browser/profiles/profile_keyed_service_factory.h"
-
-class Profile;
-
-namespace policy {
-
-class ProfilePolicyConnector;
-
-// Singleton that owns all ProfilePolicyConnectors and associates them with
-// Profiles. Listens for the Profile's destruction notification and cleans up
-// the associated ProfilePolicyConnector.
-
-class ProfilePolicyConnectorFactory : public ProfileKeyedServiceFactory {
- public:
- // Returns the ProfilePolicyConnector that contains profile-specific
- // policy bits for |profile|.
- static ProfilePolicyConnector* GetForProfile(Profile* profile);
-
- static ProfilePolicyConnectorFactory* GetInstance();
-
- private:
- friend struct DefaultSingletonTraits<ProfilePolicyConnectorFactory>;
-
- ProfilePolicyConnectorFactory();
- virtual ~ProfilePolicyConnectorFactory();
-
- // ProfileKeyedServiceFactory:
- virtual ProfileKeyedService* BuildServiceInstanceFor(
- Profile* profile) const OVERRIDE;
-
- DISALLOW_COPY_AND_ASSIGN(ProfilePolicyConnectorFactory);
-};
-
-} // namespace policy
-
-#endif // CHROME_BROWSER_POLICY_PROFILE_POLICY_CONNECTOR_FACTORY_H_
« no previous file with comments | « chrome/browser/policy/profile_policy_connector.cc ('k') | chrome/browser/policy/profile_policy_connector_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698