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

Unified Diff: components/policy/core/common/policy_service_impl.h

Issue 109743002: Move policy code into components/policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moar fixes Created 7 years 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: components/policy/core/common/policy_service_impl.h
diff --git a/chrome/browser/policy/policy_service_impl.h b/components/policy/core/common/policy_service_impl.h
similarity index 90%
rename from chrome/browser/policy/policy_service_impl.h
rename to components/policy/core/common/policy_service_impl.h
index 1628df5648dae87e1907008da00109ce89e4be5e..a10e881a2b0fd49d1e599f356b10511fa77ce042 100644
--- a/chrome/browser/policy/policy_service_impl.h
+++ b/components/policy/core/common/policy_service_impl.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_POLICY_POLICY_SERVICE_IMPL_H_
-#define CHROME_BROWSER_POLICY_POLICY_SERVICE_IMPL_H_
+#ifndef COMPONENTS_POLICY_CORE_COMMON_POLICY_SERVICE_IMPL_H_
+#define COMPONENTS_POLICY_CORE_COMMON_POLICY_SERVICE_IMPL_H_
#include <map>
#include <set>
@@ -14,16 +14,18 @@
#include "base/callback.h"
#include "base/memory/weak_ptr.h"
#include "base/observer_list.h"
-#include "chrome/browser/policy/policy_service.h"
#include "components/policy/core/common/configuration_policy_provider.h"
#include "components/policy/core/common/policy_bundle.h"
+#include "components/policy/core/common/policy_service.h"
+#include "components/policy/policy_export.h"
namespace policy {
class PolicyMap;
-class PolicyServiceImpl : public PolicyService,
- public ConfigurationPolicyProvider::Observer {
+class POLICY_EXPORT PolicyServiceImpl
+ : public PolicyService,
+ public ConfigurationPolicyProvider::Observer {
public:
typedef std::vector<ConfigurationPolicyProvider*> Providers;
typedef base::Callback<void(PolicyBundle*)> PreprocessCallback;
@@ -104,4 +106,4 @@ class PolicyServiceImpl : public PolicyService,
} // namespace policy
-#endif // CHROME_BROWSER_POLICY_POLICY_SERVICE_IMPL_H_
+#endif // COMPONENTS_POLICY_CORE_COMMON_POLICY_SERVICE_IMPL_H_
« no previous file with comments | « components/policy/core/common/policy_service.cc ('k') | components/policy/core/common/policy_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698