Move chrome/app/policy into components/policy.

This move enables using the files derived from policy_templates.json in iOS
builds. List of changes:

- cloud_policy_codegen.gyp and policy_templates.gypi have been merged into
  components/policy.gypi

- policy_templates.json moved into components/policy/resources/

- policy_templates.grd and *.xtb files moved into components/policy/resources/

- syntax_check_policy_templates_json.py and
  chrome/tools/build/generate_policy_source.py moved into
  components/policy/tools

BUG=271392
[email protected], [email protected]

Review URL: https://codereview.chromium.org/108513011

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240875 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/chrome_common.gypi b/chrome/chrome_common.gypi
index d0a9c46..a8ee329 100644
--- a/chrome/chrome_common.gypi
+++ b/chrome/chrome_common.gypi
@@ -423,7 +423,6 @@
         }],
         ['OS != "ios"', {
           'dependencies': [
-            '<(DEPTH)/chrome/app/policy/cloud_policy_codegen.gyp:policy',
             '<(DEPTH)/chrome/common/extensions/api/api.gyp:api',
             '<(DEPTH)/components/components.gyp:autofill_core_common',
             '<(DEPTH)/components/components.gyp:autofill_content_common',
@@ -497,9 +496,6 @@
             'common/net/url_util.cc',
             'common/spellcheck_common.cc',
           ],
-          'dependencies!': [
-            '<(DEPTH)/chrome/app/policy/cloud_policy_codegen.gyp:policy',
-          ],
         }],
         ['OS=="win"', {
           'include_dirs': [
@@ -577,6 +573,11 @@
             'common/print_messages.h',
           ]
         }],
+        ['configuration_policy==1', {
+          'dependencies': [
+            '<(DEPTH)/components/components.gyp:policy',
+          ],
+        }],
       ],
       'target_conditions': [
         ['OS == "ios"', {