chrome/browser/resources/chromeos/accessibility/chromevox/tools/webstore_extension_util.py
def PostUpload(file, client_secret):
  '''Posts an uploaded version of ChromeVox.
  Args:
    file A string path to the ChromeVox extension zip.
    client_secret ChromeVox's client secret creds.
  '''
  header = GetPopulatedHeader(client_secret)
  curl_command = ' '.join([
      'curl',
      '-H "Authorization: %(Authorization)s"' % header,
      '-H "x-goog-api-version: 2"', '-X PUT',
      '-T %s' % file, '-v',
      'https://%s%s' % (API_ENDPOINT_DOMAIN, GetUploadCommand())
  ])

  print 'Running %s' % curl_command
  if os.system(curl_command) != 0:
    sys.exit(-1)
Posts an uploaded version of ChromeVox.
  Args:
    file A string path to the ChromeVox extension zip.
    client_secret ChromeVox's client secret creds.
  
Posts an uploaded version of ChromeVox.
Args:
file A string path to the ChromeVox extension zip.
Posts an uploaded version of ChromeVox . Args : file A string path to the ChromeVox extension zip .
def PostUpload(file, client_secret):
  header = GetPopulatedHeader(client_secret)
  curl_command = ' '.join([
      'curl',
      '-H "Authorization: %(Authorization)s"' % header,
      '-H "x-goog-api-version: 2"', '-X PUT',
      '-T %s' % file, '-v',
      'https://%s%s' % (API_ENDPOINT_DOMAIN, GetUploadCommand())
  ])
  print 'Running %s' % curl_command
  if os.system(curl_command) != 0:
    sys.exit(-1)
def PostUpload ( file , client_secret ) : header = GetPopulatedHeader ( client_secret ) curl_command = ' ' . join ( [ 'curl' , '-H "Authorization: %(Authorization)s"' % header , '-H "x-goog-api-version: 2"' , '-X PUT' , '-T %s' % file , '-v' , 'https://%s%s' % ( API_ENDPOINT_DOMAIN , GetUploadCommand ( ) ) ] ) print 'Running %s' % curl_command if os . system ( curl_command ) != 0 : sys . exit ( - 1 )
Posts an uploaded version of ChromeVox.
Posts an uploaded version of ChromeVox .
'''Posts an uploaded version of ChromeVox.
  Args:
    file A string path to the ChromeVox extension zip.
    client_secret ChromeVox's client secret creds.
  '''
file
client_secret