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

Unified Diff: build/android/pylib/flag_changer.py

Issue 11876021: Support startup performance tests on Galaxy S3 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Run startup tests on S3 - write protected files Created 7 years, 11 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
Index: build/android/pylib/flag_changer.py
diff --git a/build/android/pylib/flag_changer.py b/build/android/pylib/flag_changer.py
index 8b8dbca59055f4a4c7ac1005fd95669ef599dd11..6f83f7059a299e23333d18decca6d7d457796b2d 100644
--- a/build/android/pylib/flag_changer.py
+++ b/build/android/pylib/flag_changer.py
@@ -9,6 +9,7 @@ import warnings
# Location where chrome reads command line flags from
CHROME_COMMAND_FILE = '/data/local/chrome-command-line'
+CHROME_TEMP_COMMAND_FILE='/sdcard/chrome-command-line-temp'
bulach 2013/01/16 19:11:05 not needed?
aberent 2013/01/17 17:18:06 Done.
class FlagChanger(object):
"""Changes the flags Chrome runs with.
@@ -89,11 +90,11 @@ class FlagChanger(object):
print "Current flags: ", self._current_flags
if self._current_flags:
- self._android_cmd.SetFileContents(CHROME_COMMAND_FILE,
+ self._android_cmd.SetProtectedFileContents(CHROME_COMMAND_FILE,
'chrome ' +
' '.join(self._current_flags))
else:
- self._android_cmd.RunShellCommand('rm ' + CHROME_COMMAND_FILE)
+ self._android_cmd.RunShellCommand('su -c rm ' + CHROME_COMMAND_FILE)
def _TokenizeFlags(self, line):
"""Changes the string containing the command line into a list of flags.

Powered by Google App Engine
This is Rietveld 408576698