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

Issue 2442013003: Add non-host functionality to the previews blacklist (Closed)

Created:
4 years, 2 months ago by RyanSturm
Modified:
4 years, 1 month ago
Reviewers:
tbansal1
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add non-host functionality to the previews blacklist This adds a rule to prevent previews navigations when j of k of the last previews navigations in the past x days were opted out of regardless of the host. j, k, and x are remotely controlled via finch but are defaulted to 4, 10, and 100*365 by default. BUG=639091 Committed: https://crrev.com/72c7c9f37eb3337f951c1529f3135fcebad4f250 Cr-Commit-Position: refs/heads/master@{#430371}

Patch Set 1 #

Patch Set 2 : typo #

Total comments: 14

Patch Set 3 : tbansal comments #

Total comments: 19

Patch Set 4 : rebase #

Patch Set 5 : tbansal comments #

Patch Set 6 : rebase #

Total comments: 16

Patch Set 7 : tbansal comments #

Patch Set 8 : fix for test and rebased file #

Total comments: 4

Patch Set 9 : rebase and test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+372 lines, -106 lines) Patch
M components/previews/core/previews_black_list.h View 1 2 3 4 5 1 chunk +13 lines, -9 lines 0 comments Download
M components/previews/core/previews_black_list.cc View 1 2 3 4 5 6 3 chunks +45 lines, -20 lines 0 comments Download
M components/previews/core/previews_black_list_item.h View 1 2 3 4 5 6 7 8 2 chunks +26 lines, -8 lines 0 comments Download
M components/previews/core/previews_black_list_item.cc View 1 2 3 4 5 6 7 8 1 chunk +24 lines, -12 lines 0 comments Download
M components/previews/core/previews_black_list_unittest.cc View 1 2 3 4 5 6 7 4 chunks +165 lines, -29 lines 0 comments Download
M components/previews/core/previews_experiments.h View 1 2 3 4 5 6 1 chunk +15 lines, -4 lines 0 comments Download
M components/previews/core/previews_experiments.cc View 1 2 3 4 5 6 1 chunk +54 lines, -17 lines 0 comments Download
M components/previews/core/previews_opt_out_store.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M components/previews/core/previews_opt_out_store_sql.cc View 1 2 3 4 5 6 7 8 1 chunk +14 lines, -5 lines 0 comments Download
M components/previews/core/previews_opt_out_store_sql_unittest.cc View 1 2 3 4 5 6 7 8 5 chunks +14 lines, -1 line 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 65 (53 generated)
RyanSturm
tbansal: PTAL
4 years, 2 months ago (2016-10-21 22:06:52 UTC) #10
tbansal1
https://codereview.chromium.org/2442013003/diff/20001/components/previews/core/previews_black_list.h File components/previews/core/previews_black_list.h (right): https://codereview.chromium.org/2442013003/diff/20001/components/previews/core/previews_black_list.h#newcode74 components/previews/core/previews_black_list.h:74: // Returns a new PreviewsBlackListItem for the general black ...
4 years, 2 months ago (2016-10-21 22:56:26 UTC) #11
RyanSturm
tbansal: PTAL https://codereview.chromium.org/2442013003/diff/20001/components/previews/core/previews_black_list.h File components/previews/core/previews_black_list.h (right): https://codereview.chromium.org/2442013003/diff/20001/components/previews/core/previews_black_list.h#newcode74 components/previews/core/previews_black_list.h:74: // Returns a new PreviewsBlackListItem for the ...
4 years, 1 month ago (2016-10-24 22:24:40 UTC) #33
tbansal1
https://codereview.chromium.org/2442013003/diff/100001/components/previews/core/previews_black_list.cc File components/previews/core/previews_black_list.cc (right): https://codereview.chromium.org/2442013003/diff/100001/components/previews/core/previews_black_list.cc#newcode115 components/previews/core/previews_black_list.cc:115: DCHECK(host_indifferent_black_list_item_); This DCHECK is not really necessary. If |host_indifferent_black_list_item_| ...
4 years, 1 month ago (2016-10-25 16:15:48 UTC) #34
RyanSturm
tbansal: PTAL https://codereview.chromium.org/2442013003/diff/100001/components/previews/core/previews_black_list.cc File components/previews/core/previews_black_list.cc (right): https://codereview.chromium.org/2442013003/diff/100001/components/previews/core/previews_black_list.cc#newcode115 components/previews/core/previews_black_list.cc:115: DCHECK(host_indifferent_black_list_item_); On 2016/10/25 16:15:47, tbansal1 wrote: > ...
4 years, 1 month ago (2016-10-25 18:15:44 UTC) #37
tbansal1
mostly nits. https://codereview.chromium.org/2442013003/diff/100001/components/previews/core/previews_black_list_unittest.cc File components/previews/core/previews_black_list_unittest.cc (right): https://codereview.chromium.org/2442013003/diff/100001/components/previews/core/previews_black_list_unittest.cc#newcode315 components/previews/core/previews_black_list_unittest.cc:315: TEST_F(PreviewsBlackListTest, HostIndifferentBlackListWithStore) { On 2016/10/25 18:15:44, Ryan ...
4 years, 1 month ago (2016-10-28 21:59:34 UTC) #44
RyanSturm
tbansal: PTAL https://codereview.chromium.org/2442013003/diff/160001/components/previews/core/previews_black_list.cc File components/previews/core/previews_black_list.cc (right): https://codereview.chromium.org/2442013003/diff/160001/components/previews/core/previews_black_list.cc#newcode175 components/previews/core/previews_black_list.cc:175: DCHECK(host_indifferent_black_list_item); On 2016/10/28 21:59:33, tbansal1 wrote: > ...
4 years, 1 month ago (2016-11-02 19:52:30 UTC) #53
tbansal1
lgtm % 2 nits. https://codereview.chromium.org/2442013003/diff/200001/components/previews/core/previews_black_list_item.cc File components/previews/core/previews_black_list_item.cc (right): https://codereview.chromium.org/2442013003/diff/200001/components/previews/core/previews_black_list_item.cc#newcode39 components/previews/core/previews_black_list_item.cc:39: total_opt_out_(0) {} DCHECK_LE(opt_out_black_list_threshold, stored_history_length); this ...
4 years, 1 month ago (2016-11-07 19:23:36 UTC) #54
RyanSturm
https://codereview.chromium.org/2442013003/diff/200001/components/previews/core/previews_black_list_item.cc File components/previews/core/previews_black_list_item.cc (right): https://codereview.chromium.org/2442013003/diff/200001/components/previews/core/previews_black_list_item.cc#newcode39 components/previews/core/previews_black_list_item.cc:39: total_opt_out_(0) {} On 2016/11/07 19:23:36, tbansal1 wrote: > DCHECK_LE(opt_out_black_list_threshold, ...
4 years, 1 month ago (2016-11-07 19:53:02 UTC) #56
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/2442013003/220001
4 years, 1 month ago (2016-11-07 20:49:21 UTC) #62
commit-bot: I haz the power
Committed patchset #9 (id:220001)
4 years, 1 month ago (2016-11-07 20:56:03 UTC) #63
commit-bot: I haz the power
4 years, 1 month ago (2016-11-07 21:19:06 UTC) #65
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/72c7c9f37eb3337f951c1529f3135fcebad4f250
Cr-Commit-Position: refs/heads/master@{#430371}

Powered by Google App Engine
This is Rietveld 408576698