components/policy/tools/template_writers/policy_template_generator.py
def _ProcessProductPlatformString(self, product_platform_string):
    '''Splits the |product_platform_string| string to product and a list of
    platforms.'''
    if '.' in product_platform_string:
      product, platform = product_platform_string.split('.')
      if platform == '*':
        # e.g.: 'chrome.*:8-10'
        platforms = ['linux', 'mac', 'win']
      else:
        # e.g.: 'chrome.win:-10'
        platforms = [platform]
    else:
      # e.g.: 'chrome_frame:7-'
      product, platform = {
          'android': ('chrome', 'android'),
          'webview_android': ('webview', 'android'),
          'ios': ('chrome', 'ios'),
          'chrome_os': ('chrome_os', 'chrome_os'),
          'chrome_frame': ('chrome_frame', 'win'),
      }[product_platform_string]
      platforms = [platform]
    return product, platforms
Splits the |product_platform_string| string to product and a list of
    platforms.
Splits the |product_platform_string| string to product and a list of
platforms.
Splits the |product_platform_string| string to product and a list of platforms .
def _ProcessProductPlatformString(self, product_platform_string):
    if '.' in product_platform_string:
      product, platform = product_platform_string.split('.')
      if platform == '*':
        platforms = ['linux', 'mac', 'win']
      else:
        platforms = [platform]
    else:
      product, platform = {
          'android': ('chrome', 'android'),
          'webview_android': ('webview', 'android'),
          'ios': ('chrome', 'ios'),
          'chrome_os': ('chrome_os', 'chrome_os'),
          'chrome_frame': ('chrome_frame', 'win'),
      }[product_platform_string]
      platforms = [platform]
    return product, platforms
def _ProcessProductPlatformString ( self , product_platform_string ) : if '.' in product_platform_string : product , platform = product_platform_string . split ( '.' ) if platform == '*' : platforms = [ 'linux' , 'mac' , 'win' ] else : platforms = [ platform ] else : product , platform = { 'android' : ( 'chrome' , 'android' ) , 'webview_android' : ( 'webview' , 'android' ) , 'ios' : ( 'chrome' , 'ios' ) , 'chrome_os' : ( 'chrome_os' , 'chrome_os' ) , 'chrome_frame' : ( 'chrome_frame' , 'win' ) , } [ product_platform_string ] platforms = [ platform ] return product , platforms
Splits the |product_platform_string| string to product and a list of
platforms.
Splits the |product_platform_string| string to product and a list of platforms .
'''Splits the |product_platform_string| string to product and a list of
    platforms.''' # e.g.: 'chrome.*:8-10' # e.g.: 'chrome.win:-10' # e.g.: 'chrome_frame:7-'
self
product_platform_string