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

Unified Diff: tools/grit/grit/format/policy_templates/writers/plist_strings_writer.py

Issue 6134006: Integrate user strings into the JSON policy template file (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " Created 9 years, 11 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: tools/grit/grit/format/policy_templates/writers/plist_strings_writer.py
diff --git a/tools/grit/grit/format/policy_templates/writers/plist_strings_writer.py b/tools/grit/grit/format/policy_templates/writers/plist_strings_writer.py
index 965c90046d0d85b669b97d4cd9f0582372174aad..b26e222098a16a1ffd812fab45629efe0e202524 100644
--- a/tools/grit/grit/format/policy_templates/writers/plist_strings_writer.py
+++ b/tools/grit/grit/format/policy_templates/writers/plist_strings_writer.py
@@ -7,12 +7,12 @@ from grit.format.policy_templates.writers import plist_helper
from grit.format.policy_templates.writers import template_writer
-def GetWriter(config, messages):
+def GetWriter(config):
'''Factory method for creating PListStringsWriter objects.
See the constructor of TemplateWriter for description of
arguments.
'''
- return PListStringsWriter(['mac'], config, messages)
+ return PListStringsWriter(['mac'], config)
class PListStringsWriter(template_writer.TemplateWriter):
@@ -59,7 +59,7 @@ class PListStringsWriter(template_writer.TemplateWriter):
self._AddToStringTable(
app_name,
self.config['app_name'],
- self.messages['IDS_POLICY_MAC_CHROME_PREFERENCES'])
+ self.messages['mac_chrome_preferences']['text'])
def Init(self):
# A buffer for the lines of the string table being generated.

Powered by Google App Engine
This is Rietveld 408576698