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

Issue 1544633002: Submit buffered data use reports when Chromium is backgrounded (Closed)

Created:
5 years ago by Raj
Modified:
4 years, 11 months ago
Reviewers:
tbansal1
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Submit buffered data use reports when Chromium is backgrounded Currently, ExternalDataUseObserver buffers data use reports until the sum of bytes across all reports exceeds |kDefaultDataUseReportMinBytes|. This leads to loss of buffered reports, when Chromium is closed. By reporting the bytes whenever Chromium goes into the background we can reduce the unreported bytes. BUG=570001 Committed: https://crrev.com/3ea246d66fe9bcab77d2c3ecc77331cf1ffb3fc5 Cr-Commit-Position: refs/heads/master@{#367126}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Added unittests, addressed comments #

Total comments: 3

Patch Set 3 : Addressed nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -8 lines) Patch
M chrome/browser/android/data_usage/external_data_use_observer.h View 1 2 4 chunks +24 lines, -2 lines 0 comments Download
M chrome/browser/android/data_usage/external_data_use_observer.cc View 1 5 chunks +18 lines, -4 lines 0 comments Download
M chrome/browser/android/data_usage/external_data_use_observer_unittest.cc View 1 2 3 chunks +59 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
Raj
ptal, thanks
5 years ago (2015-12-21 20:33:04 UTC) #2
tbansal1
Please add tests: (1) Report is submitted when the callback is called, even if the ...
5 years ago (2015-12-21 21:03:25 UTC) #3
Raj
ptal https://codereview.chromium.org/1544633002/diff/1/chrome/browser/android/data_usage/external_data_use_observer.cc File chrome/browser/android/data_usage/external_data_use_observer.cc (right): https://codereview.chromium.org/1544633002/diff/1/chrome/browser/android/data_usage/external_data_use_observer.cc#newcode217 chrome/browser/android/data_usage/external_data_use_observer.cc:217: base::android::ApplicationState new_state) { On 2015/12/21 21:03:24, tbansal1 wrote: ...
4 years, 11 months ago (2015-12-29 23:17:35 UTC) #4
tbansal1
lgtm % nits. https://chromiumcodereview.appspot.com/1544633002/diff/20001/chrome/browser/android/data_usage/external_data_use_observer.h File chrome/browser/android/data_usage/external_data_use_observer.h (right): https://chromiumcodereview.appspot.com/1544633002/diff/20001/chrome/browser/android/data_usage/external_data_use_observer.h#newcode209 chrome/browser/android/data_usage/external_data_use_observer.h:209: // and vice versa. s/and/or? https://chromiumcodereview.appspot.com/1544633002/diff/20001/chrome/browser/android/data_usage/external_data_use_observer.h#newcode263 ...
4 years, 11 months ago (2015-12-30 00:12:05 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1544633002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1544633002/40001
4 years, 11 months ago (2015-12-30 01:42:08 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 11 months ago (2015-12-30 01:48:13 UTC) #9
commit-bot: I haz the power
4 years, 11 months ago (2015-12-30 01:49:54 UTC) #11
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/3ea246d66fe9bcab77d2c3ecc77331cf1ffb3fc5
Cr-Commit-Position: refs/heads/master@{#367126}

Powered by Google App Engine
This is Rietveld 408576698