components/policy/tools/template_writers/writers/template_writer.py
def IsVersionSupported(self, policy, supported_on):
    '''Checks whether the policy is supported on current version'''
    major_version = self._GetChromiumMajorVersion()
    if not major_version:
      return True

    since_version = supported_on.get('since_version', None)
    until_version = supported_on.get('until_version', None)

    return ((not since_version or int(since_version) <= major_version) and
            (not until_version or int(until_version) >= major_version))
Checks whether the policy is supported on current version
Checks whether the policy is supported on current version
Checks whether the policy is supported on current version
def IsVersionSupported(self, policy, supported_on):
    major_version = self._GetChromiumMajorVersion()
    if not major_version:
      return True
    since_version = supported_on.get('since_version', None)
    until_version = supported_on.get('until_version', None)
    return ((not since_version or int(since_version) <= major_version) and
            (not until_version or int(until_version) >= major_version))
def IsVersionSupported ( self , policy , supported_on ) : major_version = self . _GetChromiumMajorVersion ( ) if not major_version : return True since_version = supported_on . get ( 'since_version' , None ) until_version = supported_on . get ( 'until_version' , None ) return ( ( not since_version or int ( since_version ) <= major_version ) and ( not until_version or int ( until_version ) >= major_version ) )
Checks whether the policy is supported on current version
Checks whether the policy is supported on current version
'''Checks whether the policy is supported on current version'''
self
policy
supported_on