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

Issue 23726018: Telemetry: Write chrome command line file as root if it doesn't exist. (Closed)

Created:
7 years, 3 months ago by Dominik Grewe
Modified:
7 years, 3 months ago
Reviewers:
bulach, tonyg
CC:
chromium-reviews, chrome-speed-team+watch_google.com, telemetry+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Telemetry: Write chrome command line file as root if it doesn't exist. On Android, Telemetry sets the chrome command line file before running any pages. If the file doesn't already exist, it tries to write it as a normal user, rather than root, which fails. This patch explicitly checks if the file exists. If it doesn't exist it writes the file as root. BUG=284468 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221426

Patch Set 1 #

Total comments: 2

Patch Set 2 : Recursively check for file permissions. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -2 lines) Patch
M tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py View 1 1 chunk +10 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Dominik Grewe
This CL is fixing a bug recently introduced in http://crrev.com/23649003 PTAL, thanks.
7 years, 3 months ago (2013-09-03 15:24:28 UTC) #1
bulach
lgtm, thanks! make sense to me but please let tonyg confirm his case would also ...
7 years, 3 months ago (2013-09-03 15:28:53 UTC) #2
tonyg
lgtm
7 years, 3 months ago (2013-09-03 15:44:15 UTC) #3
tonyg
https://codereview.chromium.org/23726018/diff/1/tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py File tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py (right): https://codereview.chromium.org/23726018/diff/1/tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py#newcode202 tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py:202: if IsProtectedOrNotExistingFile(self._backend_settings.cmdline_file): On second thought, do we need to ...
7 years, 3 months ago (2013-09-03 15:45:48 UTC) #4
Dominik Grewe
https://codereview.chromium.org/23726018/diff/1/tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py File tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py (right): https://codereview.chromium.org/23726018/diff/1/tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py#newcode202 tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py:202: if IsProtectedOrNotExistingFile(self._backend_settings.cmdline_file): On 2013/09/03 15:45:48, tonyg wrote: > On ...
7 years, 3 months ago (2013-09-03 15:49:06 UTC) #5
tonyg
On 2013/09/03 15:49:06, Dominik Grewe wrote: > https://codereview.chromium.org/23726018/diff/1/tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py > File tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py > (right): > > ...
7 years, 3 months ago (2013-09-03 15:50:01 UTC) #6
tonyg
On 2013/09/03 15:49:06, Dominik Grewe wrote: > https://codereview.chromium.org/23726018/diff/1/tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py > File tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py > (right): > > ...
7 years, 3 months ago (2013-09-03 15:50:02 UTC) #7
Dominik Grewe
I've modified the method to recursively check for file permissions. Please have a look.
7 years, 3 months ago (2013-09-03 16:46:41 UTC) #8
tonyg
lgtm
7 years, 3 months ago (2013-09-04 23:40:57 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dominikg@chromium.org/23726018/11001
7 years, 3 months ago (2013-09-05 08:40:14 UTC) #10
commit-bot: I haz the power
7 years, 3 months ago (2013-09-05 14:53:09 UTC) #11
Message was sent while issue was closed.
Change committed as 221426

Powered by Google App Engine
This is Rietveld 408576698