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

Issue 2358663004: Fix foregound vs background data use measurement (Closed)

Created:
4 years, 3 months ago by Raj
Modified:
4 years, 2 months ago
CC:
chromium-reviews, jam, cbentzel+watch_chromium.org, darin-cc_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix foregound vs background data use measurement The application state when the request was created should be used to record foreground vs background data use. Currently, application state at the time of data use is used. BUG=648808 Committed: https://crrev.com/da6c2ca5df87b5f74c615c45f8b5b6faf82cb158 Cr-Commit-Position: refs/heads/master@{#421126}

Patch Set 1 #

Patch Set 2 : remove logs #

Total comments: 5

Patch Set 3 : Addressed bengr comments #

Total comments: 1

Patch Set 4 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -29 lines) Patch
M chrome/browser/net/chrome_network_delegate.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/net/chrome_network_delegate_unittest.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M components/data_use_measurement/content/data_use_measurement.h View 1 2 4 chunks +12 lines, -5 lines 0 comments Download
M components/data_use_measurement/content/data_use_measurement.cc View 1 2 7 chunks +37 lines, -18 lines 0 comments Download
M components/data_use_measurement/content/data_use_measurement_unittest.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M components/data_use_measurement/core/data_use_user_data.h View 1 2 2 chunks +10 lines, -1 line 0 comments Download
M components/data_use_measurement/core/data_use_user_data.cc View 1 2 3 2 chunks +23 lines, -3 lines 0 comments Download

Messages

Total messages: 37 (18 generated)
Raj
ptal
4 years, 3 months ago (2016-09-21 00:34:46 UTC) #2
mmenke
On 2016/09/21 00:34:46, Raj wrote: > ptal ChromeNetworkDelegate LGTM, rubberstamp.
4 years, 3 months ago (2016-09-21 16:49:05 UTC) #3
mmenke
On 2016/09/21 16:49:05, mmenke wrote: > On 2016/09/21 00:34:46, Raj wrote: > > ptal > ...
4 years, 3 months ago (2016-09-21 16:50:31 UTC) #4
bengr
On 2016/09/21 16:50:31, mmenke wrote: > On 2016/09/21 16:49:05, mmenke wrote: > > On 2016/09/21 ...
4 years, 2 months ago (2016-09-23 18:27:31 UTC) #5
mmenke
On 2016/09/23 18:27:31, bengr wrote: > On 2016/09/21 16:50:31, mmenke wrote: > > On 2016/09/21 ...
4 years, 2 months ago (2016-09-23 18:28:58 UTC) #6
bengr
On 2016/09/23 18:28:58, mmenke wrote: > On 2016/09/23 18:27:31, bengr wrote: > > On 2016/09/21 ...
4 years, 2 months ago (2016-09-23 18:31:59 UTC) #7
Raj
Eventually this could move to DataUseNetworkDelegate https://codereview.chromium.org/2354323002/
4 years, 2 months ago (2016-09-23 18:35:51 UTC) #8
bengr
https://codereview.chromium.org/2358663004/diff/20001/components/data_use_measurement/content/data_use_measurement.cc File components/data_use_measurement/content/data_use_measurement.cc (right): https://codereview.chromium.org/2358663004/diff/20001/components/data_use_measurement/content/data_use_measurement.cc#newcode107 components/data_use_measurement/content/data_use_measurement.cc:107: bool started_in_foreground = Might be better to have an ...
4 years, 2 months ago (2016-09-23 18:45:32 UTC) #9
Raj
https://codereview.chromium.org/2358663004/diff/20001/components/data_use_measurement/content/data_use_measurement.cc File components/data_use_measurement/content/data_use_measurement.cc (right): https://codereview.chromium.org/2358663004/diff/20001/components/data_use_measurement/content/data_use_measurement.cc#newcode107 components/data_use_measurement/content/data_use_measurement.cc:107: bool started_in_foreground = On 2016/09/23 18:45:31, bengr wrote: > ...
4 years, 2 months ago (2016-09-23 22:34:10 UTC) #11
mmenke
One other thing about the LayeredNetworkDelegate approach...You can actually test it with a real network ...
4 years, 2 months ago (2016-09-23 23:42:45 UTC) #12
bengr
On 2016/09/23 23:42:45, mmenke wrote: > One other thing about the LayeredNetworkDelegate approach...You can actually ...
4 years, 2 months ago (2016-09-26 16:10:30 UTC) #13
Raj
On 2016/09/26 16:10:30, bengr wrote: > On 2016/09/23 23:42:45, mmenke wrote: > > One other ...
4 years, 2 months ago (2016-09-26 16:49:08 UTC) #14
bengr
lgtm
4 years, 2 months ago (2016-09-26 17:07:14 UTC) #15
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/2358663004/60001
4 years, 2 months ago (2016-09-26 18:34:50 UTC) #18
Not at Google. Contact bengr
lgtm Just a nit/question. Changes is any can be made in a different cl. https://codereview.chromium.org/2358663004/diff/60001/components/data_use_measurement/content/data_use_measurement.cc ...
4 years, 2 months ago (2016-09-26 18:40:19 UTC) #20
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/230496) ios-device on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 2 months ago (2016-09-26 18:42:29 UTC) #22
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/2358663004/100001
4 years, 2 months ago (2016-09-27 05:37:16 UTC) #34
commit-bot: I haz the power
Committed patchset #4 (id:100001)
4 years, 2 months ago (2016-09-27 06:13:37 UTC) #35
commit-bot: I haz the power
4 years, 2 months ago (2016-09-27 06:17:22 UTC) #37
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/da6c2ca5df87b5f74c615c45f8b5b6faf82cb158
Cr-Commit-Position: refs/heads/master@{#421126}

Powered by Google App Engine
This is Rietveld 408576698