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

Issue 797983003: Implement AffiliationDatabase to cache affiliation information in a SQLite DB. (Closed)

Created:
6 years ago by engedy
Modified:
5 years, 11 months ago
CC:
gcasto+watchlist_chromium.org, mkwst+watchlist-passwords_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@aff_fetcher
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement AffiliationDatabase to cache affiliation information in a SQLite DB. BUG=437865 Committed: https://crrev.com/57b2c6c8543cc5b2dd5dd6844da381adf9e50db3 Cr-Commit-Position: refs/heads/master@{#312419}

Patch Set 1 : First #

Total comments: 10

Patch Set 2 : Addressed comments. #

Patch Set 3 : Fix typo. #

Total comments: 6

Patch Set 4 : Nits #

Total comments: 16

Patch Set 5 : Addressed most comments by shess@. #

Patch Set 6 : Use foreign keys with 'on delete cascade'. #

Patch Set 7 : Fix nits. #

Total comments: 13

Patch Set 8 : Addressed comments from shess@. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+663 lines, -0 lines) Patch
M components/components_tests.gyp View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M components/password_manager.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M components/password_manager/DEPS View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M components/password_manager/core/browser/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
A components/password_manager/core/browser/affiliation_database.h View 1 chunk +88 lines, -0 lines 0 comments Download
A components/password_manager/core/browser/affiliation_database.cc View 1 2 3 4 5 6 7 1 chunk +248 lines, -0 lines 0 comments Download
A components/password_manager/core/browser/affiliation_database_unittest.cc View 1 2 3 4 5 6 7 1 chunk +293 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/affiliation_utils.h View 1 2 3 4 5 6 7 2 chunks +12 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/affiliation_utils.cc View 1 2 3 4 5 6 7 2 chunks +15 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 29 (5 generated)
engedy
@Garrett, please take a look. @Scott, in case you are back, could you please look ...
6 years ago (2014-12-12 18:47:03 UTC) #3
Garrett Casto
I don't remember if I brought this up before, but have you given any thought ...
6 years ago (2014-12-12 21:48:29 UTC) #4
engedy
Hmm, I am not sure I understand your concern about generating unique keys. Could you ...
6 years ago (2014-12-12 23:46:34 UTC) #5
Garrett Casto
On 2014/12/12 23:46:34, engedy wrote: > Hmm, I am not sure I understand your concern ...
6 years ago (2014-12-13 00:13:05 UTC) #6
engedy
On 2014/12/13 00:13:05, Garrett Casto wrote: > On 2014/12/12 23:46:34, engedy wrote: > > Hmm, ...
6 years ago (2014-12-15 14:30:09 UTC) #8
engedy
https://codereview.chromium.org/797983003/diff/20001/components/password_manager/core/browser/affiliation_database.cc File components/password_manager/core/browser/affiliation_database.cc (right): https://codereview.chromium.org/797983003/diff/20001/components/password_manager/core/browser/affiliation_database.cc#newcode19 components/password_manager/core/browser/affiliation_database.cc:19: const int kCompatibleVersion = 2; On 2014/12/12 21:48:29, Garrett ...
6 years ago (2014-12-15 15:02:03 UTC) #9
Scott Hess - ex-Googler
On 2014/12/15 14:30:09, engedy wrote: > On 2014/12/13 00:13:05, Garrett Casto wrote: > > On ...
6 years ago (2014-12-15 17:01:21 UTC) #10
engedy
On 2014/12/15 17:01:21, Scott Hess - On Leave wrote: > On 2014/12/15 14:30:09, engedy wrote: ...
6 years ago (2014-12-15 17:20:36 UTC) #11
Scott Hess - ex-Googler
On 2014/12/15 17:20:36, engedy wrote: > On 2014/12/15 17:01:21, Scott Hess - On Leave wrote: ...
6 years ago (2014-12-15 17:38:30 UTC) #12
Garrett Casto
I may have had a slightly different idea than what Scott described, but my notion ...
6 years ago (2014-12-16 07:58:32 UTC) #13
engedy
Argh -- I am afraid I have somewhat misunderstood some aspects of SQLite vs LevelDB ...
6 years ago (2014-12-16 14:56:34 UTC) #14
engedy
Friendly ping.
5 years, 11 months ago (2015-01-05 10:02:09 UTC) #15
Scott Hess - ex-Googler
On 2015/01/05 10:02:09, engedy wrote: > Friendly ping. Grr, sorry, I had some SQLite-side comments ...
5 years, 11 months ago (2015-01-05 21:14:46 UTC) #16
Scott Hess - ex-Googler
On 2014/12/16 14:56:34, engedy wrote: > On 2014/12/16 07:58:31, Garrett Casto wrote: > > So, ...
5 years, 11 months ago (2015-01-05 21:51:18 UTC) #17
engedy
@Scott, many thanks for the thorough review. PTAL. There is only one outstanding question regarding ...
5 years, 11 months ago (2015-01-14 18:06:55 UTC) #18
engedy
On 2015/01/14 18:06:55, engedy wrote: > @Scott, many thanks for the thorough review. PTAL. > ...
5 years, 11 months ago (2015-01-19 21:20:00 UTC) #19
Scott Hess - ex-Googler
https://codereview.chromium.org/797983003/diff/100001/components/password_manager/core/browser/affiliation_database.cc File components/password_manager/core/browser/affiliation_database.cc (right): https://codereview.chromium.org/797983003/diff/100001/components/password_manager/core/browser/affiliation_database.cc#newcode241 components/password_manager/core/browser/affiliation_database.cc:241: "id INTEGER PRIMARY KEY," On 2015/01/14 18:06:55, engedy wrote: ...
5 years, 11 months ago (2015-01-20 23:21:39 UTC) #20
engedy
https://codereview.chromium.org/797983003/diff/100001/components/password_manager/core/browser/affiliation_database.cc File components/password_manager/core/browser/affiliation_database.cc (right): https://codereview.chromium.org/797983003/diff/100001/components/password_manager/core/browser/affiliation_database.cc#newcode278 components/password_manager/core/browser/affiliation_database.cc:278: DLOG(FATAL) << sql_connection_->GetErrorMessage(); On 2015/01/20 23:21:38, Scott Hess wrote: ...
5 years, 11 months ago (2015-01-21 15:47:47 UTC) #21
engedy
@Alexei: could you PTAL at the one-liner in histograms.xml?
5 years, 11 months ago (2015-01-21 15:48:52 UTC) #23
Alexei Svitkine (slow)
lgtm
5 years, 11 months ago (2015-01-21 16:49:56 UTC) #24
Scott Hess - ex-Googler
lgtm! https://codereview.chromium.org/797983003/diff/100001/components/password_manager/core/browser/affiliation_database.cc File components/password_manager/core/browser/affiliation_database.cc (right): https://codereview.chromium.org/797983003/diff/100001/components/password_manager/core/browser/affiliation_database.cc#newcode278 components/password_manager/core/browser/affiliation_database.cc:278: DLOG(FATAL) << sql_connection_->GetErrorMessage(); On 2015/01/21 15:47:47, engedy wrote: ...
5 years, 11 months ago (2015-01-21 18:18:57 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/797983003/180001
5 years, 11 months ago (2015-01-21 19:50:31 UTC) #27
commit-bot: I haz the power
Committed patchset #8 (id:180001)
5 years, 11 months ago (2015-01-21 20:24:54 UTC) #28
commit-bot: I haz the power
5 years, 11 months ago (2015-01-21 20:25:45 UTC) #29
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/57b2c6c8543cc5b2dd5dd6844da381adf9e50db3
Cr-Commit-Position: refs/heads/master@{#312419}

Powered by Google App Engine
This is Rietveld 408576698