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

Issue 922383003: Enable UMA log uploads for cellular networks. (Closed)

Created:
5 years, 10 months ago by gayane -on leave until 09-2017
Modified:
5 years, 10 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, 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

Enable UMA log uploads for cellular networks. For enabling UMA uploads on cellular networks upload interval should be increased to 15min instead of 5min which according to initial experiments showed to decrease average overall size of the upload. This behavior is enabled for users which are assigned to Finch experiment. BUG=455847 Committed: https://crrev.com/d52ca402963fc3fc25c9f93b577f79a5eebbb10f Cr-Commit-Position: refs/heads/master@{#317654}

Patch Set 1 : upload interval based on the connection type #

Total comments: 9

Patch Set 2 : Field trials added #

Total comments: 6

Patch Set 3 : Callback to set connection type in the scheduler #

Total comments: 10

Patch Set 4 : Callback to get connection type #

Total comments: 6

Patch Set 5 : Sending NetworkMetricsProvider as scoped_ptr #

Total comments: 14

Patch Set 6 : Removed old solution, fixed comments #

Total comments: 6

Patch Set 7 : handle the network metricsprovider is null #

Patch Set 8 : fix non-android and unittests #

Patch Set 9 : fix for IOS #

Total comments: 4

Patch Set 10 : Metrics service is not dependent on net #

Total comments: 6

Patch Set 11 : add checks #

Total comments: 6

Patch Set 12 : comments fixed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -15 lines) Patch
M chrome/browser/metrics/chrome_metrics_service_client.cc View 1 2 3 4 5 6 7 8 9 1 chunk +7 lines, -3 lines 0 comments Download
M components/metrics/metrics_reporting_scheduler.h View 1 2 3 4 5 2 chunks +10 lines, -1 line 0 comments Download
M components/metrics/metrics_reporting_scheduler.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +23 lines, -6 lines 0 comments Download
M components/metrics/metrics_reporting_scheduler_unittest.cc View 1 2 3 4 5 6 7 4 chunks +11 lines, -2 lines 0 comments Download
M components/metrics/metrics_service.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +8 lines, -0 lines 0 comments Download
M components/metrics/metrics_service.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +11 lines, -3 lines 0 comments Download
M components/metrics/net/network_metrics_provider.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +11 lines, -0 lines 0 comments Download
M components/metrics/net/network_metrics_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +20 lines, -0 lines 0 comments Download

Messages

Total messages: 39 (12 generated)
gayane -on leave until 09-2017
For now only upload interval change based on the connection type is implemented.
5 years, 10 months ago (2015-02-13 20:52:59 UTC) #3
Alexei Svitkine (slow)
Approach seems reasonable, but I guess you're still missing: - Field-trial based control. - Hooking ...
5 years, 10 months ago (2015-02-13 21:11:41 UTC) #4
gayane -on leave until 09-2017
I have fixed your comments and also added field trials, but didn't manage to test ...
5 years, 10 months ago (2015-02-13 22:23:14 UTC) #5
Alexei Svitkine (slow)
https://codereview.chromium.org/922383003/diff/40001/components/metrics/metrics_reporting_scheduler.h File components/metrics/metrics_reporting_scheduler.h (right): https://codereview.chromium.org/922383003/diff/40001/components/metrics/metrics_reporting_scheduler.h#newcode13 components/metrics/metrics_reporting_scheduler.h:13: #include "components/metrics/net/network_metrics_provider.h" Hmm, I just realised this is problematic. ...
5 years, 10 months ago (2015-02-13 22:39:50 UTC) #6
gayane -on leave until 09-2017
I have added a callback function in the MetricsService to update a local variable of ...
5 years, 10 months ago (2015-02-17 19:38:02 UTC) #7
Alexei Svitkine (slow)
Hey gayane, I still prefer the approach I suggested in person. I think it might ...
5 years, 10 months ago (2015-02-17 20:50:04 UTC) #8
gayane -on leave until 09-2017
Changed the callback as you mentioned. https://codereview.chromium.org/922383003/diff/60001/components/metrics/metrics_reporting_scheduler.h File components/metrics/metrics_reporting_scheduler.h (right): https://codereview.chromium.org/922383003/diff/60001/components/metrics/metrics_reporting_scheduler.h#newcode20 components/metrics/metrics_reporting_scheduler.h:20: explicit MetricsReportingScheduler( On ...
5 years, 10 months ago (2015-02-18 00:30:35 UTC) #9
Alexei Svitkine (slow)
https://codereview.chromium.org/922383003/diff/80001/components/metrics/metrics_reporting_scheduler.cc File components/metrics/metrics_reporting_scheduler.cc (right): https://codereview.chromium.org/922383003/diff/80001/components/metrics/metrics_reporting_scheduler.cc#newcode202 components/metrics/metrics_reporting_scheduler.cc:202: if (IsCellularEnabledByExperiment() && is_cellular) Nit: Reverse the order in ...
5 years, 10 months ago (2015-02-18 03:26:23 UTC) #10
gayane -on leave until 09-2017
Done. https://codereview.chromium.org/922383003/diff/80001/components/metrics/metrics_reporting_scheduler.cc File components/metrics/metrics_reporting_scheduler.cc (right): https://codereview.chromium.org/922383003/diff/80001/components/metrics/metrics_reporting_scheduler.cc#newcode202 components/metrics/metrics_reporting_scheduler.cc:202: if (IsCellularEnabledByExperiment() && is_cellular) On 2015/02/18 03:26:23, Alexei ...
5 years, 10 months ago (2015-02-18 21:38:23 UTC) #12
Alexei Svitkine (slow)
Looking good - almost there! https://codereview.chromium.org/922383003/diff/110007/components/metrics/metrics_reporting_scheduler.h File components/metrics/metrics_reporting_scheduler.h (right): https://codereview.chromium.org/922383003/diff/110007/components/metrics/metrics_reporting_scheduler.h#newcode49 components/metrics/metrics_reporting_scheduler.h:49: void SetConnectionType(bool is_cellular); Is ...
5 years, 10 months ago (2015-02-18 22:03:09 UTC) #13
gayane -on leave until 09-2017
Removed remains of the old solution and fixed the comments. https://codereview.chromium.org/922383003/diff/110007/components/metrics/metrics_reporting_scheduler.h File components/metrics/metrics_reporting_scheduler.h (right): https://codereview.chromium.org/922383003/diff/110007/components/metrics/metrics_reporting_scheduler.h#newcode49 ...
5 years, 10 months ago (2015-02-19 16:24:35 UTC) #14
Alexei Svitkine (slow)
lgtm % remaining comments https://codereview.chromium.org/922383003/diff/130001/components/metrics/metrics_service.cc File components/metrics/metrics_service.cc (right): https://codereview.chromium.org/922383003/diff/130001/components/metrics/metrics_service.cc#newcode1279 components/metrics/metrics_service.cc:1279: network_metrics_provider_->GetConnectionType(); Since it's optional for ...
5 years, 10 months ago (2015-02-19 16:29:13 UTC) #15
gayane -on leave until 09-2017
Done. https://codereview.chromium.org/922383003/diff/130001/components/metrics/metrics_service.cc File components/metrics/metrics_service.cc (right): https://codereview.chromium.org/922383003/diff/130001/components/metrics/metrics_service.cc#newcode1279 components/metrics/metrics_service.cc:1279: network_metrics_provider_->GetConnectionType(); On 2015/02/19 16:29:12, Alexei Svitkine wrote: > ...
5 years, 10 months ago (2015-02-19 22:40:13 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/922383003/150001
5 years, 10 months ago (2015-02-19 22:41:16 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_chromeos_rel/builds/10117) linux_chromium_gn_dbg on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 10 months ago (2015-02-19 22:50:39 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/922383003/170001
5 years, 10 months ago (2015-02-20 21:03:49 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator/builds/61067)
5 years, 10 months ago (2015-02-20 21:13:56 UTC) #25
gayane -on leave until 09-2017
Could you please have a look at Patch set #9. For IOS I was getting ...
5 years, 10 months ago (2015-02-20 21:49:44 UTC) #26
Alexei Svitkine (slow)
LGTM % comment https://codereview.chromium.org/922383003/diff/190001/components/metrics/metrics_service.cc File components/metrics/metrics_service.cc (right): https://codereview.chromium.org/922383003/diff/190001/components/metrics/metrics_service.cc#newcode1278 components/metrics/metrics_service.cc:1278: // If network provider is not ...
5 years, 10 months ago (2015-02-20 22:39:29 UTC) #27
gayane -on leave until 09-2017
Metrics service is not dependent on net. https://codereview.chromium.org/922383003/diff/190001/components/metrics/metrics_service.cc File components/metrics/metrics_service.cc (right): https://codereview.chromium.org/922383003/diff/190001/components/metrics/metrics_service.cc#newcode1278 components/metrics/metrics_service.cc:1278: // If ...
5 years, 10 months ago (2015-02-23 18:27:45 UTC) #30
Alexei Svitkine (slow)
not lgtm General approach looks great, just a few comments. https://codereview.chromium.org/922383003/diff/230001/components/metrics/metrics_reporting_scheduler.cc File components/metrics/metrics_reporting_scheduler.cc (right): https://codereview.chromium.org/922383003/diff/230001/components/metrics/metrics_reporting_scheduler.cc#newcode211 ...
5 years, 10 months ago (2015-02-23 18:54:06 UTC) #31
gayane -on leave until 09-2017
Checks added. https://codereview.chromium.org/922383003/diff/230001/components/metrics/metrics_reporting_scheduler.cc File components/metrics/metrics_reporting_scheduler.cc (right): https://codereview.chromium.org/922383003/diff/230001/components/metrics/metrics_reporting_scheduler.cc#newcode211 components/metrics/metrics_reporting_scheduler.cc:211: cellular_callback_.Run(&is_cellular); On 2015/02/23 18:54:06, Alexei Svitkine wrote: ...
5 years, 10 months ago (2015-02-23 20:14:09 UTC) #32
Alexei Svitkine (slow)
LGTM with a few final comments. Thanks! https://codereview.chromium.org/922383003/diff/250001/components/metrics/metrics_service.h File components/metrics/metrics_service.h (right): https://codereview.chromium.org/922383003/diff/250001/components/metrics/metrics_service.h#newcode246 components/metrics/metrics_service.h:246: // Sets ...
5 years, 10 months ago (2015-02-23 20:18:15 UTC) #33
gayane -on leave until 09-2017
Comments fixed. https://codereview.chromium.org/922383003/diff/250001/components/metrics/metrics_service.h File components/metrics/metrics_service.h (right): https://codereview.chromium.org/922383003/diff/250001/components/metrics/metrics_service.h#newcode246 components/metrics/metrics_service.h:246: // Sets the connection type callback. On ...
5 years, 10 months ago (2015-02-23 20:27:54 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/922383003/270001
5 years, 10 months ago (2015-02-23 20:30:29 UTC) #37
commit-bot: I haz the power
Committed patchset #12 (id:270001)
5 years, 10 months ago (2015-02-23 21:23:15 UTC) #38
commit-bot: I haz the power
5 years, 10 months ago (2015-02-23 21:25:43 UTC) #39
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/d52ca402963fc3fc25c9f93b577f79a5eebbb10f
Cr-Commit-Position: refs/heads/master@{#317654}

Powered by Google App Engine
This is Rietveld 408576698