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

Issue 23477053: Telemetry: fix permission check when setting Android command line. (Closed)

Created:
7 years, 3 months ago by Primiano Tucci (use gerrit)
Modified:
7 years, 3 months ago
Reviewers:
Dominik Grewe, bulach, tonyg
CC:
chromium-reviews, craigdh+watch_chromium.org, chrome-speed-team+watch_google.com, bulach+watch_chromium.org, yfriedman+watch_chromium.org, ilevy-cc_chromium.org, klundberg+watch_chromium.org, telemetry+watch_chromium.org, frankf+watch_chromium.org
Visibility:
Public.

Description

Telemetry: fix permission check when setting Android command line. This is to fix a bug introduced by r221426 on the WebView telemetry bot. The issue was related to the fact that ls -l can return no output if the target folder exists but is empty. This change makes the IsProtectedFile logic inside _SetCommandLineFile more reliable, introducing the IsFileWritableOnDevice method in adb commands. BUG=284468 NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=222349

Patch Set 1 #

Total comments: 3

Patch Set 2 : False -> True when checking / #

Total comments: 1

Patch Set 3 : Remove wrapper method from adb_commands #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -3 lines) Patch
M build/android/pylib/android_commands.py View 1 chunk +23 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py View 1 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Primiano Tucci (use gerrit)
https://codereview.chromium.org/23477053/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/23477053/diff/1/tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py#newcode216 tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py:216: return False I think / is not user-writable in ...
7 years, 3 months ago (2013-09-10 14:47:47 UTC) #1
Primiano Tucci (use gerrit)
Tony, can you please take a look?
7 years, 3 months ago (2013-09-10 14:53:09 UTC) #2
Dominik Grewe
You may also want to add an owner for build/android/pylib/android_commands.py https://codereview.chromium.org/23477053/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/23477053/diff/1/tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py#newcode216 ...
7 years, 3 months ago (2013-09-10 15:02:14 UTC) #3
Primiano Tucci (use gerrit)
Ops, I didn't realize we have a local owner for both in the same timezone... ...
7 years, 3 months ago (2013-09-10 15:20:04 UTC) #4
Dominik Grewe
LGTM. Thanks for fixing this.
7 years, 3 months ago (2013-09-10 15:24:57 UTC) #5
bulach
lgtm, thanks!
7 years, 3 months ago (2013-09-10 15:29:15 UTC) #6
tonyg
lgtm https://codereview.chromium.org/23477053/diff/7001/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/23477053/diff/7001/tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py#newcode210 tools/telemetry/telemetry/core/backends/chrome/android_browser_backend.py:210: return not self._adb.Adb().IsFileWritableOnDevice(name) You can either drop the ...
7 years, 3 months ago (2013-09-10 15:44:29 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/primiano@chromium.org/23477053/14001
7 years, 3 months ago (2013-09-10 17:26:12 UTC) #8
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura&number=75866
7 years, 3 months ago (2013-09-10 20:43:57 UTC) #9
Primiano Tucci (use gerrit)
Commit queue failing (how new?) on linux_aura for unrelated reasons. All other bots green. Adding ...
7 years, 3 months ago (2013-09-10 21:30:33 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/primiano@chromium.org/23477053/14001
7 years, 3 months ago (2013-09-10 21:31:32 UTC) #11
commit-bot: I haz the power
7 years, 3 months ago (2013-09-10 21:36:20 UTC) #12
Message was sent while issue was closed.
Change committed as 222349

Powered by Google App Engine
This is Rietveld 408576698