Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Side by Side Diff: tools/perf/profile_creators/update_remote_extensions.py

Issue 2300653002: [tools/perf] Update code to reference py_utils.cloud_storage (Closed)
Patch Set: update Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/perf/profile_creators/extension_profile_extender.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import base64 5 import base64
6 import csv 6 import csv
7 import json 7 import json
8 import optparse 8 import optparse
9 import os 9 import os
10 import shutil 10 import shutil
11 import sys 11 import sys
12 import tempfile 12 import tempfile
13 import urllib2 13 import urllib2
14 import zipfile 14 import zipfile
15 15
16 sys.path.insert(1, os.path.abspath(os.path.join( 16 sys.path.insert(1, os.path.abspath(os.path.join(
17 __file__, '..', '..'))) 17 __file__, '..', '..')))
18 from core import path_util 18 from core import path_util
19 19
20 20
21 path_util.AddCatapultBaseToPath() 21 path_util.AddPyUtilsToPath()
22 from catapult_base import cloud_storage 22 from py_utils import cloud_storage
23 23
24 path_util.AddTelemetryToPath() 24 path_util.AddTelemetryToPath()
25 from telemetry.core import exceptions 25 from telemetry.core import exceptions
26 26
27 27
28 # Remote target upload directory in cloud storage for extensions. 28 # Remote target upload directory in cloud storage for extensions.
29 REMOTE_DIR = 'extension_set' 29 REMOTE_DIR = 'extension_set'
30 30
31 # Target zip file. 31 # Target zip file.
32 ZIP_NAME = 'extensions.zip' 32 ZIP_NAME = 'extensions.zip'
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 extension_csv = _GetCsvFromArgs() 208 extension_csv = _GetCsvFromArgs()
209 local_extensions_dir = tempfile.mkdtemp() 209 local_extensions_dir = tempfile.mkdtemp()
210 try: 210 try:
211 _UpdateExtensionsInCloud(local_extensions_dir, 211 _UpdateExtensionsInCloud(local_extensions_dir,
212 extension_csv, REMOTE_DIR) 212 extension_csv, REMOTE_DIR)
213 finally: 213 finally:
214 shutil.rmtree(local_extensions_dir) 214 shutil.rmtree(local_extensions_dir)
215 215
216 if __name__ == '__main__': 216 if __name__ == '__main__':
217 main() 217 main()
OLDNEW
« no previous file with comments | « tools/perf/profile_creators/extension_profile_extender.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698