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

Issue 2390773003: Adding a SQL implementation of the backing store for previews opt outs (Closed)

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

Description

Adding a SQL implementation of the backing store for previews opt outs Previews maintains opt outs to determine eligibility of a navigation to a domain. To persist this information, a SQLite database is created to store opt out choice, host name, preview type, and time. This portion of the implementation only implements creating the table, and returning an empty result to PreviewBlackList (after running a real query). BUG=653730 Committed: https://crrev.com/2ae78ccf536394379900253a4099b5e089b07084 Cr-Commit-Position: refs/heads/master@{#424319}

Patch Set 1 #

Patch Set 2 : formtatting #

Total comments: 4

Patch Set 3 : Split black list initialization and construction #

Total comments: 8

Patch Set 4 : tbansal comments #

Total comments: 4

Patch Set 5 : tbansal comments #

Total comments: 34

Patch Set 6 : rebase #

Total comments: 4

Patch Set 7 : shess comments #

Total comments: 2

Patch Set 8 : rebase #

Total comments: 10

Patch Set 9 : shess comments #

Total comments: 12

Patch Set 10 : rebase #

Patch Set 11 : shess comments #

Patch Set 12 : table change #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+351 lines, -64 lines) Patch
M chrome/browser/previews/previews_service.h View 1 2 3 1 chunk +15 lines, -3 lines 0 comments Download
M chrome/browser/previews/previews_service.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +23 lines, -3 lines 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -5 lines 0 comments Download
M chrome/common/chrome_constants.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_constants.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M components/previews/core/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M components/previews/core/DEPS View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M components/previews/core/previews_black_list.h View 1 2 3 4 5 6 7 8 1 chunk +12 lines, -12 lines 0 comments Download
M components/previews/core/previews_black_list.cc View 1 2 3 4 5 6 7 8 9 3 chunks +46 lines, -41 lines 0 comments Download
A components/previews/core/previews_opt_out_store_sql.h View 1 2 3 4 5 6 7 8 1 chunk +67 lines, -0 lines 0 comments Download
A components/previews/core/previews_opt_out_store_sql.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +177 lines, -0 lines 1 comment Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 83 (59 generated)
RyanSturm
tbansal: PTAL @ *
4 years, 2 months ago (2016-10-03 23:55:27 UTC) #6
tbansal1
https://codereview.chromium.org/2390773003/diff/20001/chrome/browser/previews/previews_service.h File chrome/browser/previews/previews_service.h (right): https://codereview.chromium.org/2390773003/diff/20001/chrome/browser/previews/previews_service.h#newcode35 chrome/browser/previews/previews_service.h:35: const base::FilePath& profile_path); comment on the variables: e.g., |profile_path| ...
4 years, 2 months ago (2016-10-04 15:01:21 UTC) #13
RyanSturm
tbansal: PTAL https://codereview.chromium.org/2390773003/diff/40001/chrome/browser/previews/previews_service.h File chrome/browser/previews/previews_service.h (right): https://codereview.chromium.org/2390773003/diff/40001/chrome/browser/previews/previews_service.h#newcode31 chrome/browser/previews/previews_service.h:31: // Initializes the UI Service. On 2016/10/04 ...
4 years, 2 months ago (2016-10-04 19:10:23 UTC) #16
RyanSturm
https://codereview.chromium.org/2390773003/diff/20001/chrome/browser/previews/previews_service.h File chrome/browser/previews/previews_service.h (right): https://codereview.chromium.org/2390773003/diff/20001/chrome/browser/previews/previews_service.h#newcode35 chrome/browser/previews/previews_service.h:35: const base::FilePath& profile_path); On 2016/10/04 15:01:21, tbansal1 wrote: > ...
4 years, 2 months ago (2016-10-05 17:03:30 UTC) #19
tbansal1
lgtm https://codereview.chromium.org/2390773003/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/2390773003/diff/60001/components/previews/core/previews_opt_out_store_sql.cc#newcode42 components/previews/core/previews_opt_out_store_sql.cc:42: OP_HOST_NAME = 0, IIUC, the order of enums ...
4 years, 2 months ago (2016-10-06 15:25:53 UTC) #20
RyanSturm
thestig: PTAL @ chrome/common/chrome_constants mmenke: PTAL @ ProfileImplIOData.cc shess: PTAL @ new SQL dependency in ...
4 years, 2 months ago (2016-10-06 16:24:35 UTC) #22
mmenke
profile_io_data LGTM
4 years, 2 months ago (2016-10-06 16:52:53 UTC) #27
Scott Hess - ex-Googler
https://codereview.chromium.org/2390773003/diff/80001/chrome/common/chrome_constants.cc File chrome/common/chrome_constants.cc (right): https://codereview.chromium.org/2390773003/diff/80001/chrome/common/chrome_constants.cc#newcode160 chrome/common/chrome_constants.cc:160: FPL("Previews/opt_out"); Why a directory rather than a file? https://codereview.chromium.org/2390773003/diff/80001/components/previews/core/previews_opt_out_store_sql.cc ...
4 years, 2 months ago (2016-10-06 17:24:28 UTC) #30
Lei Zhang
Waiting for shess to approve. https://codereview.chromium.org/2390773003/diff/100001/chrome/browser/previews/previews_service.cc File chrome/browser/previews/previews_service.cc (right): https://codereview.chromium.org/2390773003/diff/100001/chrome/browser/previews/previews_service.cc#newcode40 chrome/browser/previews/previews_service.cc:40: previews_ui_service_.reset(new previews::PreviewsUIService( base::MakeUnique?
4 years, 2 months ago (2016-10-06 19:16:50 UTC) #33
RyanSturm
shess: PTAL https://codereview.chromium.org/2390773003/diff/80001/chrome/common/chrome_constants.cc File chrome/common/chrome_constants.cc (right): https://codereview.chromium.org/2390773003/diff/80001/chrome/common/chrome_constants.cc#newcode160 chrome/common/chrome_constants.cc:160: FPL("Previews/opt_out"); On 2016/10/06 17:24:27, Scott Hess wrote: ...
4 years, 2 months ago (2016-10-06 20:05:40 UTC) #35
RyanSturm
asvitkine: PTAL @ histograms
4 years, 2 months ago (2016-10-06 23:41:15 UTC) #44
Scott Hess - ex-Googler
I'll try to give it another pass with fresh eyes in a few hours, in ...
4 years, 2 months ago (2016-10-07 00:08:46 UTC) #46
Alexei Svitkine (slow)
histograms.xml lgtm
4 years, 2 months ago (2016-10-07 15:03:53 UTC) #47
RyanSturm
shess: PTAL https://codereview.chromium.org/2390773003/diff/80001/chrome/common/chrome_constants.cc File chrome/common/chrome_constants.cc (right): https://codereview.chromium.org/2390773003/diff/80001/chrome/common/chrome_constants.cc#newcode160 chrome/common/chrome_constants.cc:160: FPL("Previews/opt_out"); On 2016/10/07 00:08:45, Scott Hess wrote: ...
4 years, 2 months ago (2016-10-07 20:07:06 UTC) #52
Scott Hess - ex-Googler
Let me know what you think about the primary key bit. The "id INTEGER PRIMARY ...
4 years, 2 months ago (2016-10-08 00:04:22 UTC) #53
RyanSturm
Shess: PTAL. I went with the primary key for timestamp. I don't think there is ...
4 years, 2 months ago (2016-10-10 18:50:36 UTC) #60
Scott Hess - ex-Googler
I'm going to go verify that a SELECT against something which the index can satisfy ...
4 years, 2 months ago (2016-10-10 19:57:45 UTC) #63
RyanSturm
Makes sense. Let me know if anything seems awry or if the select will consult ...
4 years, 2 months ago (2016-10-10 20:16:58 UTC) #66
Scott Hess - ex-Googler
LGTM. I'll probably find three more complaints in the future, but you have to declare ...
4 years, 2 months ago (2016-10-10 23:34:15 UTC) #74
Lei Zhang
lgtm
4 years, 2 months ago (2016-10-10 23:38:12 UTC) #75
Scott Hess - ex-Googler
On 2016/10/10 19:57:45, Scott Hess wrote: > I'm going to go verify that a SELECT ...
4 years, 2 months ago (2016-10-10 23:59:44 UTC) #76
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/2390773003/240001
4 years, 2 months ago (2016-10-11 01:00:53 UTC) #79
commit-bot: I haz the power
Committed patchset #12 (id:240001)
4 years, 2 months ago (2016-10-11 01:07:49 UTC) #81
commit-bot: I haz the power
4 years, 2 months ago (2016-10-11 01:15:47 UTC) #83
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/2ae78ccf536394379900253a4099b5e089b07084
Cr-Commit-Position: refs/heads/master@{#424319}

Powered by Google App Engine
This is Rietveld 408576698