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

Unified Diff: tools/android/customtabs_benchmark/scripts/customtabs_benchmark.py

Issue 2733233002: [tools/android] Replace FlagReplacer with flag_changer equivalent (Closed)
Patch Set: Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/android/loading/controller.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/android/customtabs_benchmark/scripts/customtabs_benchmark.py
diff --git a/tools/android/customtabs_benchmark/scripts/customtabs_benchmark.py b/tools/android/customtabs_benchmark/scripts/customtabs_benchmark.py
index c4bb1dca48bc7e09d2f5d0a10c17aa8ddfc42bb8..eabc9f4be4ab5da33e32eff581e22c6566433455 100755
--- a/tools/android/customtabs_benchmark/scripts/customtabs_benchmark.py
+++ b/tools/android/customtabs_benchmark/scripts/customtabs_benchmark.py
@@ -22,6 +22,7 @@ _SRC_PATH = os.path.abspath(os.path.join(
sys.path.append(os.path.join(_SRC_PATH, 'third_party', 'catapult', 'devil'))
from devil.android import device_errors
from devil.android import device_utils
+from devil.android import flag_changer
from devil.android.perf import cache_control
from devil.android.sdk import intent
@@ -70,7 +71,8 @@ def RunOnce(device, url, warmup, speculation_mode, delay_to_may_launch_url,
logcat_timeout = int(timeout_s + delay_to_may_launch_url / 1000.
+ delay_to_launch_url / 1000.) + 3;
- with device_setup.FlagReplacer(device, _COMMAND_LINE_FILE, chrome_args):
+ with flag_changer.CustomCommandLineFlags(
+ device, _COMMAND_LINE_FILE, chrome_args):
launch_intent = intent.Intent(
action='android.intent.action.MAIN',
package=_TEST_APP_PACKAGE_NAME,
« no previous file with comments | « no previous file | tools/android/loading/controller.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698