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

Issue 1837223002: Buffer UI navigation events in DataUseTabModel until rule fetch (Closed)

Created:
4 years, 8 months ago by Raj
Modified:
4 years, 8 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

Buffer UI navigation events in DataUseTabModel until rule fetch Matching rules are fetched when Chrome starts and can take in the order of 100-200ms. UI navigations that happen before these rules are fetched will not start the data use tracking. This race condition is fixed by buffering the navigation events until rule fetch is complete. BUG=586235 Committed: https://crrev.com/557c920a034b0226b1edd307ae63995ee358644e Cr-Commit-Position: refs/heads/master@{#383817}

Patch Set 1 #

Total comments: 20

Patch Set 2 : Addressed tbansal comments #

Total comments: 6

Patch Set 3 : Addressed nits #

Patch Set 4 : Addressed unittest fail #

Unified diffs Side-by-side diffs Delta from patch set Stats (+195 lines, -5 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/datausage/ExternalDataUseObserver.java View 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/android/data_usage/data_use_tab_model.h View 1 2 3 chunks +40 lines, -0 lines 0 comments Download
M chrome/browser/android/data_usage/data_use_tab_model.cc View 1 6 chunks +34 lines, -1 line 0 comments Download
M chrome/browser/android/data_usage/data_use_tab_model_unittest.cc View 1 2 1 chunk +36 lines, -0 lines 0 comments Download
M chrome/browser/android/data_usage/external_data_use_observer.h View 1 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/android/data_usage/external_data_use_observer_unittest.cc View 1 2 3 4 chunks +74 lines, -1 line 0 comments Download

Messages

Total messages: 17 (8 generated)
Raj
ptal
4 years, 8 months ago (2016-03-29 16:05:01 UTC) #2
tbansal1
https://codereview.chromium.org/1837223002/diff/1/chrome/browser/android/data_usage/data_use_tab_model.cc File chrome/browser/android/data_usage/data_use_tab_model.cc (right): https://codereview.chromium.org/1837223002/diff/1/chrome/browser/android/data_usage/data_use_tab_model.cc#newcode178 chrome/browser/android/data_usage/data_use_tab_model.cc:178: data_use_ui_navigations_->push_back(ui_event); Just push directly without creating temp. variable |ui_event|? ...
4 years, 8 months ago (2016-03-29 16:20:41 UTC) #3
Raj
Thanks for reviewing. https://codereview.chromium.org/1837223002/diff/1/chrome/browser/android/data_usage/data_use_tab_model.cc File chrome/browser/android/data_usage/data_use_tab_model.cc (right): https://codereview.chromium.org/1837223002/diff/1/chrome/browser/android/data_usage/data_use_tab_model.cc#newcode178 chrome/browser/android/data_usage/data_use_tab_model.cc:178: data_use_ui_navigations_->push_back(ui_event); On 2016/03/29 16:20:41, tbansal1 wrote: ...
4 years, 8 months ago (2016-03-29 18:03:21 UTC) #4
tbansal1
lgtm % nits. https://codereview.chromium.org/1837223002/diff/20001/chrome/browser/android/data_usage/data_use_tab_model.h File chrome/browser/android/data_usage/data_use_tab_model.h (right): https://codereview.chromium.org/1837223002/diff/20001/chrome/browser/android/data_usage/data_use_tab_model.h#newcode261 chrome/browser/android/data_usage/data_use_tab_model.h:261: // and releases the vector in ...
4 years, 8 months ago (2016-03-29 18:19:04 UTC) #5
Raj
https://codereview.chromium.org/1837223002/diff/20001/chrome/browser/android/data_usage/data_use_tab_model.h File chrome/browser/android/data_usage/data_use_tab_model.h (right): https://codereview.chromium.org/1837223002/diff/20001/chrome/browser/android/data_usage/data_use_tab_model.h#newcode261 chrome/browser/android/data_usage/data_use_tab_model.h:261: // and releases the vector in |data_use_ui_navigations_| so that ...
4 years, 8 months ago (2016-03-29 19:45:54 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1837223002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1837223002/80001
4 years, 8 months ago (2016-03-29 19:45:59 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1837223002/40002 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1837223002/40002
4 years, 8 months ago (2016-03-29 20:47:01 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:40002)
4 years, 8 months ago (2016-03-29 20:54:25 UTC) #15
commit-bot: I haz the power
4 years, 8 months ago (2016-03-29 20:56:58 UTC) #17
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/557c920a034b0226b1edd307ae63995ee358644e
Cr-Commit-Position: refs/heads/master@{#383817}

Powered by Google App Engine
This is Rietveld 408576698