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

Issue 201443017: Replace GetHostSize with a cross-platform implementation. (Closed)

Created:
6 years, 9 months ago by tonyg
Modified:
6 years, 9 months ago
Reviewers:
craigdh, bulach, frankf
CC:
chromium-reviews, klundberg+watch_chromium.org, craigdh+watch_chromium.org, bulach+watch_chromium.org, yfriedman+watch_chromium.org, ilevy-cc_chromium.org
Visibility:
Public.

Description

Replace GetHostSize with a cross-platform implementation. This is in preparation for Telemetry for Android devices with a Mac host. BUG=355646 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=259265

Patch Set 1 #

Total comments: 1

Patch Set 2 : Handle dirs #

Total comments: 2

Patch Set 3 : Refactor #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -5 lines) Patch
M build/android/pylib/android_commands.py View 1 2 3 chunks +4 lines, -5 lines 0 comments Download
A build/android/pylib/utils/host_utils.py View 1 2 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
tonyg
6 years, 9 months ago (2014-03-24 18:27:22 UTC) #1
craigdh
not lgtm https://codereview.chromium.org/201443017/diff/1/build/android/pylib/android_commands.py File build/android/pylib/android_commands.py (right): https://codereview.chromium.org/201443017/diff/1/build/android/pylib/android_commands.py#newcode1039 build/android/pylib/android_commands.py:1039: diff_size = sum(os.stat(f[0]).st_size for f in changed_files) ...
6 years, 9 months ago (2014-03-24 19:19:54 UTC) #2
tonyg
Good catch, please check out this implementation.
6 years, 9 months ago (2014-03-24 23:10:22 UTC) #3
craigdh
https://codereview.chromium.org/201443017/diff/20001/build/android/pylib/android_commands.py File build/android/pylib/android_commands.py (right): https://codereview.chromium.org/201443017/diff/20001/build/android/pylib/android_commands.py#newcode1004 build/android/pylib/android_commands.py:1004: def GetHostSize(path): This is getting really big for an ...
6 years, 9 months ago (2014-03-24 23:36:46 UTC) #4
tonyg
On 2014/03/24 23:36:46, craigdh wrote: > https://codereview.chromium.org/201443017/diff/20001/build/android/pylib/android_commands.py > File build/android/pylib/android_commands.py (right): > > https://codereview.chromium.org/201443017/diff/20001/build/android/pylib/android_commands.py#newcode1004 > ...
6 years, 9 months ago (2014-03-25 01:58:26 UTC) #5
craigdh
lgtm. Thanks!
6 years, 9 months ago (2014-03-25 14:27:31 UTC) #6
tonyg
The CQ bit was checked by tonyg@chromium.org
6 years, 9 months ago (2014-03-25 14:51:26 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tonyg@chromium.org/201443017/40001
6 years, 9 months ago (2014-03-25 14:51:32 UTC) #8
commit-bot: I haz the power
6 years, 9 months ago (2014-03-25 18:28:59 UTC) #9
Message was sent while issue was closed.
Change committed as 259265

Powered by Google App Engine
This is Rietveld 408576698