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

Issue 2640023007: Adds PreviewsType version mechanism for clearing blacklist entries. (Closed)

Created:
3 years, 11 months ago by dougarnett
Modified:
3 years, 10 months ago
Reviewers:
bengr, RyanSturm, tbansal1
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adds PreviewsType version mechanism for clearing blacklist entries. Adds new table to the Previews opt-out store (PreviewsOptOutStoreSQL) for holding the current version of PreviewsType's used on that client with clean-up code to delete black list entries for a PreviewsType when the version of that PreviewsType changes. BUG=680620 Review-Url: https://codereview.chromium.org/2640023007 Cr-Commit-Position: refs/heads/master@{#450754} Committed: https://chromium.googlesource.com/chromium/src/+/5e57dedf90886a800035abc8e70048266d1dd110

Patch Set 1 #

Total comments: 12

Patch Set 2 : Addressed tbansal's comments #

Total comments: 1

Patch Set 3 : Removed std::move #

Total comments: 10

Patch Set 4 : Addressed Ryan's comments except no tests yet. #

Patch Set 5 : Missed a change in last upload #

Total comments: 2

Patch Set 6 : Fixed return signature of new method #

Patch Set 7 : Added sql store test #

Patch Set 8 : Cleaned up commented include #

Total comments: 20

Patch Set 9 : Addressed Ryan's comments (except switch nit) #

Patch Set 10 : Reworked to also clear blacklist for previews types that are no longer enabled. #

Patch Set 11 : Few nits #

Total comments: 7

Patch Set 12 : Addressed Ryan recent comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+334 lines, -44 lines) Patch
M components/previews/core/previews_experiments.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +15 lines, -0 lines 0 comments Download
M components/previews/core/previews_experiments.cc View 1 2 3 4 5 6 7 8 9 10 14 chunks +61 lines, -15 lines 0 comments Download
M components/previews/core/previews_opt_out_store_sql.cc View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +159 lines, -28 lines 0 comments Download
M components/previews/core/previews_opt_out_store_sql_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +99 lines, -1 line 0 comments Download

Messages

Total messages: 66 (44 generated)
dougarnett
Ryan, I'm looking for your initial look at approach and code. I haven't yet turned ...
3 years, 11 months ago (2017-01-19 23:58:49 UTC) #4
dougarnett
Tarun, I wonder if you can give this an initial look as to approach. Ryan ...
3 years, 11 months ago (2017-01-23 18:43:04 UTC) #8
tbansal1
looks good to me. Just a bunch of nits. https://codereview.chromium.org/2640023007/diff/1/components/previews/core/previews_experiments.h File components/previews/core/previews_experiments.h (right): https://codereview.chromium.org/2640023007/diff/1/components/previews/core/previews_experiments.h#newcode64 components/previews/core/previews_experiments.h:64: ...
3 years, 11 months ago (2017-01-23 20:06:11 UTC) #9
dougarnett
https://codereview.chromium.org/2640023007/diff/1/components/previews/core/previews_experiments.h File components/previews/core/previews_experiments.h (right): https://codereview.chromium.org/2640023007/diff/1/components/previews/core/previews_experiments.h#newcode64 components/previews/core/previews_experiments.h:64: // Caller assumes ownership of returned vector. On 2017/01/23 ...
3 years, 11 months ago (2017-01-24 00:52:38 UTC) #11
tbansal1
lgtm % nit but wait for ryansturm@. I am not too sure about the testing ...
3 years, 11 months ago (2017-01-25 18:09:57 UTC) #19
RyanSturm
This general approach looks good. I added a few nits while I was looking through, ...
3 years, 11 months ago (2017-01-25 23:17:53 UTC) #20
dougarnett
Addressed comments except haven't written tests yet. https://codereview.chromium.org/2640023007/diff/40001/components/previews/core/previews_experiments.cc File components/previews/core/previews_experiments.cc (right): https://codereview.chromium.org/2640023007/diff/40001/components/previews/core/previews_experiments.cc#newcode188 components/previews/core/previews_experiments.cc:188: // TODO(dougarnett): ...
3 years, 11 months ago (2017-01-26 00:48:27 UTC) #25
tbansal1
https://codereview.chromium.org/2640023007/diff/80001/components/previews/core/previews_experiments.cc File components/previews/core/previews_experiments.cc (right): https://codereview.chromium.org/2640023007/diff/80001/components/previews/core/previews_experiments.cc#newcode191 components/previews/core/previews_experiments.cc:191: return version; I think the switch-case can be rewritten ...
3 years, 11 months ago (2017-01-26 00:59:14 UTC) #26
dougarnett
PTAL - added test case https://codereview.chromium.org/2640023007/diff/80001/components/previews/core/previews_experiments.cc File components/previews/core/previews_experiments.cc (right): https://codereview.chromium.org/2640023007/diff/80001/components/previews/core/previews_experiments.cc#newcode191 components/previews/core/previews_experiments.cc:191: return version; On 2017/01/26 ...
3 years, 10 months ago (2017-02-07 21:15:02 UTC) #35
RyanSturm
Sync up with bengr@, he is changing the field trials and that could impact what ...
3 years, 10 months ago (2017-02-08 23:51:00 UTC) #40
RyanSturm
+bengr@ since you are refactoring field trials.
3 years, 10 months ago (2017-02-08 23:51:32 UTC) #42
bengr
Thanks, Ryan. Did a quick drive by as well... https://codereview.chromium.org/2640023007/diff/140001/components/previews/core/previews_experiments.cc File components/previews/core/previews_experiments.cc (right): https://codereview.chromium.org/2640023007/diff/140001/components/previews/core/previews_experiments.cc#newcode223 components/previews/core/previews_experiments.cc:223: ...
3 years, 10 months ago (2017-02-09 17:33:47 UTC) #43
dougarnett
Updated per Ryan's comments (haven't looked at Ben's yet). https://codereview.chromium.org/2640023007/diff/140001/components/previews/core/previews_experiments.cc File components/previews/core/previews_experiments.cc (right): https://codereview.chromium.org/2640023007/diff/140001/components/previews/core/previews_experiments.cc#newcode211 components/previews/core/previews_experiments.cc:211: ...
3 years, 10 months ago (2017-02-09 17:46:59 UTC) #44
tbansal1
https://codereview.chromium.org/2640023007/diff/140001/components/previews/core/previews_experiments.cc File components/previews/core/previews_experiments.cc (right): https://codereview.chromium.org/2640023007/diff/140001/components/previews/core/previews_experiments.cc#newcode211 components/previews/core/previews_experiments.cc:211: case PreviewsType::LAST: On 2017/02/09 17:46:59, dougarnett wrote: > On ...
3 years, 10 months ago (2017-02-09 17:48:58 UTC) #45
RyanSturm
https://codereview.chromium.org/2640023007/diff/140001/components/previews/core/previews_experiments.cc File components/previews/core/previews_experiments.cc (right): https://codereview.chromium.org/2640023007/diff/140001/components/previews/core/previews_experiments.cc#newcode211 components/previews/core/previews_experiments.cc:211: case PreviewsType::LAST: On 2017/02/09 17:48:58, tbansal1 wrote: > On ...
3 years, 10 months ago (2017-02-09 17:54:38 UTC) #46
dougarnett
PTAL - revised for Ben's plan that additional previews types will have their own field ...
3 years, 10 months ago (2017-02-13 17:56:17 UTC) #51
bengr
lgtm
3 years, 10 months ago (2017-02-15 00:11:00 UTC) #54
RyanSturm
I like where this ended up. If I understand it correctly, when a user transitions ...
3 years, 10 months ago (2017-02-15 00:30:29 UTC) #55
dougarnett
https://codereview.chromium.org/2640023007/diff/200001/components/previews/core/previews_experiments.cc File components/previews/core/previews_experiments.cc (right): https://codereview.chromium.org/2640023007/diff/200001/components/previews/core/previews_experiments.cc#newcode233 components/previews/core/previews_experiments.cc:233: // Loop across all previews types (relies on sequential ...
3 years, 10 months ago (2017-02-15 17:20:07 UTC) #58
RyanSturm
lgtm. https://codereview.chromium.org/2640023007/diff/200001/components/previews/core/previews_opt_out_store_sql_unittest.cc File components/previews/core/previews_opt_out_store_sql_unittest.cc (right): https://codereview.chromium.org/2640023007/diff/200001/components/previews/core/previews_opt_out_store_sql_unittest.cc#newcode88 components/previews/core/previews_opt_out_store_sql_unittest.cc:88: field_trials_.reset(); On 2017/02/15 17:20:07, dougarnett wrote: > On ...
3 years, 10 months ago (2017-02-15 17:27:01 UTC) #59
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/2640023007/220001
3 years, 10 months ago (2017-02-15 17:47:34 UTC) #63
commit-bot: I haz the power
3 years, 10 months ago (2017-02-15 19:06:40 UTC) #66
Message was sent while issue was closed.
Committed patchset #12 (id:220001) as
https://chromium.googlesource.com/chromium/src/+/5e57dedf90886a800035abc8e700...

Powered by Google App Engine
This is Rietveld 408576698