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

Unified Diff: components/policy/core/common/preg_parser_win.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/preg_parser_win.h
diff --git a/chrome/browser/policy/preg_parser_win.h b/components/policy/core/common/preg_parser_win.h
similarity index 65%
rename from chrome/browser/policy/preg_parser_win.h
rename to components/policy/core/common/preg_parser_win.h
index dbd54c7b6f629bf1a833bec1f375fde8b407e121..e01657b78dc79304d8286ff567dbff13cbe10c8f 100644
--- a/chrome/browser/policy/preg_parser_win.h
+++ b/components/policy/core/common/preg_parser_win.h
@@ -7,13 +7,14 @@
//
// http://msdn.microsoft.com/en-us/library/windows/desktop/aa374407(v=vs.85).aspx
-#ifndef CHROME_BROWSER_POLICY_PREG_PARSER_WIN_H_
-#define CHROME_BROWSER_POLICY_PREG_PARSER_WIN_H_
+#ifndef COMPONENTS_POLICY_CORE_COMMON_PREG_PARSER_WIN_H_
+#define COMPONENTS_POLICY_CORE_COMMON_PREG_PARSER_WIN_H_
#include <vector>
#include "base/memory/scoped_ptr.h"
#include "base/strings/string16.h"
+#include "components/policy/policy_export.h"
namespace base {
class FilePath;
@@ -27,17 +28,17 @@ class RegistryDict;
namespace preg_parser {
// The magic header in PReg files: ASCII "PReg" + version (0x0001).
-extern const char kPRegFileHeader[8];
+POLICY_EXPORT extern const char kPRegFileHeader[8];
// Reads the PReg file at |file_path| and writes the registry data to |dict|.
// |root| specifies the registry subtree the caller is interested in,
// everything else gets ignored.
-bool ReadFile(const base::FilePath& file_path,
- const string16& root,
- RegistryDict* dict,
- PolicyLoadStatusSample* status);
+POLICY_EXPORT bool ReadFile(const base::FilePath& file_path,
+ const string16& root,
+ RegistryDict* dict,
+ PolicyLoadStatusSample* status);
} // namespace preg_parser
} // namespace policy
-#endif // CHROME_BROWSER_POLICY_PREG_PARSER_WIN_H_
+#endif // COMPONENTS_POLICY_CORE_COMMON_PREG_PARSER_WIN_H_
« no previous file with comments | « components/policy/core/common/policy_test_utils.cc ('k') | components/policy/core/common/preg_parser_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698