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

Issue 1279543002: Support needed to measure user and service traffic in Chrome. (Closed)

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

Description

Support needed to measure user and service traffic in Chrome. Some of the traffic of Chrome is not coming from direct request of user and it comes from services running on it such as Sync, Suggestion, or Complete. To understand their contribution to total amount of Chrome traffic, it is necessary to record services traffic use besides the user traffic use. To be able to get more useful data, it is also necessary to record the condition in which the request is made and the response is received. Two important aspects are the connection type (Cellular or Wifi) and application state (Foreground or Background). Also it is helpful to have the distribution of exchanged message size for different directions (Upload or Download). Besides the needed support for measuring, the suggestion service code is instrumented to record its data use. This instrumentation is done as an example and if this CL lands other target services will be instrumented too. BUG=516434 Committed: https://crrev.com/092adb2451c74c4dc97e1808bfbe2352ad21da9d Cr-Commit-Position: refs/heads/master@{#348490}

Patch Set 1 #

Total comments: 96

Patch Set 2 : Making DataUseMeasurement Class (With dependancy violation errors) #

Patch Set 3 : Move User/Not-User traffic checks to ChromeNetworkDelegate #

Patch Set 4 : Based on new architecture but with DEP errors #

Patch Set 5 : Test added, with new dependency errors. #

Patch Set 6 : Fix few formatting issues. #

Total comments: 43

Patch Set 7 : Making data_use_measurement component. #

Patch Set 8 : Fixing a typo in BUILD.gn #

Patch Set 9 : Removing few commented lines. #

Total comments: 41

Patch Set 10 : Addressing reviewer's comments but the ones related to making component #

Total comments: 10

Patch Set 11 : Addressed comments. #

Patch Set 12 : Changing max value of histograms to 1M. #

Patch Set 13 : Completing transition to a separate component. #

Total comments: 44

Patch Set 14 : Addressing reviewer's comments and adding test for component. #

Patch Set 15 : Using Mockread in the test function of component. #

Patch Set 16 : Adding sclittle to OWNERs and little fix in ChromeNetworkDelegate test. #

Total comments: 63

Patch Set 17 : Addressing reviewers' comments. #

Patch Set 18 : Adding ifdef for android in tests and add dependencies to gn files. #

Patch Set 19 : Continue fixing gn files. #

Patch Set 20 : Fixing core/BUILD.gn #

Patch Set 21 : Add if defined(ENABLE_EXTENSIONS) to tests. #

Total comments: 64

Patch Set 22 : Addressing reviewers' comments. #

Total comments: 22

Patch Set 23 : Addressing reviewers' comments. #

Patch Set 24 : Rebased. #

Total comments: 4

Patch Set 25 : Addressing blundell's comments. #

Total comments: 48

Patch Set 26 : Addressing reviewers' comments. #

Total comments: 18

Patch Set 27 : Addressing reviewers' comments. #

Total comments: 21

Patch Set 28 : Addressing reviewers' comments. #

Patch Set 29 : Improving the naming of source_sets in gn files. #

Total comments: 62

Patch Set 30 : Addressing reviewer's comments. #

Patch Set 31 : Adding profileManager and fixing stack-use-after-return error. #

Total comments: 6

Patch Set 32 : Addressing reviewer's comments. #

Total comments: 8

Patch Set 33 : Addressing sclittle's comments. #

Total comments: 31

Patch Set 34 : Addressed mmenke's comments. #

Patch Set 35 : Rebase to CL 1327763003 #

Patch Set 36 : Minor updates in dep files. #

Total comments: 4

Patch Set 37 : Addressed comments and rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+872 lines, -41 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/net/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/net/chrome_network_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/net/chrome_network_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/net/chrome_network_delegate_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 1 chunk +210 lines, -20 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 1 chunk +2 lines, -1 line 0 comments Download
M components/OWNERS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 1 chunk +3 lines, -0 lines 0 comments Download
M components/components.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 1 chunk +1 line, -0 lines 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 4 chunks +6 lines, -0 lines 0 comments Download
A components/data_use_measurement.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 1 chunk +33 lines, -0 lines 0 comments Download
A + components/data_use_measurement/OWNERS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +1 line, -1 line 0 comments Download
A + components/data_use_measurement/content/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 1 chunk +12 lines, -15 lines 0 comments Download
A + components/data_use_measurement/content/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 1 chunk +2 lines, -0 lines 0 comments Download
A components/data_use_measurement/content/data_use_measurement.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 1 chunk +99 lines, -0 lines 0 comments Download
A components/data_use_measurement/content/data_use_measurement.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 1 chunk +148 lines, -0 lines 0 comments Download
A components/data_use_measurement/content/data_use_measurement_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 1 chunk +151 lines, -0 lines 0 comments Download
A + components/data_use_measurement/core/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 1 chunk +4 lines, -5 lines 0 comments Download
A + components/data_use_measurement/core/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 0 chunks +-1 lines, --1 lines 0 comments Download
A components/data_use_measurement/core/data_use_user_data.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 1 chunk +60 lines, -0 lines 0 comments Download
A components/data_use_measurement/core/data_use_user_data.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 1 chunk +44 lines, -0 lines 0 comments Download
M components/suggestions.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +1 line, -0 lines 0 comments Download
M components/suggestions/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 19 20 21 22 23 24 25 26 27 28 1 chunk +1 line, -0 lines 0 comments Download
M components/suggestions/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M components/suggestions/suggestions_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 2 chunks +3 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 4 chunks +69 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 110 (19 generated)
amohammadkhan
5 years, 4 months ago (2015-08-05 21:37:32 UTC) #2
bengr
https://codereview.chromium.org/1279543002/diff/1/chrome/browser/net/chrome_network_delegate.cc File chrome/browser/net/chrome_network_delegate.cc (right): https://codereview.chromium.org/1279543002/diff/1/chrome/browser/net/chrome_network_delegate.cc#newcode491 chrome/browser/net/chrome_network_delegate.cc:491: // We have assumed that all the request for ...
5 years, 4 months ago (2015-08-07 18:00:02 UTC) #3
amohammadkhan
https://codereview.chromium.org/1279543002/diff/1/chrome/browser/net/chrome_network_delegate.cc File chrome/browser/net/chrome_network_delegate.cc (right): https://codereview.chromium.org/1279543002/diff/1/chrome/browser/net/chrome_network_delegate.cc#newcode491 chrome/browser/net/chrome_network_delegate.cc:491: // We have assumed that all the request for ...
5 years, 4 months ago (2015-08-11 22:04:37 UTC) #4
amohammadkhan
No test is added yet, because I am waiting to completely assure about architecture. The ...
5 years, 4 months ago (2015-08-11 22:13:32 UTC) #5
amohammadkhan
On 2015/08/11 22:13:32, amohammadkhan wrote: > No test is added yet, because I am waiting ...
5 years, 4 months ago (2015-08-17 16:36:52 UTC) #6
bengr
On 2015/08/17 16:36:52, amohammadkhan wrote: > On 2015/08/11 22:13:32, amohammadkhan wrote: > > No test ...
5 years, 4 months ago (2015-08-18 18:03:39 UTC) #7
amohammadkhan
5 years, 4 months ago (2015-08-19 20:44:17 UTC) #9
amohammadkhan
On 2015/08/19 20:44:17, amohammadkhan wrote: Currently maybe the main issue is where to put data_use_user_data ...
5 years, 4 months ago (2015-08-19 20:48:24 UTC) #10
sclittle
https://codereview.chromium.org/1279543002/diff/100001/chrome/browser/net/chrome_network_delegate.h File chrome/browser/net/chrome_network_delegate.h (right): https://codereview.chromium.org/1279543002/diff/100001/chrome/browser/net/chrome_network_delegate.h#newcode204 chrome/browser/net/chrome_network_delegate.h:204: scoped_refptr<DataUseMeasurement> data_use_measurer_; nit: please either rename the class to ...
5 years, 4 months ago (2015-08-19 23:32:40 UTC) #11
amohammadkhan
https://codereview.chromium.org/1279543002/diff/100001/chrome/browser/net/chrome_network_delegate.h File chrome/browser/net/chrome_network_delegate.h (right): https://codereview.chromium.org/1279543002/diff/100001/chrome/browser/net/chrome_network_delegate.h#newcode204 chrome/browser/net/chrome_network_delegate.h:204: scoped_refptr<DataUseMeasurement> data_use_measurer_; On 2015/08/19 23:32:39, sclittle wrote: > nit: ...
5 years, 4 months ago (2015-08-21 23:06:32 UTC) #14
sclittle
https://codereview.chromium.org/1279543002/diff/200001/components/data_use_measurement.gypi File components/data_use_measurement.gypi (right): https://codereview.chromium.org/1279543002/diff/200001/components/data_use_measurement.gypi#newcode7 components/data_use_measurement.gypi:7: 'target_name': 'data_use_measurement', separate the core/ and content/ stuff into ...
5 years, 4 months ago (2015-08-21 23:55:34 UTC) #15
amohammadkhan
Thank you for your comments. I have not addressed component comments as I am waiting ...
5 years, 4 months ago (2015-08-24 23:18:48 UTC) #16
sclittle
https://codereview.chromium.org/1279543002/diff/200001/components/data_use_measurement/core/data_use_measurement.cc File components/data_use_measurement/core/data_use_measurement.cc (right): https://codereview.chromium.org/1279543002/diff/200001/components/data_use_measurement/core/data_use_measurement.cc#newcode31 components/data_use_measurement/core/data_use_measurement.cc:31: 5000000, // Maximum sample size. Should cover most of ...
5 years, 4 months ago (2015-08-24 23:59:34 UTC) #17
amohammadkhan
https://codereview.chromium.org/1279543002/diff/220001/components/data_use_measurement/content/data_use_user_data.cc File components/data_use_measurement/content/data_use_user_data.cc (right): https://codereview.chromium.org/1279543002/diff/220001/components/data_use_measurement/content/data_use_user_data.cc#newcode28 components/data_use_measurement/content/data_use_user_data.cc:28: break; On 2015/08/24 23:59:34, sclittle wrote: > nit: Just ...
5 years, 4 months ago (2015-08-25 00:12:08 UTC) #18
bengr
Hey Misha, Ali wrote up a whole component just so he'd have a place to ...
5 years, 4 months ago (2015-08-25 18:12:48 UTC) #20
bengr
Hey Josh, Ali wrote up a whole component just so he'd have a place to ...
5 years, 4 months ago (2015-08-25 19:00:37 UTC) #22
bengr
Hey Ryan, Ali wrote up a whole component just so he'd have a place to ...
5 years, 4 months ago (2015-08-25 19:50:40 UTC) #24
Ryan Hamilton
On 2015/08/25 19:50:40, bengr wrote: > Hey Ryan, > Ali wrote up a whole component ...
5 years, 4 months ago (2015-08-25 23:13:35 UTC) #25
amohammadkhan
On 2015/08/25 23:13:35, Ryan Hamilton wrote: > On 2015/08/25 19:50:40, bengr wrote: > > Hey ...
5 years, 4 months ago (2015-08-25 23:17:27 UTC) #26
Ryan Hamilton
On 2015/08/25 23:17:27, amohammadkhan wrote: > On 2015/08/25 23:13:35, Ryan Hamilton wrote: > > On ...
5 years, 4 months ago (2015-08-26 00:00:40 UTC) #27
amohammadkhan
On 2015/08/26 00:00:40, Ryan Hamilton wrote: > On 2015/08/25 23:17:27, amohammadkhan wrote: > > On ...
5 years, 3 months ago (2015-08-26 17:00:16 UTC) #28
Ryan Hamilton
On 2015/08/26 17:00:16, amohammadkhan wrote: > On 2015/08/26 00:00:40, Ryan Hamilton wrote: > > On ...
5 years, 3 months ago (2015-08-26 18:35:37 UTC) #29
amohammadkhan
https://codereview.chromium.org/1279543002/diff/200001/components/data_use_measurement.gypi File components/data_use_measurement.gypi (right): https://codereview.chromium.org/1279543002/diff/200001/components/data_use_measurement.gypi#newcode7 components/data_use_measurement.gypi:7: 'target_name': 'data_use_measurement', On 2015/08/21 23:55:33, sclittle wrote: > separate ...
5 years, 3 months ago (2015-08-26 22:28:41 UTC) #30
sclittle
https://codereview.chromium.org/1279543002/diff/280001/chrome/browser/net/DEPS File chrome/browser/net/DEPS (right): https://codereview.chromium.org/1279543002/diff/280001/chrome/browser/net/DEPS#newcode3 chrome/browser/net/DEPS:3: "+components/data_use_measurement", Move this above the comment, since that comment ...
5 years, 3 months ago (2015-08-26 23:08:30 UTC) #31
sclittle
https://codereview.chromium.org/1279543002/diff/280001/components/data_use_measurement.gypi File components/data_use_measurement.gypi (right): https://codereview.chromium.org/1279543002/diff/280001/components/data_use_measurement.gypi#newcode1 components/data_use_measurement.gypi:1: # Copyright 2015 The Chromium Authors. All rights reserved. ...
5 years, 3 months ago (2015-08-26 23:11:26 UTC) #32
Ryan Hamilton
Removing myself as a reviewer. Please add me back, if you think there's a need ...
5 years, 3 months ago (2015-08-27 03:45:37 UTC) #34
amohammadkhan1
blundell@chromium.org: Please review changes in components/*
5 years, 3 months ago (2015-08-28 22:47:50 UTC) #36
amohammadkhan1
asvitkine@chromium.org: Please review histograms.xml mmenke@chromium.org: Please review changes in chrome/browser/net/*
5 years, 3 months ago (2015-08-28 22:52:17 UTC) #38
amohammadkhan
https://codereview.chromium.org/1279543002/diff/280001/chrome/browser/net/DEPS File chrome/browser/net/DEPS (right): https://codereview.chromium.org/1279543002/diff/280001/chrome/browser/net/DEPS#newcode3 chrome/browser/net/DEPS:3: "+components/data_use_measurement", On 2015/08/26 23:08:29, sclittle wrote: > Move this ...
5 years, 3 months ago (2015-08-29 01:01:00 UTC) #39
blundell
https://codereview.chromium.org/1279543002/diff/340001/components/data_use_measurement/BUILD.gn File components/data_use_measurement/BUILD.gn (right): https://codereview.chromium.org/1279543002/diff/340001/components/data_use_measurement/BUILD.gn#newcode5 components/data_use_measurement/BUILD.gn:5: source_set("data_use_measurement_content") { It's preferred in GN to just put ...
5 years, 3 months ago (2015-08-31 09:15:40 UTC) #40
Alexei Svitkine (slow)
https://codereview.chromium.org/1279543002/diff/340001/chrome/browser/net/chrome_network_delegate_unittest.cc File chrome/browser/net/chrome_network_delegate_unittest.cc (right): https://codereview.chromium.org/1279543002/diff/340001/chrome/browser/net/chrome_network_delegate_unittest.cc#newcode213 chrome/browser/net/chrome_network_delegate_unittest.cc:213: extensions::EventRouterForwarder* forwarder() { If this compiles when ENABLE_EXTENSIONS is ...
5 years, 3 months ago (2015-08-31 17:26:31 UTC) #41
mmenke
Perliminary comments. https://codereview.chromium.org/1279543002/diff/340001/components/data_use_measurement/content/data_use_measurement.cc File components/data_use_measurement/content/data_use_measurement.cc (right): https://codereview.chromium.org/1279543002/diff/340001/components/data_use_measurement/content/data_use_measurement.cc#newcode84 components/data_use_measurement/content/data_use_measurement.cc:84: request_body_bytes = request->get_upload()->size(); This is -1 for ...
5 years, 3 months ago (2015-08-31 17:41:29 UTC) #42
mmenke
https://codereview.chromium.org/1279543002/diff/340001/components/data_use_measurement/content/data_use_measurement.cc File components/data_use_measurement/content/data_use_measurement.cc (right): https://codereview.chromium.org/1279543002/diff/340001/components/data_use_measurement/content/data_use_measurement.cc#newcode87 components/data_use_measurement/content/data_use_measurement.cc:87: request_header_bytes = request_headers.ToString().length(); On 2015/08/31 17:41:28, mmenke wrote: > ...
5 years, 3 months ago (2015-08-31 17:42:06 UTC) #43
amohammadkhan
https://codereview.chromium.org/1279543002/diff/340001/chrome/browser/net/chrome_network_delegate_unittest.cc File chrome/browser/net/chrome_network_delegate_unittest.cc (right): https://codereview.chromium.org/1279543002/diff/340001/chrome/browser/net/chrome_network_delegate_unittest.cc#newcode213 chrome/browser/net/chrome_network_delegate_unittest.cc:213: extensions::EventRouterForwarder* forwarder() { On 2015/08/31 17:26:31, Alexei Svitkine wrote: ...
5 years, 3 months ago (2015-09-01 04:52:49 UTC) #44
blundell
> https://codereview.chromium.org/1279543002/diff/340001/components/data_use_measurement/content/data_use_measurement.cc#newcode65 > components/data_use_measurement/content/data_use_measurement.cc:65: const > content::ResourceRequestInfo* info = > On 2015/08/31 09:15:40, blundell wrote: ...
5 years, 3 months ago (2015-09-01 08:14:18 UTC) #45
mmenke
On 2015/09/01 08:14:18, blundell wrote: > > > https://codereview.chromium.org/1279543002/diff/340001/components/data_use_measurement/content/data_use_measurement.cc#newcode65 > > components/data_use_measurement/content/data_use_measurement.cc:65: const > > ...
5 years, 3 months ago (2015-09-01 15:41:19 UTC) #46
blundell
On 2015/09/01 15:41:19, mmenke wrote: > On 2015/09/01 08:14:18, blundell wrote: > > > > ...
5 years, 3 months ago (2015-09-01 15:43:55 UTC) #47
amohammadkhan
On 2015/09/01 15:43:55, blundell wrote: > On 2015/09/01 15:41:19, mmenke wrote: > > On 2015/09/01 ...
5 years, 3 months ago (2015-09-01 16:37:53 UTC) #48
bengr
Here are some comments. More to come... https://codereview.chromium.org/1279543002/diff/440001/chrome/browser/net/chrome_network_delegate.h File chrome/browser/net/chrome_network_delegate.h (right): https://codereview.chromium.org/1279543002/diff/440001/chrome/browser/net/chrome_network_delegate.h#newcode206 chrome/browser/net/chrome_network_delegate.h:206: // Measuring ...
5 years, 3 months ago (2015-09-01 17:00:11 UTC) #49
mmenke
https://codereview.chromium.org/1279543002/diff/440001/components/data_use_measurement/OWNERS File components/data_use_measurement/OWNERS (right): https://codereview.chromium.org/1279543002/diff/440001/components/data_use_measurement/OWNERS#newcode3 components/data_use_measurement/OWNERS:3: amohammadkhan@chromium.org On 2015/09/01 17:00:10, bengr wrote: > Can you ...
5 years, 3 months ago (2015-09-01 17:41:22 UTC) #50
mmenke
https://codereview.chromium.org/1279543002/diff/440001/components/data_use_measurement/core/data_use_user_data.h File components/data_use_measurement/core/data_use_user_data.h (right): https://codereview.chromium.org/1279543002/diff/440001/components/data_use_measurement/core/data_use_user_data.h#newcode14 components/data_use_measurement/core/data_use_user_data.h:14: class DataUseUserData : public base::SupportsUserData::Data { UrlRequestSourceInfo? https://codereview.chromium.org/1279543002/diff/440001/components/data_use_measurement/core/data_use_user_data.h#newcode19 components/data_use_measurement/core/data_use_user_data.h:19: ...
5 years, 3 months ago (2015-09-01 17:52:37 UTC) #51
mmenke
https://codereview.chromium.org/1279543002/diff/340001/components/data_use_measurement/content/data_use_measurement.cc File components/data_use_measurement/content/data_use_measurement.cc (right): https://codereview.chromium.org/1279543002/diff/340001/components/data_use_measurement/content/data_use_measurement.cc#newcode84 components/data_use_measurement/content/data_use_measurement.cc:84: request_body_bytes = request->get_upload()->size(); On 2015/09/01 04:52:48, amohammadkhan wrote: > ...
5 years, 3 months ago (2015-09-01 19:23:37 UTC) #52
mmenke
https://codereview.chromium.org/1279543002/diff/440001/components/data_use_measurement/content/data_use_measurement.h File components/data_use_measurement/content/data_use_measurement.h (right): https://codereview.chromium.org/1279543002/diff/440001/components/data_use_measurement/content/data_use_measurement.h#newcode35 components/data_use_measurement/content/data_use_measurement.h:35: // Records the data use of the |request|. On ...
5 years, 3 months ago (2015-09-01 19:26:17 UTC) #53
amohammadkhan
https://codereview.chromium.org/1279543002/diff/440001/chrome/browser/net/chrome_network_delegate.h File chrome/browser/net/chrome_network_delegate.h (right): https://codereview.chromium.org/1279543002/diff/440001/chrome/browser/net/chrome_network_delegate.h#newcode206 chrome/browser/net/chrome_network_delegate.h:206: // Measuring component to measure data use of services. ...
5 years, 3 months ago (2015-09-01 19:38:15 UTC) #54
amohammadkhan
thestig@chromium.org: Please review changes in Chrome/Browser/BUILD.gn Thanks,
5 years, 3 months ago (2015-09-01 19:58:04 UTC) #56
Alexei Svitkine (slow)
https://codereview.chromium.org/1279543002/diff/460001/chrome/browser/net/chrome_network_delegate_unittest.cc File chrome/browser/net/chrome_network_delegate_unittest.cc (right): https://codereview.chromium.org/1279543002/diff/460001/chrome/browser/net/chrome_network_delegate_unittest.cc#newcode160 chrome/browser/net/chrome_network_delegate_unittest.cc:160: class ChromeNetworkDelegateDataUseMeasurementTest : public testing::Test { A lot of ...
5 years, 3 months ago (2015-09-01 20:04:04 UTC) #57
bengr
https://codereview.chromium.org/1279543002/diff/440001/components/data_use_measurement/content/data_use_measurement.cc File components/data_use_measurement/content/data_use_measurement.cc (right): https://codereview.chromium.org/1279543002/diff/440001/components/data_use_measurement/content/data_use_measurement.cc#newcode5 components/data_use_measurement/content/data_use_measurement.cc:5: #include <components/data_use_measurement/content/data_use_measurement.h> #include "components/.../data_use_measurement.h" and add a blank line ...
5 years, 3 months ago (2015-09-01 20:16:01 UTC) #58
Lei Zhang
On 2015/09/01 19:58:04, amohammadkhan wrote: > mailto:thestig@chromium.org: Please review changes in > > Chrome/Browser/BUILD.gn > ...
5 years, 3 months ago (2015-09-01 20:25:50 UTC) #59
amohammadkhan
https://codereview.chromium.org/1279543002/diff/440001/components/data_use_measurement/content/data_use_measurement.cc File components/data_use_measurement/content/data_use_measurement.cc (right): https://codereview.chromium.org/1279543002/diff/440001/components/data_use_measurement/content/data_use_measurement.cc#newcode5 components/data_use_measurement/content/data_use_measurement.cc:5: #include <components/data_use_measurement/content/data_use_measurement.h> On 2015/09/01 20:16:01, bengr wrote: > #include ...
5 years, 3 months ago (2015-09-01 23:02:43 UTC) #60
blundell
//components top-level LGTM with change made Please file a bug to track the refactoring that ...
5 years, 3 months ago (2015-09-02 09:29:32 UTC) #61
amohammadkhan
https://codereview.chromium.org/1279543002/diff/500001/components/OWNERS File components/OWNERS (right): https://codereview.chromium.org/1279543002/diff/500001/components/OWNERS#newcode74 components/OWNERS:74: per-file data_use_measurement*=amohammadkhan@chromium.org On 2015/09/02 09:29:32, blundell wrote: > I ...
5 years, 3 months ago (2015-09-02 17:37:07 UTC) #62
amohammadkhan
On 2015/09/02 17:37:07, amohammadkhan wrote: > https://codereview.chromium.org/1279543002/diff/500001/components/OWNERS > File components/OWNERS (right): > > https://codereview.chromium.org/1279543002/diff/500001/components/OWNERS#newcode74 > ...
5 years, 3 months ago (2015-09-02 17:48:48 UTC) #64
Mathieu
lgtm https://codereview.chromium.org/1279543002/diff/520001/components/suggestions.gypi File components/suggestions.gypi (right): https://codereview.chromium.org/1279543002/diff/520001/components/suggestions.gypi#newcode23 components/suggestions.gypi:23: 'components.gyp:data_use_measurement_core', ordering looks off here
5 years, 3 months ago (2015-09-02 17:59:56 UTC) #65
Alexei Svitkine (slow)
lgtm https://codereview.chromium.org/1279543002/diff/520001/components/data_use_measurement/content/data_use_measurement.cc File components/data_use_measurement/content/data_use_measurement.cc (right): https://codereview.chromium.org/1279543002/diff/520001/components/data_use_measurement/content/data_use_measurement.cc#newcode160 components/data_use_measurement/content/data_use_measurement.cc:160: ? "TrafficSize.User" Nit: TrafficSize is common, so include ...
5 years, 3 months ago (2015-09-02 18:11:20 UTC) #66
Lei Zhang
https://codereview.chromium.org/1279543002/diff/520001/chrome/browser/BUILD.gn File chrome/browser/BUILD.gn (right): https://codereview.chromium.org/1279543002/diff/520001/chrome/browser/BUILD.gn#newcode118 chrome/browser/BUILD.gn:118: "//components/data_use_measurement/core:data_use_measurement_core", This doesn't match the GYP equivalent in chrome/chrome_browser.gypi. ...
5 years, 3 months ago (2015-09-02 18:14:43 UTC) #67
mmenke
Some comments on the tests. May not get back to the main file today. https://codereview.chromium.org/1279543002/diff/520001/chrome/browser/net/chrome_network_delegate.cc ...
5 years, 3 months ago (2015-09-02 21:48:09 UTC) #68
amohammadkhan
https://codereview.chromium.org/1279543002/diff/520001/chrome/browser/BUILD.gn File chrome/browser/BUILD.gn (right): https://codereview.chromium.org/1279543002/diff/520001/chrome/browser/BUILD.gn#newcode118 chrome/browser/BUILD.gn:118: "//components/data_use_measurement/core:data_use_measurement_core", On 2015/09/02 18:14:43, Lei Zhang wrote: > This ...
5 years, 3 months ago (2015-09-03 04:31:19 UTC) #69
Lei Zhang
https://codereview.chromium.org/1279543002/diff/520001/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): https://codereview.chromium.org/1279543002/diff/520001/chrome/browser/profiles/profile_manager.cc#newcode463 chrome/browser/profiles/profile_manager.cc:463: if (!g_browser_process->profile_manager()) On 2015/09/03 04:31:19, amohammadkhan wrote: > On ...
5 years, 3 months ago (2015-09-03 04:47:11 UTC) #70
mmenke
https://codereview.chromium.org/1279543002/diff/540001/chrome/browser/net/chrome_network_delegate.cc File chrome/browser/net/chrome_network_delegate.cc (right): https://codereview.chromium.org/1279543002/diff/540001/chrome/browser/net/chrome_network_delegate.cc#newcode499 chrome/browser/net/chrome_network_delegate.cc:499: data_use_measurement_.ReportDataUseUMA(request); Think first pass, you should measure usage for ...
5 years, 3 months ago (2015-09-03 16:02:59 UTC) #71
amohammadkhan
https://codereview.chromium.org/1279543002/diff/520001/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): https://codereview.chromium.org/1279543002/diff/520001/chrome/browser/profiles/profile_manager.cc#newcode463 chrome/browser/profiles/profile_manager.cc:463: if (!g_browser_process->profile_manager()) On 2015/09/03 04:47:11, Lei Zhang wrote: > ...
5 years, 3 months ago (2015-09-03 23:10:36 UTC) #72
Lei Zhang
https://codereview.chromium.org/1279543002/diff/520001/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): https://codereview.chromium.org/1279543002/diff/520001/chrome/browser/profiles/profile_manager.cc#newcode463 chrome/browser/profiles/profile_manager.cc:463: if (!g_browser_process->profile_manager()) On 2015/09/03 23:10:35, amohammadkhan wrote: > On ...
5 years, 3 months ago (2015-09-04 01:18:06 UTC) #73
mmenke
Want to do another pass over data_use_measurement.cc later today. https://codereview.chromium.org/1279543002/diff/560001/chrome/browser/net/chrome_network_delegate_unittest.cc File chrome/browser/net/chrome_network_delegate_unittest.cc (right): https://codereview.chromium.org/1279543002/diff/560001/chrome/browser/net/chrome_network_delegate_unittest.cc#newcode42 chrome/browser/net/chrome_network_delegate_unittest.cc:42: ...
5 years, 3 months ago (2015-09-04 15:52:01 UTC) #74
amohammadkhan
https://codereview.chromium.org/1279543002/diff/520001/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): https://codereview.chromium.org/1279543002/diff/520001/chrome/browser/profiles/profile_manager.cc#newcode463 chrome/browser/profiles/profile_manager.cc:463: if (!g_browser_process->profile_manager()) On 2015/09/04 01:18:06, Lei Zhang wrote: > ...
5 years, 3 months ago (2015-09-04 17:25:12 UTC) #75
Lei Zhang
chrome/ sans c/b/net lgtm
5 years, 3 months ago (2015-09-04 18:47:00 UTC) #76
mmenke
https://codereview.chromium.org/1279543002/diff/560001/chrome/browser/net/chrome_network_delegate_unittest.cc File chrome/browser/net/chrome_network_delegate_unittest.cc (right): https://codereview.chromium.org/1279543002/diff/560001/chrome/browser/net/chrome_network_delegate_unittest.cc#newcode55 chrome/browser/net/chrome_network_delegate_unittest.cc:55: net::MockRead(""), net::MockRead(net::SYNCHRONOUS, net::OK), On 2015/09/04 17:25:12, amohammadkhan wrote: > ...
5 years, 3 months ago (2015-09-04 20:51:46 UTC) #77
Ilya Sherman
https://codereview.chromium.org/1279543002/diff/600001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1279543002/diff/600001/tools/metrics/histograms/histograms.xml#newcode5657 tools/metrics/histograms/histograms.xml:5657: + added as a sufffix to this histogram name. ...
5 years, 3 months ago (2015-09-04 22:10:12 UTC) #79
amohammadkhan
https://codereview.chromium.org/1279543002/diff/600001/chrome/browser/net/chrome_network_delegate_unittest.cc File chrome/browser/net/chrome_network_delegate_unittest.cc (right): https://codereview.chromium.org/1279543002/diff/600001/chrome/browser/net/chrome_network_delegate_unittest.cc#newcode56 chrome/browser/net/chrome_network_delegate_unittest.cc:56: net::MockRead(""), On 2015/09/04 20:51:45, mmenke wrote: > This isn't ...
5 years, 3 months ago (2015-09-05 00:58:03 UTC) #80
amohammadkhan
mmenke@ PTAL. Some changes made to fix the errors in trybots.
5 years, 3 months ago (2015-09-08 16:27:04 UTC) #81
sclittle
https://codereview.chromium.org/1279543002/diff/630001/components/data_use_measurement/content/data_use_measurement_unittest.cc File components/data_use_measurement/content/data_use_measurement_unittest.cc (right): https://codereview.chromium.org/1279543002/diff/630001/components/data_use_measurement/content/data_use_measurement_unittest.cc#newcode17 components/data_use_measurement/content/data_use_measurement_unittest.cc:17: #include "testing/gmock/include/gmock/gmock.h" It doesn't look like you're actually using ...
5 years, 3 months ago (2015-09-08 18:48:00 UTC) #82
amohammadkhan
https://codereview.chromium.org/1279543002/diff/630001/components/data_use_measurement/content/data_use_measurement_unittest.cc File components/data_use_measurement/content/data_use_measurement_unittest.cc (right): https://codereview.chromium.org/1279543002/diff/630001/components/data_use_measurement/content/data_use_measurement_unittest.cc#newcode17 components/data_use_measurement/content/data_use_measurement_unittest.cc:17: #include "testing/gmock/include/gmock/gmock.h" On 2015/09/08 18:47:59, sclittle wrote: > It ...
5 years, 3 months ago (2015-09-08 23:00:10 UTC) #83
sclittle
lgtm % nits in test. https://codereview.chromium.org/1279543002/diff/650001/components/data_use_measurement/content/data_use_measurement_unittest.cc File components/data_use_measurement/content/data_use_measurement_unittest.cc (right): https://codereview.chromium.org/1279543002/diff/650001/components/data_use_measurement/content/data_use_measurement_unittest.cc#newcode39 components/data_use_measurement/content/data_use_measurement_unittest.cc:39: socket_provider_.reset(new net::StaticSocketDataProvider( nit: Use ...
5 years, 3 months ago (2015-09-09 00:13:37 UTC) #84
amohammadkhan
https://codereview.chromium.org/1279543002/diff/650001/components/data_use_measurement/content/data_use_measurement_unittest.cc File components/data_use_measurement/content/data_use_measurement_unittest.cc (right): https://codereview.chromium.org/1279543002/diff/650001/components/data_use_measurement/content/data_use_measurement_unittest.cc#newcode39 components/data_use_measurement/content/data_use_measurement_unittest.cc:39: socket_provider_.reset(new net::StaticSocketDataProvider( On 2015/09/09 00:13:37, sclittle wrote: > nit: ...
5 years, 3 months ago (2015-09-09 20:45:48 UTC) #85
sclittle
https://codereview.chromium.org/1279543002/diff/670001/chrome/browser/BUILD.gn File chrome/browser/BUILD.gn (right): https://codereview.chromium.org/1279543002/diff/670001/chrome/browser/BUILD.gn#newcode117 chrome/browser/BUILD.gn:117: "//components/data_use_measurement/content", I think this needs to be moved into ...
5 years, 3 months ago (2015-09-09 23:19:14 UTC) #86
mmenke
https://codereview.chromium.org/1279543002/diff/670001/components/data_use_measurement/content/data_use_measurement.cc File components/data_use_measurement/content/data_use_measurement.cc (right): https://codereview.chromium.org/1279543002/diff/670001/components/data_use_measurement/content/data_use_measurement.cc#newcode80 components/data_use_measurement/content/data_use_measurement.cc:80: total_upload_bytes = request_body_bytes + request_header_bytes; Per earlier comments, all ...
5 years, 3 months ago (2015-09-10 15:43:00 UTC) #87
amohammadkhan
https://codereview.chromium.org/1279543002/diff/670001/chrome/browser/BUILD.gn File chrome/browser/BUILD.gn (right): https://codereview.chromium.org/1279543002/diff/670001/chrome/browser/BUILD.gn#newcode117 chrome/browser/BUILD.gn:117: "//components/data_use_measurement/content", On 2015/09/09 23:19:14, sclittle wrote: > I think ...
5 years, 3 months ago (2015-09-10 20:09:01 UTC) #88
mmenke
LGTM, modulo comments. https://codereview.chromium.org/1279543002/diff/670001/components/data_use_measurement/content/data_use_measurement.cc File components/data_use_measurement/content/data_use_measurement.cc (right): https://codereview.chromium.org/1279543002/diff/670001/components/data_use_measurement/content/data_use_measurement.cc#newcode142 components/data_use_measurement/content/data_use_measurement.cc:142: std::string(DataUseUserData::GetServiceNameAsString(service)), On 2015/09/10 20:09:00, amohammadkhan wrote: ...
5 years, 3 months ago (2015-09-11 13:59:07 UTC) #89
mmenke
https://codereview.chromium.org/1279543002/diff/670001/components/data_use_measurement/content/data_use_measurement.cc File components/data_use_measurement/content/data_use_measurement.cc (right): https://codereview.chromium.org/1279543002/diff/670001/components/data_use_measurement/content/data_use_measurement.cc#newcode142 components/data_use_measurement/content/data_use_measurement.cc:142: std::string(DataUseUserData::GetServiceNameAsString(service)), On 2015/09/11 13:59:07, mmenke wrote: > On 2015/09/10 ...
5 years, 3 months ago (2015-09-11 14:00:03 UTC) #90
amohammadkhan
https://codereview.chromium.org/1279543002/diff/730001/components/data_use_measurement/content/data_use_measurement.cc File components/data_use_measurement/content/data_use_measurement.cc (right): https://codereview.chromium.org/1279543002/diff/730001/components/data_use_measurement/content/data_use_measurement.cc#newcode135 components/data_use_measurement/content/data_use_measurement.cc:135: message_size); On 2015/09/11 13:59:07, mmenke wrote: > On 2015/09/10 ...
5 years, 3 months ago (2015-09-11 17:42:48 UTC) #91
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1279543002/750001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1279543002/750001
5 years, 3 months ago (2015-09-11 17:44:25 UTC) #94
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/98742)
5 years, 3 months ago (2015-09-11 17:55:14 UTC) #96
amohammadkhan
brettw: +url in DEPS jochen: +content/public/browser in DEPS
5 years, 3 months ago (2015-09-11 18:07:43 UTC) #98
amohammadkhan
avi: content/public/browser in DEPS -jochen
5 years, 3 months ago (2015-09-11 19:24:40 UTC) #100
brettw
https://codereview.chromium.org/1279543002/diff/100001/chrome/browser/net/data_use_measurement.h File chrome/browser/net/data_use_measurement.h (right): https://codereview.chromium.org/1279543002/diff/100001/chrome/browser/net/data_use_measurement.h#newcode29 chrome/browser/net/data_use_measurement.h:29: enum ConnectionType { CELLULAR, NOT_CELLULAR }; I like the ...
5 years, 3 months ago (2015-09-11 19:53:44 UTC) #101
brettw
LGTM with enums moved.
5 years, 3 months ago (2015-09-11 19:56:57 UTC) #102
mmenke
https://codereview.chromium.org/1279543002/diff/100001/chrome/browser/net/data_use_measurement.h File chrome/browser/net/data_use_measurement.h (right): https://codereview.chromium.org/1279543002/diff/100001/chrome/browser/net/data_use_measurement.h#newcode29 chrome/browser/net/data_use_measurement.h:29: enum ConnectionType { CELLULAR, NOT_CELLULAR }; On 2015/09/11 19:53:44, ...
5 years, 3 months ago (2015-09-11 19:57:07 UTC) #103
amohammadkhan
https://codereview.chromium.org/1279543002/diff/100001/chrome/browser/net/data_use_measurement.h File chrome/browser/net/data_use_measurement.h (right): https://codereview.chromium.org/1279543002/diff/100001/chrome/browser/net/data_use_measurement.h#newcode29 chrome/browser/net/data_use_measurement.h:29: enum ConnectionType { CELLULAR, NOT_CELLULAR }; On 2015/09/11 19:53:44, ...
5 years, 3 months ago (2015-09-11 20:11:26 UTC) #104
Avi (use Gerrit)
I'm assuming that components/data_use_measurement is one of those components designed to rely on content, so ...
5 years, 3 months ago (2015-09-11 20:57:25 UTC) #105
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1279543002/750001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1279543002/750001
5 years, 3 months ago (2015-09-11 20:58:57 UTC) #107
commit-bot: I haz the power
Committed patchset #37 (id:750001)
5 years, 3 months ago (2015-09-11 21:09:05 UTC) #108
commit-bot: I haz the power
Patchset 37 (id:??) landed as https://crrev.com/092adb2451c74c4dc97e1808bfbe2352ad21da9d Cr-Commit-Position: refs/heads/master@{#348490}
5 years, 3 months ago (2015-09-11 21:09:50 UTC) #109
commit-bot: I haz the power
5 years, 3 months ago (2015-09-23 12:26:32 UTC) #110
Message was sent while issue was closed.
Patchset 37 (id:??) landed as
https://crrev.com/092adb2451c74c4dc97e1808bfbe2352ad21da9d
Cr-Commit-Position: refs/heads/master@{#348490}

Powered by Google App Engine
This is Rietveld 408576698