summaryrefslogtreecommitdiffstats
path: root/components/policy/policy_common.gypi
diff options
context:
space:
mode:
authorjoaodasilva@chromium.org <joaodasilva@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-05 07:05:57 +0000
committerjoaodasilva@chromium.org <joaodasilva@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-05 07:05:57 +0000
commit3ad0981a561949af61dc8a5e3d8a419b545408f6 (patch)
treeb2644431ec63f0bf1d6e068a1b2a35229fc2da35 /components/policy/policy_common.gypi
parent596f0a9d480d4af122d761b01560484d9a796f13 (diff)
downloadchromium_src-3ad0981a561949af61dc8a5e3d8a419b545408f6.zip
chromium_src-3ad0981a561949af61dc8a5e3d8a419b545408f6.tar.gz
chromium_src-3ad0981a561949af61dc8a5e3d8a419b545408f6.tar.bz2
Move PolicyLoaderMac::CreateValueFromProperty to a generic file.
This function converts a CFPropertyListRef to the equivalent base::Value. This change moves that function to mac_util.h so that it can be reused on iOS. This change also moves a helper function that does the reverse conversion for tests. BUG=348820 Review URL: https://codereview.chromium.org/179813008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@254967 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components/policy/policy_common.gypi')
-rw-r--r--components/policy/policy_common.gypi8
1 files changed, 8 insertions, 0 deletions
diff --git a/components/policy/policy_common.gypi b/components/policy/policy_common.gypi
index 0b75ebe..c222ce8 100644
--- a/components/policy/policy_common.gypi
+++ b/components/policy/policy_common.gypi
@@ -92,6 +92,8 @@
'core/common/external_data_manager.h',
'core/common/forwarding_policy_provider.cc',
'core/common/forwarding_policy_provider.h',
+ 'core/common/mac_util.cc',
+ 'core/common/mac_util.h',
'core/common/policy_bundle.cc',
'core/common/policy_bundle.h',
'core/common/policy_details.h',
@@ -175,6 +177,12 @@
'core/common/cloud/user_cloud_policy_store.h',
],
}],
+ ['OS!="ios" and OS!="mac"', {
+ 'sources!': [
+ 'core/common/mac_util.cc',
+ 'core/common/mac_util.h',
+ ],
+ }],
],
}, { # configuration_policy==0
# Some of the policy code is always enabled, so that other parts of