native_client_sdk/src/build_tools/build_version.py
def ChromeVersion():
  '''Extract chrome version from src/chrome/VERSION + svn.

  Returns:
    Chrome version string or trunk + svn rev.
  '''
  info = FetchCommitPosition()
  _, ref, revision = ParseCommitPosition(info.revision)
  if ref in ['refs/heads/master', 'refs/heads/main']:
    return 'trunk.%s' % revision
  return ChromeVersionNoTrunk()
Extract chrome version from src/chrome/VERSION + svn.

  Returns:
    Chrome version string or trunk + svn rev.
  
Extract chrome version from src/chrome/VERSION + svn.
Extract chrome version from src / chrome / VERSION + svn .
def ChromeVersion():
  info = FetchCommitPosition()
  _, ref, revision = ParseCommitPosition(info.revision)
  if ref in ['refs/heads/master', 'refs/heads/main']:
    return 'trunk.%s' % revision
  return ChromeVersionNoTrunk()
def ChromeVersion ( ) : info = FetchCommitPosition ( ) _ , ref , revision = ParseCommitPosition ( info . revision ) if ref in [ 'refs/heads/master' , 'refs/heads/main' ] : return 'trunk.%s' % revision return ChromeVersionNoTrunk ( )
Extract chrome version from src/chrome/VERSION + svn.
Extract chrome version from src / chrome / VERSION + svn .
'''Extract chrome version from src/chrome/VERSION + svn.

  Returns:
    Chrome version string or trunk + svn rev.
  '''
Chrome version string or trunk + svn rev.
Chrome version string or trunk + svn rev .