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

Issue 1309143004: Add UMA metrics to record the size of internal memory available on a user's device when the Update … (Closed)

Created:
5 years, 3 months ago by Khushal
Modified:
5 years, 3 months ago
CC:
chromium-reviews, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add UMA metrics to record the size of internal memory available on a user's device when the Update InfoBar is shown. BUG=517839 Committed: https://crrev.com/0e93d6cbb4d81de7e204f5c36cd450f9a1804974 Cr-Commit-Position: refs/heads/master@{#346409}

Patch Set 1 #

Total comments: 3

Patch Set 2 : #

Total comments: 2

Patch Set 3 : Update APIs used. #

Patch Set 4 : Add conditional use of deprecated API. #

Total comments: 4

Patch Set 5 : Updating Statfs function used. #

Patch Set 6 : Adding RecordLinearHistogram. #

Total comments: 3

Patch Set 7 : Fix indent #

Unified diffs Side-by-side diffs Delta from patch set Stats (+138 lines, -0 lines) Patch
M base/android/java/src/org/chromium/base/metrics/RecordHistogram.java View 1 2 3 4 5 2 chunks +17 lines, -0 lines 0 comments Download
M base/android/javatests/src/org/chromium/base/metrics/RecordHistogramTest.java View 1 2 3 4 5 1 chunk +33 lines, -0 lines 0 comments Download
M base/android/record_histogram.cc View 1 2 3 4 5 6 2 chunks +40 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/omaha/OmahaUpdateInfobar.java View 1 2 3 4 5 4 chunks +38 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (4 generated)
Khushal
5 years, 3 months ago (2015-08-27 02:40:59 UTC) #2
Yaron
https://codereview.chromium.org/1309143004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/omaha/OmahaUpdateInfobar.java File chrome/android/java/src/org/chromium/chrome/browser/omaha/OmahaUpdateInfobar.java (right): https://codereview.chromium.org/1309143004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/omaha/OmahaUpdateInfobar.java#newcode96 chrome/android/java/src/org/chromium/chrome/browser/omaha/OmahaUpdateInfobar.java:96: // Only record the case where available size is ...
5 years, 3 months ago (2015-08-27 14:32:04 UTC) #3
Khushal
https://codereview.chromium.org/1309143004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/omaha/OmahaUpdateInfobar.java File chrome/android/java/src/org/chromium/chrome/browser/omaha/OmahaUpdateInfobar.java (right): https://codereview.chromium.org/1309143004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/omaha/OmahaUpdateInfobar.java#newcode96 chrome/android/java/src/org/chromium/chrome/browser/omaha/OmahaUpdateInfobar.java:96: // Only record the case where available size is ...
5 years, 3 months ago (2015-08-27 15:09:01 UTC) #4
Alexei Svitkine (slow)
https://codereview.chromium.org/1309143004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/omaha/OmahaUpdateInfobar.java File chrome/android/java/src/org/chromium/chrome/browser/omaha/OmahaUpdateInfobar.java (right): https://codereview.chromium.org/1309143004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/omaha/OmahaUpdateInfobar.java#newcode96 chrome/android/java/src/org/chromium/chrome/browser/omaha/OmahaUpdateInfobar.java:96: // Only record the case where available size is ...
5 years, 3 months ago (2015-08-27 15:15:01 UTC) #6
Khushal
On 2015/08/27 15:15:01, Alexei Svitkine wrote: > https://codereview.chromium.org/1309143004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/omaha/OmahaUpdateInfobar.java > File > chrome/android/java/src/org/chromium/chrome/browser/omaha/OmahaUpdateInfobar.java > (right): > ...
5 years, 3 months ago (2015-08-27 15:32:55 UTC) #7
Alexei Svitkine (slow)
https://codereview.chromium.org/1309143004/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/omaha/OmahaUpdateInfobar.java File chrome/android/java/src/org/chromium/chrome/browser/omaha/OmahaUpdateInfobar.java (right): https://codereview.chromium.org/1309143004/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/omaha/OmahaUpdateInfobar.java#newcode96 chrome/android/java/src/org/chromium/chrome/browser/omaha/OmahaUpdateInfobar.java:96: "GoogleUpdate.InfoBar.InternalStorageSizeAvailable", size); 100MB seems pretty low for this. If ...
5 years, 3 months ago (2015-08-27 18:21:29 UTC) #8
Khushal
On 2015/08/27 18:21:29, Alexei Svitkine wrote: > https://codereview.chromium.org/1309143004/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/omaha/OmahaUpdateInfobar.java > File > chrome/android/java/src/org/chromium/chrome/browser/omaha/OmahaUpdateInfobar.java > (right): > ...
5 years, 3 months ago (2015-08-27 18:46:16 UTC) #9
Yaron
https://codereview.chromium.org/1309143004/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/omaha/OmahaUpdateInfobar.java File chrome/android/java/src/org/chromium/chrome/browser/omaha/OmahaUpdateInfobar.java (right): https://codereview.chromium.org/1309143004/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/omaha/OmahaUpdateInfobar.java#newcode92 chrome/android/java/src/org/chromium/chrome/browser/omaha/OmahaUpdateInfobar.java:92: int blockSize = statFs.getBlockSize(); These APIs were deprecated in ...
5 years, 3 months ago (2015-08-27 18:58:45 UTC) #10
Khushal
On 2015/08/27 18:58:45, Yaron wrote: > https://codereview.chromium.org/1309143004/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/omaha/OmahaUpdateInfobar.java > File > chrome/android/java/src/org/chromium/chrome/browser/omaha/OmahaUpdateInfobar.java > (right): > > ...
5 years, 3 months ago (2015-08-27 20:09:01 UTC) #11
Yaron
lgtm https://codereview.chromium.org/1309143004/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/omaha/OmahaUpdateInfobar.java File chrome/android/java/src/org/chromium/chrome/browser/omaha/OmahaUpdateInfobar.java (right): https://codereview.chromium.org/1309143004/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/omaha/OmahaUpdateInfobar.java#newcode108 chrome/android/java/src/org/chromium/chrome/browser/omaha/OmahaUpdateInfobar.java:108: private int getSizeUpdatedApi(StatFs statFs) { nit: make these ...
5 years, 3 months ago (2015-08-27 21:53:03 UTC) #12
Khushal
Done. Thanks Yaron. https://codereview.chromium.org/1309143004/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/omaha/OmahaUpdateInfobar.java File chrome/android/java/src/org/chromium/chrome/browser/omaha/OmahaUpdateInfobar.java (right): https://codereview.chromium.org/1309143004/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/omaha/OmahaUpdateInfobar.java#newcode108 chrome/android/java/src/org/chromium/chrome/browser/omaha/OmahaUpdateInfobar.java:108: private int getSizeUpdatedApi(StatFs statFs) { On ...
5 years, 3 months ago (2015-08-27 23:18:37 UTC) #13
Alexei Svitkine (slow)
On 2015/08/27 18:46:16, Khushal wrote: > On 2015/08/27 18:21:29, Alexei Svitkine wrote: > > > ...
5 years, 3 months ago (2015-08-28 15:30:58 UTC) #14
Khushal
On 2015/08/28 15:30:58, Alexei Svitkine wrote: > On 2015/08/27 18:46:16, Khushal wrote: > > On ...
5 years, 3 months ago (2015-08-29 00:58:32 UTC) #15
Yaron
lgtm https://codereview.chromium.org/1309143004/diff/100001/base/android/record_histogram.cc File base/android/record_histogram.cc (right): https://codereview.chromium.org/1309143004/diff/100001/base/android/record_histogram.cc#newcode89 base/android/record_histogram.cc:89: jstring j_histogram_name, nit: fix indentation https://codereview.chromium.org/1309143004/diff/100001/base/android/record_histogram.cc#newcode104 base/android/record_histogram.cc:104: std::string ...
5 years, 3 months ago (2015-08-31 13:53:21 UTC) #16
Khushal
On 2015/08/31 13:53:21, Yaron wrote: > lgtm > > https://codereview.chromium.org/1309143004/diff/100001/base/android/record_histogram.cc > File base/android/record_histogram.cc (right): > ...
5 years, 3 months ago (2015-08-31 14:42:48 UTC) #17
Alexei Svitkine (slow)
lgtm
5 years, 3 months ago (2015-08-31 14:56:04 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1309143004/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1309143004/120001
5 years, 3 months ago (2015-08-31 14:56:44 UTC) #21
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 3 months ago (2015-08-31 17:33:51 UTC) #22
commit-bot: I haz the power
5 years, 3 months ago (2015-08-31 17:34:30 UTC) #23
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/0e93d6cbb4d81de7e204f5c36cd450f9a1804974
Cr-Commit-Position: refs/heads/master@{#346409}

Powered by Google App Engine
This is Rietveld 408576698