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

Issue 2410153008: Add remaining implementations to PreviewsOptOutStoreSQL (Closed)

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

Description

Add remaining implementations to PreviewsOptOutStoreSQL This adds an implementation for AddPreviewNavigation and ClearBlackList to PreviewsOptOutStoreSQL. AddPreviewNavigation adds a new row to the database with the passed in fields. It then prunes the DB to at most 32 rows per host and 3200 rows total in the DB. ClearBlackList removes all entries from the DB between two passed in times. BUG=653730 Committed: https://crrev.com/fd52f6bb42533bc43ea7095cba6aacf78c159572 Cr-Commit-Position: refs/heads/master@{#425821}

Patch Set 1 #

Patch Set 2 : changing comments #

Total comments: 14

Patch Set 3 : tbansal comments #

Total comments: 9

Patch Set 4 : shess comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -4 lines) Patch
M components/previews/core/previews_opt_out_store_sql.cc View 1 2 3 2 chunks +112 lines, -4 lines 2 comments Download

Messages

Total messages: 29 (19 generated)
RyanSturm
shess, tbansal: PTAL
4 years, 2 months ago (2016-10-12 20:50:50 UTC) #8
tbansal1
https://codereview.chromium.org/2410153008/diff/20001/components/previews/core/previews_opt_out_store_sql.cc File components/previews/core/previews_opt_out_store_sql.cc (right): https://codereview.chromium.org/2410153008/diff/20001/components/previews/core/previews_opt_out_store_sql.cc#newcode33 components/previews/core/previews_opt_out_store_sql.cc:33: const int kMaxRowsPerHost = 32; FWIW, 32 entries per ...
4 years, 2 months ago (2016-10-12 22:35:25 UTC) #11
Scott Hess - ex-Googler
https://codereview.chromium.org/2410153008/diff/20001/components/previews/core/previews_opt_out_store_sql.cc File components/previews/core/previews_opt_out_store_sql.cc (right): https://codereview.chromium.org/2410153008/diff/20001/components/previews/core/previews_opt_out_store_sql.cc#newcode138 components/previews/core/previews_opt_out_store_sql.cc:138: " LIMIT -1 OFFSET ?)"; On 2016/10/12 22:35:25, tbansal1 ...
4 years, 2 months ago (2016-10-12 23:44:35 UTC) #14
RyanSturm
shess: PTAL https://codereview.chromium.org/2410153008/diff/20001/components/previews/core/previews_opt_out_store_sql.cc File components/previews/core/previews_opt_out_store_sql.cc (right): https://codereview.chromium.org/2410153008/diff/20001/components/previews/core/previews_opt_out_store_sql.cc#newcode33 components/previews/core/previews_opt_out_store_sql.cc:33: const int kMaxRowsPerHost = 32; On 2016/10/12 ...
4 years, 2 months ago (2016-10-17 19:19:00 UTC) #19
Scott Hess - ex-Googler
LGTM. Your call on whether to retain the if() around the DELETE at load time. ...
4 years, 2 months ago (2016-10-17 23:18:09 UTC) #22
RyanSturm
Thanks! tbansal: PTAL https://codereview.chromium.org/2410153008/diff/60001/components/previews/core/previews_opt_out_store_sql.cc File components/previews/core/previews_opt_out_store_sql.cc (right): https://codereview.chromium.org/2410153008/diff/60001/components/previews/core/previews_opt_out_store_sql.cc#newcode180 components/previews/core/previews_opt_out_store_sql.cc:180: // TODO(ryansturm): Add UMA to log ...
4 years, 2 months ago (2016-10-17 23:26:38 UTC) #23
tbansal1
lgtm https://codereview.chromium.org/2410153008/diff/20001/components/previews/core/previews_opt_out_store_sql.cc File components/previews/core/previews_opt_out_store_sql.cc (right): https://codereview.chromium.org/2410153008/diff/20001/components/previews/core/previews_opt_out_store_sql.cc#newcode138 components/previews/core/previews_opt_out_store_sql.cc:138: " LIMIT -1 OFFSET ?)"; On 2016/10/17 19:19:00, ...
4 years, 2 months ago (2016-10-17 23:34:31 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/2410153008/60001
4 years, 2 months ago (2016-10-17 23:49:41 UTC) #26
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-10-17 23:57:35 UTC) #27
commit-bot: I haz the power
4 years, 2 months ago (2016-10-18 00:01:30 UTC) #29
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/fd52f6bb42533bc43ea7095cba6aacf78c159572
Cr-Commit-Position: refs/heads/master@{#425821}

Powered by Google App Engine
This is Rietveld 408576698