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

Issue 541693004: Move remote platform creation logic from cros_browser_finders to platform. (Closed)

Created:
6 years, 3 months ago by nednguyen
Modified:
6 years, 3 months ago
Reviewers:
achuith, dtu, achuithb, tonyg, nduca
CC:
chromium-reviews, telemetry+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

* Move remote platform creation logic from cros_browser_finders to platform. * Move CrOSInterface from backends into platform (CrOSPlatformBackend) * Introduce Device/CrOSDevice. * Replace IsRunningOnCrosDevice with GetHostPlatform().GetOSName() BUG=413637 Committed: https://crrev.com/350d10fb359c461f2dce9abbc151b94a01094a41 Cr-Commit-Position: refs/heads/master@{#294585}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Make _IsRunningOnCrosDevice private in platform #

Total comments: 1

Patch Set 3 : Remove CreatePlatformBackend method from device APIs since it expose backend APIs #

Patch Set 4 : Rebase #

Patch Set 5 : Remove chrome binary check in cros_browser_finder.py #

Total comments: 3

Patch Set 6 : Address Tony's comment #

Total comments: 8

Patch Set 7 : Address achuith's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+139 lines, -701 lines) Patch
M tools/telemetry/telemetry/core/backends/chrome/chrome_browser_options.py View 1 1 chunk +2 lines, -2 lines 0 comments Download
M tools/telemetry/telemetry/core/backends/chrome/cros_browser_finder.py View 1 2 3 4 5 6 5 chunks +22 lines, -27 lines 0 comments Download
D tools/telemetry/telemetry/core/backends/chrome/cros_interface.py View 1 chunk +0 lines, -465 lines 0 comments Download
D tools/telemetry/telemetry/core/backends/chrome/cros_interface_unittest.py View 1 chunk +0 lines, -184 lines 0 comments Download
M tools/telemetry/telemetry/core/backends/chrome/cros_test_case.py View 1 chunk +1 line, -1 line 0 comments Download
M tools/telemetry/telemetry/core/backends/chrome/desktop_browser_finder.py View 1 2 chunks +1 line, -2 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/__init__.py View 1 2 3 4 5 6 2 chunks +43 lines, -2 lines 0 comments Download
A tools/telemetry/telemetry/core/platform/cros_device.py View 1 2 1 chunk +27 lines, -0 lines 0 comments Download
A + tools/telemetry/telemetry/core/platform/cros_interface.py View 1 2 3 2 chunks +1 line, -12 lines 0 comments Download
A + tools/telemetry/telemetry/core/platform/cros_interface_unittest.py View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M tools/telemetry/telemetry/core/platform/cros_platform_backend.py View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
A tools/telemetry/telemetry/core/platform/device.py View 1 2 1 chunk +33 lines, -0 lines 0 comments Download
M tools/telemetry/telemetry/core/platform/profiler/perf_profiler.py View 1 2 3 4 5 6 2 chunks +1 line, -2 lines 0 comments Download
M tools/telemetry/telemetry/util/cloud_storage.py View 1 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 26 (8 generated)
nednguyen
6 years, 3 months ago (2014-09-04 15:54:45 UTC) #2
tonyg
https://codereview.chromium.org/541693004/diff/1/tools/telemetry/telemetry/core/platform/__init__.py File tools/telemetry/telemetry/core/platform/__init__.py (right): https://codereview.chromium.org/541693004/diff/1/tools/telemetry/telemetry/core/platform/__init__.py#newcode17 tools/telemetry/telemetry/core/platform/__init__.py:17: def IsRunningOnCrosDevice(): It doesn't seem like the word Cros ...
6 years, 3 months ago (2014-09-04 16:59:33 UTC) #3
nednguyen
https://codereview.chromium.org/541693004/diff/1/tools/telemetry/telemetry/core/platform/__init__.py File tools/telemetry/telemetry/core/platform/__init__.py (right): https://codereview.chromium.org/541693004/diff/1/tools/telemetry/telemetry/core/platform/__init__.py#newcode17 tools/telemetry/telemetry/core/platform/__init__.py:17: def IsRunningOnCrosDevice(): On 2014/09/04 16:59:32, tonyg wrote: > It ...
6 years, 3 months ago (2014-09-04 17:13:12 UTC) #4
nednguyen
On 2014/09/04 17:13:12, nednguyen wrote: > https://codereview.chromium.org/541693004/diff/1/tools/telemetry/telemetry/core/platform/__init__.py > File tools/telemetry/telemetry/core/platform/__init__.py (right): > > https://codereview.chromium.org/541693004/diff/1/tools/telemetry/telemetry/core/platform/__init__.py#newcode17 > ...
6 years, 3 months ago (2014-09-05 17:52:58 UTC) #5
nednguyen
PTAL again, since this is blocking my "telemetry as android app benchmarking" effort.
6 years, 3 months ago (2014-09-09 20:08:21 UTC) #8
achuithb
I'll do a full pass tomorrow EMEA time. Sorry for the delay. https://codereview.chromium.org/541693004/diff/20001/tools/telemetry/telemetry/core/backends/chrome/cros_browser_finder.py File tools/telemetry/telemetry/core/backends/chrome/cros_browser_finder.py ...
6 years, 3 months ago (2014-09-09 23:20:18 UTC) #13
nednguyen
On 2014/09/09 23:20:18, achuithb wrote: > I'll do a full pass tomorrow EMEA time. Sorry ...
6 years, 3 months ago (2014-09-10 22:47:10 UTC) #14
tonyg
lgtm https://codereview.chromium.org/541693004/diff/160001/tools/telemetry/telemetry/core/platform/profiler/perf_profiler.py File tools/telemetry/telemetry/core/platform/profiler/perf_profiler.py (right): https://codereview.chromium.org/541693004/diff/160001/tools/telemetry/telemetry/core/platform/profiler/perf_profiler.py#newcode202 tools/telemetry/telemetry/core/platform/profiler/perf_profiler.py:202: if platform.GetHostPlatform().GetOSName() == 'android': android?
6 years, 3 months ago (2014-09-11 00:05:58 UTC) #15
nednguyen
https://codereview.chromium.org/541693004/diff/160001/tools/telemetry/telemetry/core/platform/profiler/perf_profiler.py File tools/telemetry/telemetry/core/platform/profiler/perf_profiler.py (right): https://codereview.chromium.org/541693004/diff/160001/tools/telemetry/telemetry/core/platform/profiler/perf_profiler.py#newcode202 tools/telemetry/telemetry/core/platform/profiler/perf_profiler.py:202: if platform.GetHostPlatform().GetOSName() == 'android': On 2014/09/11 00:05:58, tonyg wrote: ...
6 years, 3 months ago (2014-09-11 03:16:07 UTC) #16
achuithb
Thanks, this looks good. Let me know if you're still unable to run this patch ...
6 years, 3 months ago (2014-09-11 09:43:58 UTC) #17
achuithb
Sorry about the late review! Is there no bug that covers this? It's handy to ...
6 years, 3 months ago (2014-09-11 10:09:46 UTC) #18
nednguyen
https://codereview.chromium.org/541693004/diff/180001/tools/telemetry/telemetry/core/backends/chrome/cros_browser_finder.py File tools/telemetry/telemetry/core/backends/chrome/cros_browser_finder.py (right): https://codereview.chromium.org/541693004/diff/180001/tools/telemetry/telemetry/core/backends/chrome/cros_browser_finder.py#newcode59 tools/telemetry/telemetry/core/backends/chrome/cros_browser_finder.py:59: if platform_module.GetHostPlatform().GetOSName() == 'chromeos': On 2014/09/11 09:43:58, achuithb wrote: ...
6 years, 3 months ago (2014-09-11 18:32:24 UTC) #19
nednguyen
On 2014/09/11 18:32:24, nednguyen wrote: > https://codereview.chromium.org/541693004/diff/180001/tools/telemetry/telemetry/core/backends/chrome/cros_browser_finder.py > File tools/telemetry/telemetry/core/backends/chrome/cros_browser_finder.py > (right): > > https://codereview.chromium.org/541693004/diff/180001/tools/telemetry/telemetry/core/backends/chrome/cros_browser_finder.py#newcode59 ...
6 years, 3 months ago (2014-09-12 04:13:52 UTC) #20
achuithb
Ned, I downloaded your patch and ran the cros unit tests remotely, and also one ...
6 years, 3 months ago (2014-09-12 11:03:13 UTC) #21
achuithb
Please add the bug id (file a bug if necessary) to cover this feature, and ...
6 years, 3 months ago (2014-09-12 11:05:59 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/541693004/200001
6 years, 3 months ago (2014-09-12 13:16:57 UTC) #24
commit-bot: I haz the power
Committed patchset #7 (id:200001) as 2bd9ef212c6820009fb0dc85ce136be033f61c40
6 years, 3 months ago (2014-09-12 14:21:30 UTC) #25
commit-bot: I haz the power
6 years, 3 months ago (2014-09-12 14:25:39 UTC) #26
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/350d10fb359c461f2dce9abbc151b94a01094a41
Cr-Commit-Position: refs/heads/master@{#294585}

Powered by Google App Engine
This is Rietveld 408576698