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

Issue 2010253003: Sending a data saver Pageload metrics pingback (Closed)

Created:
4 years, 6 months ago by RyanSturm
Modified:
4 years, 6 months ago
CC:
Bryan McQuade, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Sending a data saver Pageload metrics pingback This sends a request to the data saver proxy server containing page load metrics for any page loads through the data saver proxy server. BUG=604853 Committed: https://crrev.com/5c5a6bc2a6d02710a32fc762caa782d0941fbb98 Cr-Commit-Position: refs/heads/master@{#400240}

Patch Set 1 #

Total comments: 53

Patch Set 2 : Addressing comments from tbansal #

Total comments: 46

Patch Set 3 : More fixes for tbansal comments #

Patch Set 4 : Turning live pingbacks off, waiting for client config probability #

Total comments: 31

Patch Set 5 : Some fixes, verified android UMA state is consistent with the check. #

Total comments: 24

Patch Set 6 : addressing comments from tbansal #

Total comments: 8

Patch Set 7 : Added comments #

Patch Set 8 : rebase #

Patch Set 9 : Adding a command line switch to force pingbacks. #

Patch Set 10 : Remove UMA check #

Total comments: 8

Patch Set 11 : Sending partial messages #

Patch Set 12 : rebase #

Patch Set 13 : Preventing pingbacks from the holdback experiment #

Total comments: 2

Patch Set 14 : Adding tamper detection experiment check #

Patch Set 15 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+801 lines, -89 lines) Patch
M chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.h View 1 2 3 4 5 6 7 8 9 2 chunks +14 lines, -4 lines 0 comments Download
M chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +64 lines, -6 lines 0 comments Download
M chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +172 lines, -76 lines 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M components/data_reduction_proxy.gypi View 1 3 chunks +4 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/browser/BUILD.gn View 2 chunks +3 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_data.h View 1 2 3 4 5 1 chunk +22 lines, -2 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_data.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_data_unittest.cc View 1 2 3 chunks +16 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +6 lines, -1 line 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -0 lines 0 comments Download
A components/data_reduction_proxy/core/browser/data_reduction_proxy_pingback_client.h View 1 2 3 4 5 1 chunk +71 lines, -0 lines 0 comments Download
A components/data_reduction_proxy/core/browser/data_reduction_proxy_pingback_client.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +124 lines, -0 lines 0 comments Download
A components/data_reduction_proxy/core/browser/data_reduction_proxy_pingback_client_unittest.cc View 1 2 3 4 5 1 chunk +148 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_service.h View 3 chunks +7 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_service.cc View 2 chunks +3 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/common/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
A components/data_reduction_proxy/core/common/data_reduction_proxy_page_load_timing.h View 1 2 3 4 5 1 chunk +45 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_params.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +8 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_params.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +29 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_switches.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_switches.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +6 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/proto/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
A components/data_reduction_proxy/proto/pageload_metrics.proto View 1 chunk +49 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 45 (14 generated)
RyanSturm
tbansal: PTAL
4 years, 6 months ago (2016-05-27 19:41:34 UTC) #2
tbansal1
Please split the CL as discussed offline. https://codereview.chromium.org/2010253003/diff/1/chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc File chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc (right): https://codereview.chromium.org/2010253003/diff/1/chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc#newcode93 chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc:93: if (pingback_client_) ...
4 years, 6 months ago (2016-05-27 20:54:58 UTC) #3
RyanSturm
On 2016/05/27 20:54:58, tbansal1 wrote: > Please split the CL as discussed offline. Split CL ...
4 years, 6 months ago (2016-05-27 22:59:31 UTC) #4
tbansal1
https://codereview.chromium.org/2010253003/diff/1/components/data_reduction_proxy/core/browser/data_reduction_proxy_pingback_client.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_pingback_client.cc (right): https://codereview.chromium.org/2010253003/diff/1/components/data_reduction_proxy/core/browser/data_reduction_proxy_pingback_client.cc#newcode67 components/data_reduction_proxy/core/browser/data_reduction_proxy_pingback_client.cc:67: current_fetcher_ = CreateFetcherForData(data_to_send_.front()); This should happen only if user ...
4 years, 6 months ago (2016-05-31 16:11:46 UTC) #5
RyanSturm
https://codereview.chromium.org/2010253003/diff/1/chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc File chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc (right): https://codereview.chromium.org/2010253003/diff/1/chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc#newcode93 chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc:93: if (pingback_client_) { On 2016/05/27 20:54:57, tbansal1 wrote: > ...
4 years, 6 months ago (2016-06-01 22:19:11 UTC) #6
tbansal1
https://codereview.chromium.org/2010253003/diff/1/components/data_reduction_proxy/core/browser/data_reduction_proxy_pingback_client.h File components/data_reduction_proxy/core/browser/data_reduction_proxy_pingback_client.h (right): https://codereview.chromium.org/2010253003/diff/1/components/data_reduction_proxy/core/browser/data_reduction_proxy_pingback_client.h#newcode36 components/data_reduction_proxy/core/browser/data_reduction_proxy_pingback_client.h:36: void OnURLFetchComplete(const net::URLFetcher* source) override; On 2016/06/01 22:19:10, RyanSturm ...
4 years, 6 months ago (2016-06-01 23:36:18 UTC) #7
tbansal1
https://codereview.chromium.org/2010253003/diff/20001/components/data_reduction_proxy/core/browser/data_reduction_proxy_pingback_client.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_pingback_client.cc (right): https://codereview.chromium.org/2010253003/diff/20001/components/data_reduction_proxy/core/browser/data_reduction_proxy_pingback_client.cc#newcode90 components/data_reduction_proxy/core/browser/data_reduction_proxy_pingback_client.cc:90: DataReductionProxyPingbackClient::CreateFetcherForData( You can change this to void MaybeCreateFetcherForDataAndStart(const std::string& ...
4 years, 6 months ago (2016-06-02 16:50:57 UTC) #8
RyanSturm
https://codereview.chromium.org/2010253003/diff/20001/chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc File chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc (right): https://codereview.chromium.org/2010253003/diff/20001/chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc#newcode81 chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc:81: if (!WasStartedInForegroundEventInForeground(timing.load_event_start, info)) { On 2016/06/01 23:36:17, tbansal1 wrote: ...
4 years, 6 months ago (2016-06-02 18:17:11 UTC) #9
tbansal1
https://codereview.chromium.org/2010253003/diff/60001/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h File chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h (right): https://codereview.chromium.org/2010253003/diff/60001/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h#newcode77 chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h:77: static bool IsMetricsAndCrashReportingEnabled(); Add a comment which addresses: (i) ...
4 years, 6 months ago (2016-06-02 22:56:38 UTC) #10
RyanSturm
https://codereview.chromium.org/2010253003/diff/60001/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h File chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h (right): https://codereview.chromium.org/2010253003/diff/60001/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h#newcode77 chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h:77: static bool IsMetricsAndCrashReportingEnabled(); On 2016/06/02 22:56:37, tbansal1 wrote: > ...
4 years, 6 months ago (2016-06-03 21:20:50 UTC) #11
tbansal1
This time I looked at the tests too. Most of the comments are nits. https://codereview.chromium.org/2010253003/diff/60001/chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc ...
4 years, 6 months ago (2016-06-03 23:28:19 UTC) #12
RyanSturm
https://codereview.chromium.org/2010253003/diff/80001/chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc File chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc (right): https://codereview.chromium.org/2010253003/diff/80001/chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc#newcode67 chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc:67: if (!WasStartedInForegroundEventInForeground(timing.response_start, info)) On 2016/06/03 23:28:18, tbansal1 wrote: > ...
4 years, 6 months ago (2016-06-04 00:17:11 UTC) #13
tbansal1
lgtm
4 years, 6 months ago (2016-06-04 00:20:59 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2010253003/100001
4 years, 6 months ago (2016-06-04 04:26:08 UTC) #16
RyanSturm
csharrison: ptal @ chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer* asvitkine: ptal @ IsMetricsAndCrashReportingEnabled usage in data_reduction_proxy_chrome_settings.cc / data_reduction_proxy_metrics_observer.cc
4 years, 6 months ago (2016-06-04 04:32:47 UTC) #19
Charlie Harrison
Looks okay, though I am concerned about the raw browser_context_ pointer during WebContents shutdown. https://codereview.chromium.org/2010253003/diff/100001/chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc ...
4 years, 6 months ago (2016-06-06 14:00:12 UTC) #20
RyanSturm
https://codereview.chromium.org/2010253003/diff/100001/chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc File chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc (right): https://codereview.chromium.org/2010253003/diff/100001/chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc#newcode71 chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc:71: if (!WasStartedInForegroundEventInForeground(timing.response_start, info)) On 2016/06/06 14:00:12, csharrison wrote: > ...
4 years, 6 months ago (2016-06-06 19:59:01 UTC) #21
Charlie Harrison
Thanks, this l-g-t-m except for the fact that the OnComplete call for PLMO sometimes is ...
4 years, 6 months ago (2016-06-07 13:47:20 UTC) #22
RyanSturm
On 2016/06/07 13:47:20, csharrison wrote: > Thanks, this l-g-t-m except for the fact that the ...
4 years, 6 months ago (2016-06-07 14:59:49 UTC) #23
Charlie Harrison
On 2016/06/07 14:59:49, RyanSturm wrote: > On 2016/06/07 13:47:20, csharrison wrote: > > Thanks, this ...
4 years, 6 months ago (2016-06-07 15:01:58 UTC) #24
Bryan McQuade
https://codereview.chromium.org/2010253003/diff/180001/chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc File chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc (right): https://codereview.chromium.org/2010253003/diff/180001/chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc#newcode69 chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc:69: void DataReductionProxyMetricsObserver::OnComplete( keep in mind that on android, about ...
4 years, 6 months ago (2016-06-07 19:49:46 UTC) #26
RyanSturm
Still waiting on privacy to review the UMA opt-in no longer being necessary. https://codereview.chromium.org/2010253003/diff/180001/chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc File ...
4 years, 6 months ago (2016-06-07 21:52:10 UTC) #27
Bryan McQuade
lgtm
4 years, 6 months ago (2016-06-09 16:54:27 UTC) #28
tbansal1
https://codereview.chromium.org/2010253003/diff/240001/chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc File chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc (right): https://codereview.chromium.org/2010253003/diff/240001/chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc#newcode78 chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc:78: if (data_reduction_proxy::params::IsIncludedInHoldbackFieldTrial()) Also, skip the pig backs if the ...
4 years, 6 months ago (2016-06-14 19:55:19 UTC) #29
RyanSturm
https://codereview.chromium.org/2010253003/diff/240001/chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc File chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc (right): https://codereview.chromium.org/2010253003/diff/240001/chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc#newcode78 chrome/browser/page_load_metrics/observers/data_reduction_proxy_metrics_observer.cc:78: if (data_reduction_proxy::params::IsIncludedInHoldbackFieldTrial()) On 2016/06/14 19:55:19, tbansal1 wrote: > Also, ...
4 years, 6 months ago (2016-06-14 20:21:57 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2010253003/260001
4 years, 6 months ago (2016-06-16 16:57:49 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2010253003/260001
4 years, 6 months ago (2016-06-16 16:59:05 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/82456) android_clang_dbg_recipe on tryserver.chromium.android (JOB_FAILED, ...
4 years, 6 months ago (2016-06-16 17:03:48 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2010253003/300001
4 years, 6 months ago (2016-06-16 18:53:17 UTC) #42
commit-bot: I haz the power
Committed patchset #15 (id:300001)
4 years, 6 months ago (2016-06-16 20:03:18 UTC) #43
commit-bot: I haz the power
4 years, 6 months ago (2016-06-16 20:05:28 UTC) #45
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/5c5a6bc2a6d02710a32fc762caa782d0941fbb98
Cr-Commit-Position: refs/heads/master@{#400240}

Powered by Google App Engine
This is Rietveld 408576698