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

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

Issue 179813008: Move PolicyLoaderMac::CreateValueFromProperty to a generic file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: POLICY_EXPORT Created 6 years, 10 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: components/policy/core/common/policy_loader_mac.h
diff --git a/components/policy/core/common/policy_loader_mac.h b/components/policy/core/common/policy_loader_mac.h
index 3cd83f7b6be54e0968d3736a7436e8f0be4d1dd5..46b8bc77cd9bff60ac05d589ac4f456d37274a2e 100644
--- a/components/policy/core/common/policy_loader_mac.h
+++ b/components/policy/core/common/policy_loader_mac.h
@@ -7,8 +7,6 @@
#include <string>
-#include <CoreFoundation/CoreFoundation.h>
-
#include "base/files/file_path.h"
#include "base/files/file_path_watcher.h"
#include "base/memory/ref_counted.h"
@@ -20,7 +18,6 @@ class MacPreferences;
namespace base {
class SequencedTaskRunner;
-class Value;
} // namespace base
namespace policy {
@@ -43,12 +40,6 @@ class POLICY_EXPORT PolicyLoaderMac : public AsyncPolicyLoader {
virtual scoped_ptr<PolicyBundle> Load() OVERRIDE;
virtual base::Time LastModificationTime() OVERRIDE;
- // Converts a CFPropertyListRef to the equivalent base::Value. CFDictionary
- // entries whose key is not a CFStringRef are ignored.
- // The returned value is owned by the caller.
- // Returns NULL if an invalid CFType was found, such as CFDate or CFData.
- static base::Value* CreateValueFromProperty(CFPropertyListRef property);
-
private:
// Callback for the FilePathWatcher.
void OnFileUpdated(const base::FilePath& path, bool error);

Powered by Google App Engine
This is Rietveld 408576698