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

Issue 2605553002: Add EffectiveConnectionType enum to the system profile proto (Closed)

Created:
3 years, 12 months ago by tbansal1
Modified:
3 years, 11 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, asvitkine+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add EffectiveConnectionType enum to the system profile proto Value of the EffectiveConnectionType enum is provided by the NetworkMetricsProvider. A new class EffectiveConnectionTypeObserver has been added which listens to the changes in the EffectiveConnectionType, and lives on the same thread as the NetworkQualityEstimator. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester BUG=677158 Review-Url: https://codereview.chromium.org/2605553002 Cr-Commit-Position: refs/heads/master@{#442821} Committed: https://chromium.googlesource.com/chromium/src/+/9b3dd2bc8783876fdf3d9e242b4240a3537d19e2

Patch Set 1 : ps #

Patch Set 2 : Add tests #

Total comments: 17

Patch Set 3 : Rebased, ryansturm comments, fix failing chromeos test #

Total comments: 16

Patch Set 4 : asvitkine comments #

Patch Set 5 : fix test #

Patch Set 6 : Update proto, Use interface, pass in ctor #

Total comments: 6

Patch Set 7 : asvitkine comments #

Total comments: 6

Patch Set 8 : asvitkine comments, more API cleanup #

Total comments: 4

Patch Set 9 : Use MakeUnique #

Patch Set 10 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+468 lines, -4 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/metrics/chrome_metrics_service_client.cc View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -3 lines 0 comments Download
A chrome/browser/metrics/network_quality_estimator_provider_impl.h View 1 2 3 4 5 6 7 1 chunk +38 lines, -0 lines 0 comments Download
A chrome/browser/metrics/network_quality_estimator_provider_impl.cc View 1 2 3 4 5 6 7 1 chunk +42 lines, -0 lines 0 comments Download
M components/metrics/BUILD.gn View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -1 line 0 comments Download
M components/metrics/net/DEPS View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M components/metrics/net/network_metrics_provider.h View 1 2 3 4 5 6 7 5 chunks +66 lines, -0 lines 0 comments Download
M components/metrics/net/network_metrics_provider.cc View 1 2 3 4 5 6 7 13 chunks +172 lines, -0 lines 0 comments Download
A components/metrics/net/network_metrics_provider_unittest.cc View 1 2 3 4 5 6 7 1 chunk +114 lines, -0 lines 0 comments Download
M components/metrics/proto/system_profile.proto View 1 2 3 4 5 2 chunks +22 lines, -0 lines 0 comments Download

Messages

Total messages: 197 (171 generated)
tbansal1
ryansturm: ptal at *. Thanks.
3 years, 11 months ago (2016-12-27 20:19:05 UTC) #75
RyanSturm
I might be overlooking something. If this all happens on the UI thread, wouldn't using ...
3 years, 11 months ago (2016-12-27 21:14:48 UTC) #77
tbansal1
On 2016/12/27 21:14:48, Ryan Sturm wrote: > I might be overlooking something. If this all ...
3 years, 11 months ago (2016-12-27 21:23:15 UTC) #78
RyanSturm
On 2016/12/27 21:23:15, tbansal1 wrote: > On 2016/12/27 21:14:48, Ryan Sturm wrote: > > I ...
3 years, 11 months ago (2016-12-27 21:27:07 UTC) #79
RyanSturm
2 themes of optional nits: referring to the IO thread in a place that maybe ...
3 years, 11 months ago (2016-12-28 21:53:11 UTC) #94
tbansal1
asvitkine: ptal at chrome/browser/metrics and components/metrics/ Thanks. https://codereview.chromium.org/2605553002/diff/480001/chrome/browser/metrics/chrome_metrics_service_client.cc File chrome/browser/metrics/chrome_metrics_service_client.cc (right): https://codereview.chromium.org/2605553002/diff/480001/chrome/browser/metrics/chrome_metrics_service_client.cc#newcode928 chrome/browser/metrics/chrome_metrics_service_client.cc:928: // Provide ...
3 years, 11 months ago (2017-01-03 17:25:14 UTC) #123
Alexei Svitkine (slow)
https://codereview.chromium.org/2605553002/diff/620001/chrome/browser/metrics/chrome_metrics_service_client.cc File chrome/browser/metrics/chrome_metrics_service_client.cc (right): https://codereview.chromium.org/2605553002/diff/620001/chrome/browser/metrics/chrome_metrics_service_client.cc#newcode129 chrome/browser/metrics/chrome_metrics_service_client.cc:129: if (!io_thread) In what cases would this be hit? ...
3 years, 11 months ago (2017-01-03 17:48:49 UTC) #124
tbansal1
asvitkine: ptal. I will work on the server-side CL but it would be good for ...
3 years, 11 months ago (2017-01-03 18:55:44 UTC) #125
asvitkine_google
https://codereview.chromium.org/2605553002/diff/620001/components/metrics/proto/system_profile.proto File components/metrics/proto/system_profile.proto (right): https://codereview.chromium.org/2605553002/diff/620001/components/metrics/proto/system_profile.proto#newcode384 components/metrics/proto/system_profile.proto:384: optional EffectiveConnectionType effective_connection_type = 6; On 2017/01/03 18:55:44, tbansal1 ...
3 years, 11 months ago (2017-01-03 19:04:13 UTC) #129
asvitkine_google
https://codereview.chromium.org/2605553002/diff/620001/chrome/browser/metrics/chrome_metrics_service_client.cc File chrome/browser/metrics/chrome_metrics_service_client.cc (right): https://codereview.chromium.org/2605553002/diff/620001/chrome/browser/metrics/chrome_metrics_service_client.cc#newcode598 chrome/browser/metrics/chrome_metrics_service_client.cc:598: weak_ptr_factory_.GetWeakPtr())); On 2017/01/03 18:55:43, tbansal1 wrote: > On 2017/01/03 ...
3 years, 11 months ago (2017-01-03 19:09:51 UTC) #132
tbansal1
On 2017/01/03 19:09:51, asvitkine_google (ooo) wrote: > https://codereview.chromium.org/2605553002/diff/620001/chrome/browser/metrics/chrome_metrics_service_client.cc > File chrome/browser/metrics/chrome_metrics_service_client.cc (right): > > https://codereview.chromium.org/2605553002/diff/620001/chrome/browser/metrics/chrome_metrics_service_client.cc#newcode598 ...
3 years, 11 months ago (2017-01-03 19:11:31 UTC) #133
tbansal1
asvitkine: ptal at PS#6. Thanks.
3 years, 11 months ago (2017-01-03 23:31:50 UTC) #143
Alexei Svitkine (slow)
https://codereview.chromium.org/2605553002/diff/780001/chromecast/browser/metrics/cast_metrics_service_client.cc File chromecast/browser/metrics/cast_metrics_service_client.cc (right): https://codereview.chromium.org/2605553002/diff/780001/chromecast/browser/metrics/cast_metrics_service_client.cc#newcode363 chromecast/browser/metrics/cast_metrics_service_client.cc:363: nullptr /* network_quality_estimator_provider */, Up to you, but you ...
3 years, 11 months ago (2017-01-04 15:18:59 UTC) #155
tbansal1
asvitkine: ptal. Thanks for the help. https://codereview.chromium.org/2605553002/diff/780001/chromecast/browser/metrics/cast_metrics_service_client.cc File chromecast/browser/metrics/cast_metrics_service_client.cc (right): https://codereview.chromium.org/2605553002/diff/780001/chromecast/browser/metrics/cast_metrics_service_client.cc#newcode363 chromecast/browser/metrics/cast_metrics_service_client.cc:363: nullptr /* network_quality_estimator_provider ...
3 years, 11 months ago (2017-01-04 20:47:54 UTC) #160
Alexei Svitkine (slow)
https://codereview.chromium.org/2605553002/diff/820001/chrome/browser/metrics/network_quality_estimator_provider_impl.h File chrome/browser/metrics/network_quality_estimator_provider_impl.h (right): https://codereview.chromium.org/2605553002/diff/820001/chrome/browser/metrics/network_quality_estimator_provider_impl.h#newcode26 chrome/browser/metrics/network_quality_estimator_provider_impl.h:26: // NetworkMetricsProvider::NetworkQualityEstimatorProvider implementation: Nit: For new code, I think ...
3 years, 11 months ago (2017-01-04 20:54:21 UTC) #162
tbansal1
ptal. Thanks. https://codereview.chromium.org/2605553002/diff/820001/chrome/browser/metrics/network_quality_estimator_provider_impl.h File chrome/browser/metrics/network_quality_estimator_provider_impl.h (right): https://codereview.chromium.org/2605553002/diff/820001/chrome/browser/metrics/network_quality_estimator_provider_impl.h#newcode26 chrome/browser/metrics/network_quality_estimator_provider_impl.h:26: // NetworkMetricsProvider::NetworkQualityEstimatorProvider implementation: On 2017/01/04 20:54:21, Alexei ...
3 years, 11 months ago (2017-01-04 21:24:19 UTC) #165
Alexei Svitkine (slow)
lgtm % comment Please don't submit until the server-side CL is landed. https://codereview.chromium.org/2605553002/diff/860001/chrome/browser/metrics/chrome_metrics_service_client.cc File chrome/browser/metrics/chrome_metrics_service_client.cc ...
3 years, 11 months ago (2017-01-05 16:10:31 UTC) #169
tbansal1
https://codereview.chromium.org/2605553002/diff/860001/chrome/browser/metrics/chrome_metrics_service_client.cc File chrome/browser/metrics/chrome_metrics_service_client.cc (right): https://codereview.chromium.org/2605553002/diff/860001/chrome/browser/metrics/chrome_metrics_service_client.cc#newcode577 chrome/browser/metrics/chrome_metrics_service_client.cc:577: std::unique_ptr<metrics::NetworkQualityEstimatorProviderImpl>( On 2017/01/05 16:10:31, Alexei Svitkine (slow) wrote: > ...
3 years, 11 months ago (2017-01-05 17:20:31 UTC) #171
tbansal1
Yes, I will submit this after the server side change has landed.
3 years, 11 months ago (2017-01-05 17:21:02 UTC) #172
Alexei Svitkine (slow)
sg - thanks! On Thu, Jan 5, 2017 at 12:21 PM, <tbansal@chromium.org> wrote: > Yes, ...
3 years, 11 months ago (2017-01-05 17:33:00 UTC) #174
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2605553002/900001
3 years, 11 months ago (2017-01-11 01:33:07 UTC) #187
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/339026)
3 years, 11 months ago (2017-01-11 01:41:47 UTC) #189
tbansal1
hashimoto: ptal at components/metrics/net/DEPS for added dependency on chromeos/dbus. This is being used for test ...
3 years, 11 months ago (2017-01-11 06:00:34 UTC) #191
hashimoto
lgtm
3 years, 11 months ago (2017-01-11 06:07:40 UTC) #192
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2605553002/900001
3 years, 11 months ago (2017-01-11 06:08:46 UTC) #194
commit-bot: I haz the power
3 years, 11 months ago (2017-01-11 06:13:34 UTC) #197
Message was sent while issue was closed.
Committed patchset #10 (id:900001) as
https://chromium.googlesource.com/chromium/src/+/9b3dd2bc8783876fdf3d9e242b42...

Powered by Google App Engine
This is Rietveld 408576698