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

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

Issue 2529383003: [Android app restrictions] Hide unused and improve descriptions. (Closed)
Patch Set: Fix nit Created 4 years, 1 month 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/android_policy_writer.py
diff --git a/tools/grit/grit/format/policy_templates/writers/android_policy_writer.py b/tools/grit/grit/format/policy_templates/writers/android_policy_writer.py
index 3f8518382a55582b185c3a845a8d273a1328e9c5..b5a686260c3935a4d519752c87302d2d9feaf005 100755
--- a/tools/grit/grit/format/policy_templates/writers/android_policy_writer.py
+++ b/tools/grit/grit/format/policy_templates/writers/android_policy_writer.py
@@ -64,18 +64,12 @@ class AndroidPolicyWriter(xml_formatted_writer.XMLFormattedWriter):
def CanBeRecommended(self, policy):
return False
- def IsDeprecatedPolicySupported(self, policy):
- return True
-
- def IsFuturePolicySupported(self, policy):
- return True
-
def WritePolicy(self, policy):
name = policy['name']
self.AddStringResource(name + 'Title', policy['caption'])
- # Get the first line of the policy description.
- description = policy['desc'].split('\n', 1)[0]
+ # Get the policy description.
+ description = policy['desc']
self.AddStringResource(name + 'Desc', description)
items = policy.get('items')

Powered by Google App Engine
This is Rietveld 408576698