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

Issue 2462983003: Move data use measurement to DataUseNetworkDelegate (Closed)

Created:
4 years, 1 month ago by Raj
Modified:
4 years, 1 month ago
CC:
chromium-reviews, blundell+watchlist_chromium.org, cbentzel+watch_chromium.org, sdefresne+watchlist_chromium.org, droger+watchlist_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move data use measurement to DataUseNetworkDelegate Currently data_use_measurement hooks to ChromeNetworkDelegate. It is more appropriate to hook to DataUseNetworkDelegate, since getting web content observer events other UI events will be easier (in future CLs) from DataUseAscriber. BUG=648808 Committed: https://crrev.com/14a5a85e424b65bcf740e9b4031d0af42f95b1b8 Cr-Commit-Position: refs/heads/master@{#432910}

Patch Set 1 #

Patch Set 2 : Fixed linux unittest compile #

Total comments: 3

Patch Set 3 : Move DataUseMeasurement to core #

Total comments: 1

Patch Set 4 : Addressed comments #

Total comments: 10

Patch Set 5 : Addressed ryansturm comments #

Total comments: 12

Patch Set 6 : Addressed kundaji comments #

Patch Set 7 : Rebased #

Total comments: 2

Patch Set 8 : Rebased and fixed nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+520 lines, -1076 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/data_use_measurement/chrome_data_use_ascriber.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/data_use_measurement/chrome_data_use_ascriber.cc View 1 2 3 4 5 6 7 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/web_request/web_request_api_unittest.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/io_thread.h View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/io_thread.cc View 1 2 3 4 5 6 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/net/chrome_network_delegate.h View 3 chunks +2 lines, -9 lines 0 comments Download
M chrome/browser/net/chrome_network_delegate.cc View 1 2 3 4 5 6 6 chunks +1 line, -9 lines 0 comments Download
M chrome/browser/net/chrome_network_delegate_unittest.cc View 1 2 3 4 5 6 11 chunks +14 lines, -153 lines 0 comments Download
M chrome/browser/precache/precache_util.cc View 1 2 3 4 2 chunks +5 lines, -8 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M components/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M components/data_use_measurement/content/BUILD.gn View 1 2 3 4 5 6 1 chunk +3 lines, -22 lines 0 comments Download
M components/data_use_measurement/content/DEPS View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
A components/data_use_measurement/content/content_url_request_classifier.h View 1 2 3 4 1 chunk +26 lines, -0 lines 0 comments Download
A components/data_use_measurement/content/content_url_request_classifier.cc View 1 2 3 4 5 6 1 chunk +29 lines, -0 lines 0 comments Download
D components/data_use_measurement/content/data_use_measurement.h View 1 2 1 chunk +0 lines, -167 lines 0 comments Download
D components/data_use_measurement/content/data_use_measurement.cc View 1 2 1 chunk +0 lines, -313 lines 0 comments Download
D components/data_use_measurement/content/data_use_measurement_unittest.cc View 1 2 1 chunk +0 lines, -315 lines 0 comments Download
M components/data_use_measurement/core/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +31 lines, -2 lines 0 comments Download
M components/data_use_measurement/core/DEPS View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M components/data_use_measurement/core/data_use_ascriber.h View 1 2 3 4 5 6 7 4 chunks +8 lines, -1 line 0 comments Download
M components/data_use_measurement/core/data_use_ascriber.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -2 lines 0 comments Download
A + components/data_use_measurement/core/data_use_measurement.h View 1 2 3 4 5 6 7 5 chunks +10 lines, -4 lines 0 comments Download
A + components/data_use_measurement/core/data_use_measurement.cc View 1 2 3 4 5 6 7 9 chunks +35 lines, -26 lines 0 comments Download
A + components/data_use_measurement/core/data_use_measurement_unittest.cc View 1 2 3 4 13 chunks +44 lines, -27 lines 0 comments Download
M components/data_use_measurement/core/data_use_network_delegate.h View 1 2 3 4 5 6 7 3 chunks +10 lines, -1 line 0 comments Download
M components/data_use_measurement/core/data_use_network_delegate.cc View 1 2 3 4 5 6 7 3 chunks +16 lines, -2 lines 0 comments Download
A components/data_use_measurement/core/data_use_network_delegate_unittest.cc View 1 2 3 4 5 6 1 chunk +232 lines, -0 lines 0 comments Download
A components/data_use_measurement/core/url_request_classifier.h View 1 2 3 4 1 chunk +25 lines, -0 lines 0 comments Download

Messages

Total messages: 68 (40 generated)
Raj
mattm: ptal chrome/browser/net/* mlerman: ptal chrome/browser/profiles/* rch: chrome/browser/io_thread.* kundaji: ptal components/data_use_measurement/*
4 years, 1 month ago (2016-10-31 17:56:41 UTC) #4
Not at Google. Contact bengr
Layering violations: https://codereview.chromium.org/2462983003/diff/20001/components/data_use_measurement/core/DEPS File components/data_use_measurement/core/DEPS (right): https://codereview.chromium.org/2462983003/diff/20001/components/data_use_measurement/core/DEPS#newcode4 components/data_use_measurement/core/DEPS:4: "+content/public/common", data_use_measurement/core/ should not depend on content/. ...
4 years, 1 month ago (2016-11-01 21:32:04 UTC) #13
Raj
On 2016/11/01 21:32:04, kundaji wrote: > Layering violations: > > https://codereview.chromium.org/2462983003/diff/20001/components/data_use_measurement/core/DEPS > File components/data_use_measurement/core/DEPS (right): ...
4 years, 1 month ago (2016-11-02 17:45:44 UTC) #15
Raj
kundaji: ptal. I will add other reviewers after your review. https://codereview.chromium.org/2462983003/diff/20001/components/data_use_measurement/core/DEPS File components/data_use_measurement/core/DEPS (right): https://codereview.chromium.org/2462983003/diff/20001/components/data_use_measurement/core/DEPS#newcode4 ...
4 years, 1 month ago (2016-11-08 22:39:31 UTC) #16
Raj
ryansturm: ptal I will add other reviewers after your review.
4 years, 1 month ago (2016-11-09 20:31:45 UTC) #18
Not at Google. Contact bengr
https://codereview.chromium.org/2462983003/diff/40001/chrome/browser/io_thread.cc File chrome/browser/io_thread.cc (right): https://codereview.chromium.org/2462983003/diff/40001/chrome/browser/io_thread.cc#newcode536 chrome/browser/io_thread.cc:536: data_use_measurement::GetIsUserInitiatedRequestCallback(), This method call seems awkward in this file. ...
4 years, 1 month ago (2016-11-09 22:04:10 UTC) #19
Raj
ptal
4 years, 1 month ago (2016-11-10 21:08:59 UTC) #20
RyanSturm
A few comments, I'll need to look at this some more, but it makes sense. ...
4 years, 1 month ago (2016-11-10 22:50:31 UTC) #21
Raj
https://codereview.chromium.org/2462983003/diff/60001/chrome/browser/data_use_measurement/chrome_data_use_ascriber.cc File chrome/browser/data_use_measurement/chrome_data_use_ascriber.cc (right): https://codereview.chromium.org/2462983003/diff/60001/chrome/browser/data_use_measurement/chrome_data_use_ascriber.cc#newcode70 chrome/browser/data_use_measurement/chrome_data_use_ascriber.cc:70: ChromeDataUseAscriber::CreateURLRequestClassifier() { On 2016/11/10 22:50:30, Ryan Sturm wrote: > ...
4 years, 1 month ago (2016-11-10 23:20:27 UTC) #22
Not at Google. Contact bengr
lgtm LGTM % nits. https://codereview.chromium.org/2462983003/diff/80001/chrome/browser/data_use_measurement/chrome_data_use_ascriber.cc File chrome/browser/data_use_measurement/chrome_data_use_ascriber.cc (right): https://codereview.chromium.org/2462983003/diff/80001/chrome/browser/data_use_measurement/chrome_data_use_ascriber.cc#newcode70 chrome/browser/data_use_measurement/chrome_data_use_ascriber.cc:70: ChromeDataUseAscriber::CreateURLRequestClassifier() const { Is this ...
4 years, 1 month ago (2016-11-11 00:09:49 UTC) #23
Raj
mmenke: ptal chrome/browser/net/* chrome/browser/io_thread.* sclittle: ptal chrome/browser/precache/precache_util.cc https://codereview.chromium.org/2462983003/diff/80001/chrome/browser/data_use_measurement/chrome_data_use_ascriber.cc File chrome/browser/data_use_measurement/chrome_data_use_ascriber.cc (right): https://codereview.chromium.org/2462983003/diff/80001/chrome/browser/data_use_measurement/chrome_data_use_ascriber.cc#newcode70 chrome/browser/data_use_measurement/chrome_data_use_ascriber.cc:70: ChromeDataUseAscriber::CreateURLRequestClassifier() const ...
4 years, 1 month ago (2016-11-11 19:10:39 UTC) #25
mmenke
chrome/browser/net / chrome/browser/io_thread LGTM!
4 years, 1 month ago (2016-11-11 19:26:58 UTC) #26
Raj
asargent: ptal chrome/browser/extensions/api/web_request/web_request_api_unittest.cc
4 years, 1 month ago (2016-11-11 19:39:15 UTC) #28
asargent_no_longer_on_chrome
chrome/browser/extensions/api/web_request/web_request_api_unittest.cc lgtm
4 years, 1 month ago (2016-11-12 00:48:29 UTC) #29
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/2462983003/120001
4 years, 1 month ago (2016-11-12 18:58:26 UTC) #36
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/303006)
4 years, 1 month ago (2016-11-12 19:05:17 UTC) #38
sclittle
components/data_use_measurement and chrome/browser/precache LGTM
4 years, 1 month ago (2016-11-15 19:23:27 UTC) #39
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/2462983003/120001
4 years, 1 month ago (2016-11-15 19:24:40 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/260838) chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years, 1 month ago (2016-11-15 19:34:32 UTC) #43
Raj
blundell: ptal components/BUILD.gn
4 years, 1 month ago (2016-11-15 19:43:56 UTC) #45
blundell
//components/BUILD.gn lgtm https://codereview.chromium.org/2462983003/diff/120001/components/data_use_measurement/core/BUILD.gn File components/data_use_measurement/core/BUILD.gn (right): https://codereview.chromium.org/2462983003/diff/120001/components/data_use_measurement/core/BUILD.gn#newcode32 components/data_use_measurement/core/BUILD.gn:32: "//components/metrics:metrics", nit: you don't need the ":metrics" ...
4 years, 1 month ago (2016-11-16 10:13:18 UTC) #46
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/2462983003/140001
4 years, 1 month ago (2016-11-16 17:45:25 UTC) #49
Raj
https://codereview.chromium.org/2462983003/diff/120001/components/data_use_measurement/core/BUILD.gn File components/data_use_measurement/core/BUILD.gn (right): https://codereview.chromium.org/2462983003/diff/120001/components/data_use_measurement/core/BUILD.gn#newcode32 components/data_use_measurement/core/BUILD.gn:32: "//components/metrics:metrics", On 2016/11/16 10:13:18, blundell wrote: > nit: you ...
4 years, 1 month ago (2016-11-16 17:48:13 UTC) #53
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/2462983003/160001
4 years, 1 month ago (2016-11-16 17:48:36 UTC) #54
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/316133)
4 years, 1 month ago (2016-11-16 21:57:08 UTC) #56
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/2462983003/180001
4 years, 1 month ago (2016-11-17 17:47:59 UTC) #64
commit-bot: I haz the power
Committed patchset #8 (id:180001)
4 years, 1 month ago (2016-11-17 17:59:22 UTC) #66
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 18:09:15 UTC) #68
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/14a5a85e424b65bcf740e9b4031d0af42f95b1b8
Cr-Commit-Position: refs/heads/master@{#432910}

Powered by Google App Engine
This is Rietveld 408576698