components/policy/tools/template_writers/writers/adm_writer.py
def _GetPolicyExplanation(self, policy):
    '''Returns the explanation for a given policy.
    Includes a link to the relevant documentation on chromium.org.
    '''
    policy_desc = policy.get('desc')
    reference_url = POLICY_LIST_URL + policy['name']
    reference_link_text = self.GetLocalizedMessage('reference_link')
    reference_link_text = reference_link_text.replace('$6', reference_url)

    if policy_desc is not None:
      policy_desc += '\n\n'
      if (not policy.get('deprecated', False) and
          not self._IsRemovedPolicy(policy)):
        policy_desc += reference_link_text
      return policy_desc
    else:
      return reference_link_text
Returns the explanation for a given policy.
    Includes a link to the relevant documentation on chromium.org.
    
Returns the explanation for a given policy.
Includes a link to the relevant documentation on chromium.org.
Returns the explanation for a given policy . Includes a link to the relevant documentation on chromium . org .
def _GetPolicyExplanation(self, policy):
    policy_desc = policy.get('desc')
    reference_url = POLICY_LIST_URL + policy['name']
    reference_link_text = self.GetLocalizedMessage('reference_link')
    reference_link_text = reference_link_text.replace('$6', reference_url)
    if policy_desc is not None:
      policy_desc += '\n\n'
      if (not policy.get('deprecated', False) and
          not self._IsRemovedPolicy(policy)):
        policy_desc += reference_link_text
      return policy_desc
    else:
      return reference_link_text
def _GetPolicyExplanation ( self , policy ) : policy_desc = policy . get ( 'desc' ) reference_url = POLICY_LIST_URL + policy [ 'name' ] reference_link_text = self . GetLocalizedMessage ( 'reference_link' ) reference_link_text = reference_link_text . replace ( '$6' , reference_url ) if policy_desc is not None : policy_desc += '\n\n' if ( not policy . get ( 'deprecated' , False ) and not self . _IsRemovedPolicy ( policy ) ) : policy_desc += reference_link_text return policy_desc else : return reference_link_text
Returns the explanation for a given policy.
Returns the explanation for a given policy .
'''Returns the explanation for a given policy.
    Includes a link to the relevant documentation on chromium.org.
    '''
self
policy