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

Unified Diff: grit/tool/build.py

Issue 865563002: Add a Policy template writer that generates Android resources which can be exposed through Android'… (Closed) Base URL: https://chromium.googlesource.com/external/grit-i18n.git@master
Patch Set: Rebase on r186 Created 5 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
« no previous file with comments | « grit/test_suite_all.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: grit/tool/build.py
diff --git a/grit/tool/build.py b/grit/tool/build.py
index 68245a343476faa07441fca7fa163a15d33a48e5..e7e6abea63c9c418d60a0e55fb4a62fc0d311a8e 100644
--- a/grit/tool/build.py
+++ b/grit/tool/build.py
@@ -39,7 +39,7 @@ _format_modules = {
_format_modules.update(
(type, 'policy_templates.template_formatter') for type in
[ 'adm', 'admx', 'adml', 'reg', 'doc', 'json',
- 'plist', 'plist_strings', 'ios_plist' ])
+ 'plist', 'plist_strings', 'ios_plist', 'android_policy' ])
def GetFormatter(type):
@@ -320,7 +320,7 @@ are exported to translation interchange files (e.g. XMB files), etc.
'resource_map_source', 'resource_file_map_source'):
encoding = 'cp1252'
elif output.GetType() in ('android', 'c_format', 'js_map_format', 'plist',
- 'plist_strings', 'doc', 'json'):
+ 'plist_strings', 'doc', 'json', 'android_policy'):
encoding = 'utf_8'
elif output.GetType() in ('chrome_messages_json'):
# Chrome Web Store currently expects BOM for UTF-8 files :-(
« no previous file with comments | « grit/test_suite_all.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698