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

Unified Diff: components/policy/core/common/config_dir_policy_loader.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/config_dir_policy_loader.h
diff --git a/chrome/browser/policy/config_dir_policy_loader.h b/components/policy/core/common/config_dir_policy_loader.h
similarity index 87%
rename from chrome/browser/policy/config_dir_policy_loader.h
rename to components/policy/core/common/config_dir_policy_loader.h
index fc7cc5c398cf9fcae900dee315fea8b875a4b93c..054844b3e49d18f7ecdeaf8eb59b671bf3e8a7c1 100644
--- a/chrome/browser/policy/config_dir_policy_loader.h
+++ b/components/policy/core/common/config_dir_policy_loader.h
@@ -2,13 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_POLICY_CONFIG_DIR_POLICY_LOADER_H_
-#define CHROME_BROWSER_POLICY_CONFIG_DIR_POLICY_LOADER_H_
+#ifndef COMPONENTS_POLICY_CORE_COMMON_CONFIG_DIR_POLICY_LOADER_H_
+#define COMPONENTS_POLICY_CORE_COMMON_CONFIG_DIR_POLICY_LOADER_H_
#include "base/files/file_path.h"
#include "base/files/file_path_watcher.h"
#include "components/policy/core/common/async_policy_loader.h"
#include "components/policy/core/common/policy_types.h"
+#include "components/policy/policy_export.h"
namespace base {
class Value;
@@ -21,7 +22,7 @@ namespace policy {
// merged together and the result is returned in a PolicyBundle.
// The files are consulted in lexicographic file name order, so the
// last value read takes precedence in case of policy key collisions.
-class ConfigDirPolicyLoader : public AsyncPolicyLoader {
+class POLICY_EXPORT ConfigDirPolicyLoader : public AsyncPolicyLoader {
public:
ConfigDirPolicyLoader(scoped_refptr<base::SequencedTaskRunner> task_runner,
const base::FilePath& config_dir,
@@ -63,4 +64,4 @@ class ConfigDirPolicyLoader : public AsyncPolicyLoader {
} // namespace policy
-#endif // CHROME_BROWSER_POLICY_CONFIG_DIR_POLICY_LOADER_H_
+#endif // COMPONENTS_POLICY_CORE_COMMON_CONFIG_DIR_POLICY_LOADER_H_

Powered by Google App Engine
This is Rietveld 408576698