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

Side by Side Diff: tools/android/loading/sandwich_utils.py

Issue 2040993002: sandwich: Uplift for production use. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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 common_util 5 import common_util
6 import emulation 6 import emulation
7 import sandwich_runner 7 import sandwich_runner
8 import task_manager 8 import task_manager
9 9
10 10
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 self.CreateStaticTask('common/webpages.wpr', original_wpr_path) 64 self.CreateStaticTask('common/webpages.wpr', original_wpr_path)
65 65
66 def PopulateWprRecordingTask(self): 66 def PopulateWprRecordingTask(self):
67 """Records the original WPR archive.""" 67 """Records the original WPR archive."""
68 @self.RegisterTask('common/webpages.wpr') 68 @self.RegisterTask('common/webpages.wpr')
69 def BuildOriginalWpr(): 69 def BuildOriginalWpr():
70 common_util.EnsureParentDirectoryExists(BuildOriginalWpr.path) 70 common_util.EnsureParentDirectoryExists(BuildOriginalWpr.path)
71 runner = self.CreateSandwichRunner() 71 runner = self.CreateSandwichRunner()
72 runner.wpr_archive_path = BuildOriginalWpr.path 72 runner.wpr_archive_path = BuildOriginalWpr.path
73 runner.wpr_record = True 73 runner.wpr_record = True
74 runner.output_dir = BuildOriginalWpr.path[:-4] + '-run'
74 runner.Run() 75 runner.Run()
75 76
76 self.original_wpr_task = BuildOriginalWpr 77 self.original_wpr_task = BuildOriginalWpr
OLDNEW
« tools/android/loading/sandwich_runner.py ('K') | « tools/android/loading/sandwich_runner.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698