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

Issue 2754023002: Add a throttle wrapper to OfflineContentProvider (Closed)

Created:
3 years, 9 months ago by David Trainor- moved to gerrit
Modified:
3 years, 9 months ago
Reviewers:
qinmin, fgorski
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a throttle wrapper to OfflineContentProvider This adds a class that supports automatically throttling updates driven by OfflineContentProviders. This allows the UI to limit the amount of updates sent by underlying providers to a reasonable rate. BUG=691805 Review-Url: https://codereview.chromium.org/2754023002 Cr-Commit-Position: refs/heads/master@{#458994} Committed: https://chromium.googlesource.com/chromium/src/+/cd5c1457b96b49938e484359839a5e62b13ac5c4

Patch Set 1 #

Total comments: 19

Patch Set 2 : Addressed comments #

Total comments: 2

Patch Set 3 : (Hopefully) fix DCHECK and sad test compile error #

Patch Set 4 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+519 lines, -0 lines) Patch
M components/offline_items_collection/core/BUILD.gn View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
A components/offline_items_collection/core/throttled_offline_content_provider.h View 1 1 chunk +83 lines, -0 lines 0 comments Download
A components/offline_items_collection/core/throttled_offline_content_provider.cc View 1 2 1 chunk +154 lines, -0 lines 0 comments Download
A components/offline_items_collection/core/throttled_offline_content_provider_unittest.cc View 1 2 1 chunk +279 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 34 (20 generated)
David Trainor- moved to gerrit
ptal thanks! doesn't hook up to any particular provider yet. I'm planning on putting it ...
3 years, 9 months ago (2017-03-16 21:57:01 UTC) #2
fgorski
mostly looks good. https://codereview.chromium.org/2754023002/diff/1/components/offline_items_collection/core/throttled_offline_content_provider.cc File components/offline_items_collection/core/throttled_offline_content_provider.cc (right): https://codereview.chromium.org/2754023002/diff/1/components/offline_items_collection/core/throttled_offline_content_provider.cc#newcode32 components/offline_items_collection/core/throttled_offline_content_provider.cc:32: wrapped_provider_->AddObserver(this); DCHECK(wrapped_provider_); above, please. https://codereview.chromium.org/2754023002/diff/1/components/offline_items_collection/core/throttled_offline_content_provider.cc#newcode80 components/offline_items_collection/core/throttled_offline_content_provider.cc:80: ...
3 years, 9 months ago (2017-03-17 04:03:19 UTC) #3
David Trainor- moved to gerrit
https://codereview.chromium.org/2754023002/diff/1/components/offline_items_collection/core/throttled_offline_content_provider.cc File components/offline_items_collection/core/throttled_offline_content_provider.cc (right): https://codereview.chromium.org/2754023002/diff/1/components/offline_items_collection/core/throttled_offline_content_provider.cc#newcode32 components/offline_items_collection/core/throttled_offline_content_provider.cc:32: wrapped_provider_->AddObserver(this); On 2017/03/17 04:03:19, fgorski wrote: > DCHECK(wrapped_provider_); above, ...
3 years, 9 months ago (2017-03-20 06:27:54 UTC) #6
fgorski
lgtm % comments. https://codereview.chromium.org/2754023002/diff/1/components/offline_items_collection/core/throttled_offline_content_provider.h File components/offline_items_collection/core/throttled_offline_content_provider.h (right): https://codereview.chromium.org/2754023002/diff/1/components/offline_items_collection/core/throttled_offline_content_provider.h#newcode41 components/offline_items_collection/core/throttled_offline_content_provider.h:41: // updates pending for |id| the ...
3 years, 9 months ago (2017-03-20 20:51:08 UTC) #9
qinmin
lgtm
3 years, 9 months ago (2017-03-21 05:24:41 UTC) #14
David Trainor- moved to gerrit
https://codereview.chromium.org/2754023002/diff/20001/components/offline_items_collection/core/throttled_offline_content_provider.cc File components/offline_items_collection/core/throttled_offline_content_provider.cc (right): https://codereview.chromium.org/2754023002/diff/20001/components/offline_items_collection/core/throttled_offline_content_provider.cc#newcode100 components/offline_items_collection/core/throttled_offline_content_provider.cc:100: DCHECK_EQ(this, wrapped_provider_); On 2017/03/20 20:51:08, fgorski wrote: > Are ...
3 years, 9 months ago (2017-03-22 00:11:13 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/2754023002/40001
3 years, 9 months ago (2017-03-22 00:11:54 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator-xcode-clang on master.tryserver.chromium.mac (JOB_TIMED_OUT, build hasn't started yet, builder ...
3 years, 9 months ago (2017-03-22 02:13:14 UTC) #20
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/2754023002/40001
3 years, 9 months ago (2017-03-22 21:09:14 UTC) #22
commit-bot: I haz the power
Failed to apply patch for components/offline_items_collection/core/BUILD.gn: While running git apply --index -p1; error: patch failed: ...
3 years, 9 months ago (2017-03-22 21:19:50 UTC) #24
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/2754023002/60001
3 years, 9 months ago (2017-03-23 00:12:54 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/142133)
3 years, 9 months ago (2017-03-23 01:20: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/2754023002/60001
3 years, 9 months ago (2017-03-23 02:24:50 UTC) #31
commit-bot: I haz the power
3 years, 9 months ago (2017-03-23 03:13:30 UTC) #34
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/cd5c1457b96b49938e484359839a...

Powered by Google App Engine
This is Rietveld 408576698