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

Issue 1834563002: initial add of SQL based storage (Closed)

Created:
4 years, 9 months ago by bburns
Modified:
4 years, 7 months ago
CC:
chromium-reviews, blundell+watchlist_chromium.org, sdefresne+watchlist_chromium.org, droger+watchlist_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a SQLite implementation of the OfflinePageMetadataStore interface as part of the migration to a SQLite backed storage layer. BUG=599235 Committed: https://crrev.com/fe2525d8a9809785c7d85bcee84214364f40fca3 Cr-Commit-Position: refs/heads/master@{#391849}

Patch Set 1 #

Total comments: 59

Patch Set 2 : Address comments and add tests #

Patch Set 3 : address comments, add tests. #

Patch Set 4 : address comments. #

Total comments: 30

Patch Set 5 : address comments #

Patch Set 6 : address comments. #

Patch Set 7 : address comments #

Patch Set 8 : fixed tests #

Total comments: 46

Patch Set 9 : fix tests #

Patch Set 10 : address comments #

Patch Set 11 : address comments #

Total comments: 2

Patch Set 12 : address comments. #

Patch Set 13 : address comments #

Total comments: 1

Patch Set 14 : addressed comment #

Patch Set 15 : fix style nits #

Patch Set 16 : fix windows build #

Patch Set 17 : fix windows build #

Total comments: 34

Patch Set 18 : address comments. #

Patch Set 19 : address changes #

Patch Set 20 : address comments. #

Total comments: 20

Patch Set 21 : address comments #

Patch Set 22 : rebase #

Patch Set 23 : rebase #

Patch Set 24 : fix build #

Patch Set 25 : address comments #

Total comments: 7

Patch Set 26 : address comments #

Total comments: 1

Patch Set 27 : move to static functors. #

Total comments: 7

Patch Set 28 : address comments. #

Patch Set 29 : address comments #

Total comments: 42

Patch Set 30 : address comments #

Total comments: 5

Patch Set 31 : address comments #

Total comments: 4

Patch Set 32 : address changes... #

Patch Set 33 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+682 lines, -208 lines) Patch
M components/offline_pages.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 2 chunks +3 lines, -0 lines 0 comments Download
M components/offline_pages/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 2 chunks +3 lines, -0 lines 0 comments Download
M components/offline_pages/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +1 line, -0 lines 0 comments Download
M components/offline_pages/offline_page_metadata_store_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 10 chunks +258 lines, -208 lines 0 comments Download
A components/offline_pages/offline_page_metadata_store_sql.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 1 chunk +85 lines, -0 lines 0 comments Download
A components/offline_pages/offline_page_metadata_store_sql.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 1 chunk +331 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 82 (20 generated)
bburns
This is the first step towards a SQLite based store. This doesn't have tests, which ...
4 years, 9 months ago (2016-03-24 01:05:38 UTC) #2
fgorski
Please try to adapt tests from OPMS_impl_unittests. I don't think the callbacks are implemented properly. ...
4 years, 9 months ago (2016-03-24 16:27:56 UTC) #3
Dmitry Titov
Agree with all Filip's comments, couple more: https://codereview.chromium.org/1834563002/diff/1/components/offline_pages/offline_page_metadata_store_sql.cc File components/offline_pages/offline_page_metadata_store_sql.cc (right): https://codereview.chromium.org/1834563002/diff/1/components/offline_pages/offline_page_metadata_store_sql.cc#newcode43 components/offline_pages/offline_page_metadata_store_sql.cc:43: #define OFFLINE_ID ...
4 years, 9 months ago (2016-03-24 23:22:20 UTC) #4
bburns
Comments addressed. Tests added. Please take another look. Thanks! --brendan https://codereview.chromium.org/1834563002/diff/1/components/offline_pages/offline_page_metadata_store_sql.cc File components/offline_pages/offline_page_metadata_store_sql.cc (right): https://codereview.chromium.org/1834563002/diff/1/components/offline_pages/offline_page_metadata_store_sql.cc#newcode27 ...
4 years, 9 months ago (2016-03-25 23:07:38 UTC) #5
fgorski
Hey, Brendan, this patch looks much better and this is huge amount of work. I ...
4 years, 8 months ago (2016-03-29 06:50:19 UTC) #6
bburns
Comments addressed, please re-check. Will work on determining why tests are broken. https://codereview.chromium.org/1834563002/diff/60001/components/offline_pages/offline_page_metadata_store_sql.cc File components/offline_pages/offline_page_metadata_store_sql.cc ...
4 years, 8 months ago (2016-03-30 16:54:40 UTC) #7
fgorski
3 responses to address. Please also update the Issue description, specify bug and loop in ...
4 years, 8 months ago (2016-03-30 17:19:31 UTC) #8
bburns
comments addressed, please re-check. Thanks! --brendan
4 years, 8 months ago (2016-03-30 18:26:33 UTC) #9
fgorski
lgtm Repeating my earlier request, to get you moving from here: Please also update the ...
4 years, 8 months ago (2016-03-30 20:39:57 UTC) #10
bburns
Jian, Filip LGTM'd this but would like you to take a look too. Please take ...
4 years, 8 months ago (2016-03-30 21:03:40 UTC) #12
jianli
https://codereview.chromium.org/1834563002/diff/140001/components/offline_pages/offline_page_metadata_store_sql.cc File components/offline_pages/offline_page_metadata_store_sql.cc (right): https://codereview.chromium.org/1834563002/diff/140001/components/offline_pages/offline_page_metadata_store_sql.cc#newcode28 components/offline_pages/offline_page_metadata_store_sql.cc:28: // This is a #define instead of a const ...
4 years, 8 months ago (2016-03-31 23:40:55 UTC) #15
bburns
Comments addressed. Please re-check. Thanks! --brendan https://codereview.chromium.org/1834563002/diff/140001/components/offline_pages/offline_page_metadata_store_sql.cc File components/offline_pages/offline_page_metadata_store_sql.cc (right): https://codereview.chromium.org/1834563002/diff/140001/components/offline_pages/offline_page_metadata_store_sql.cc#newcode28 components/offline_pages/offline_page_metadata_store_sql.cc:28: // This is ...
4 years, 8 months ago (2016-04-01 17:12:57 UTC) #16
bburns
Comments addressed. Please re-check. Thanks! --brendan
4 years, 8 months ago (2016-04-01 17:26:11 UTC) #17
jianli
https://codereview.chromium.org/1834563002/diff/140001/components/offline_pages/offline_page_metadata_store_sql.cc File components/offline_pages/offline_page_metadata_store_sql.cc (right): https://codereview.chromium.org/1834563002/diff/140001/components/offline_pages/offline_page_metadata_store_sql.cc#newcode168 components/offline_pages/offline_page_metadata_store_sql.cc:168: OfflinePageMetadataStoreSQL::~OfflinePageMetadataStoreSQL() {} On 2016/04/01 17:12:56, bburns wrote: > On ...
4 years, 8 months ago (2016-04-01 20:57:59 UTC) #18
bburns
Comments addressed. Please re-check. Thanks! https://codereview.chromium.org/1834563002/diff/140001/components/offline_pages/offline_page_metadata_store_sql.cc File components/offline_pages/offline_page_metadata_store_sql.cc (right): https://codereview.chromium.org/1834563002/diff/140001/components/offline_pages/offline_page_metadata_store_sql.cc#newcode168 components/offline_pages/offline_page_metadata_store_sql.cc:168: OfflinePageMetadataStoreSQL::~OfflinePageMetadataStoreSQL() {} On 2016/04/01 ...
4 years, 8 months ago (2016-04-01 22:51:44 UTC) #19
jianli
lgtm https://codereview.chromium.org/1834563002/diff/240001/components/offline_pages/offline_page_metadata_store_sql.cc File components/offline_pages/offline_page_metadata_store_sql.cc (right): https://codereview.chromium.org/1834563002/diff/240001/components/offline_pages/offline_page_metadata_store_sql.cc#newcode175 components/offline_pages/offline_page_metadata_store_sql.cc:175: DLOG(WARNING) << "Proto database will not be deleted."; ...
4 years, 8 months ago (2016-04-01 22:59:52 UTC) #20
bburns
On 2016/04/01 22:59:52, jianli wrote: > lgtm > > https://codereview.chromium.org/1834563002/diff/240001/components/offline_pages/offline_page_metadata_store_sql.cc > File components/offline_pages/offline_page_metadata_store_sql.cc (right): > ...
4 years, 8 months ago (2016-04-01 23:23:23 UTC) #21
bburns
shess: for OWNERS for the SQL dependency. Thanks!
4 years, 8 months ago (2016-04-01 23:24:13 UTC) #23
bburns
shess: friendly monday afternoon ping for OWNERS Thanks! --brendan
4 years, 8 months ago (2016-04-04 22:38:33 UTC) #24
bburns
-shess: on vacation +gbillock: for SQL OWNERS. Thanks! --brendan
4 years, 8 months ago (2016-04-05 21:00:05 UTC) #26
Greg Billock
On 2016/04/05 21:00:05, bburns wrote: > -shess: on vacation > +gbillock: for SQL OWNERS. > ...
4 years, 8 months ago (2016-04-05 21:35:17 UTC) #27
chromium-reviews
Ok, if you'd prefer I can wait for shess@ he is on vacation until next ...
4 years, 8 months ago (2016-04-05 21:37:08 UTC) #28
chromium-reviews
I realzied actually, I'm on vacation next week, so if it's not a giant problem, ...
4 years, 8 months ago (2016-04-05 21:38:19 UTC) #29
Scott Hess - ex-Googler
sorry for the delay, I was oot and neglected to set my status. https://codereview.chromium.org/1834563002/diff/320001/components/offline_pages/offline_page_metadata_store_sql.cc File ...
4 years, 8 months ago (2016-04-12 21:49:21 UTC) #32
Scott Hess - ex-Googler
sorry for the delay, I was oot and neglected to set my status. https://codereview.chromium.org/1834563002/diff/320001/components/offline_pages/offline_page_metadata_store_sql.cc File ...
4 years, 8 months ago (2016-04-12 21:49:22 UTC) #33
Scott Hess - ex-Googler
https://codereview.chromium.org/1834563002/diff/60001/components/offline_pages/offline_page_metadata_store_sql.cc File components/offline_pages/offline_page_metadata_store_sql.cc (right): https://codereview.chromium.org/1834563002/diff/60001/components/offline_pages/offline_page_metadata_store_sql.cc#newcode248 components/offline_pages/offline_page_metadata_store_sql.cc:248: bool success = DropTable(db_.get(), kOfflinePagesTableName); On 2016/03/30 17:19:31, fgorski ...
4 years, 8 months ago (2016-04-12 21:57:23 UTC) #34
Scott Hess - ex-Googler
https://codereview.chromium.org/1834563002/diff/320001/components/offline_pages/offline_page_metadata_store_sql.cc File components/offline_pages/offline_page_metadata_store_sql.cc (right): https://codereview.chromium.org/1834563002/diff/320001/components/offline_pages/offline_page_metadata_store_sql.cc#newcode47 components/offline_pages/offline_page_metadata_store_sql.cc:47: " user_initiated BOOLEAN," On 2016/04/12 21:49:21, Scott Hess wrote: ...
4 years, 8 months ago (2016-04-14 18:18:53 UTC) #35
bburns
Comments addressed. Please take another look. Sorry for the delay, I was also ooo (last ...
4 years, 8 months ago (2016-04-19 17:59:45 UTC) #36
Scott Hess - ex-Googler
Quick pass reviewing comments-on-comments. I'll follow up with another pass on the code changes. https://codereview.chromium.org/1834563002/diff/320001/components/offline_pages/offline_page_metadata_store_sql.cc ...
4 years, 8 months ago (2016-04-20 18:22:37 UTC) #38
bburns
Comments addressed. I went through and addressed all your comments in the design doc. too. ...
4 years, 8 months ago (2016-04-20 20:34:24 UTC) #39
Scott Hess - ex-Googler
Apologies for not circling back as promised to review the current state of the code. ...
4 years, 8 months ago (2016-04-21 03:25:11 UTC) #40
chromium-reviews
Ugh, sorry to hear that, hope folks feel better soon! There's definitely no rush on ...
4 years, 8 months ago (2016-04-21 03:26:59 UTC) #41
Scott Hess - ex-Googler
OK, mostly getting down to nits, here. https://codereview.chromium.org/1834563002/diff/380001/components/offline_pages/BUILD.gn File components/offline_pages/BUILD.gn (right): https://codereview.chromium.org/1834563002/diff/380001/components/offline_pages/BUILD.gn#newcode90 components/offline_pages/BUILD.gn:90: "//sql:sql", Why ...
4 years, 8 months ago (2016-04-25 19:57:55 UTC) #42
bburns
comments addressed, please re-check. thanks! --brendan https://codereview.chromium.org/1834563002/diff/380001/components/offline_pages/BUILD.gn File components/offline_pages/BUILD.gn (right): https://codereview.chromium.org/1834563002/diff/380001/components/offline_pages/BUILD.gn#newcode90 components/offline_pages/BUILD.gn:90: "//sql:sql", On 2016/04/25 ...
4 years, 8 months ago (2016-04-26 23:27:02 UTC) #43
Scott Hess - ex-Googler
https://codereview.chromium.org/1834563002/diff/380001/components/offline_pages/BUILD.gn File components/offline_pages/BUILD.gn (right): https://codereview.chromium.org/1834563002/diff/380001/components/offline_pages/BUILD.gn#newcode90 components/offline_pages/BUILD.gn:90: "//sql:sql", On 2016/04/26 23:27:02, bburns wrote: > On 2016/04/25 ...
4 years, 7 months ago (2016-04-27 15:21:00 UTC) #44
bburns
ok, addressed comments again. thanks for your patience. --brendan https://codereview.chromium.org/1834563002/diff/380001/components/offline_pages/BUILD.gn File components/offline_pages/BUILD.gn (right): https://codereview.chromium.org/1834563002/diff/380001/components/offline_pages/BUILD.gn#newcode90 components/offline_pages/BUILD.gn:90: ...
4 years, 7 months ago (2016-04-27 19:59:21 UTC) #45
Scott Hess - ex-Googler
Ryan, looping you in WRT my WeakPtr commentary. Mostly not aiming for a treatise (you ...
4 years, 7 months ago (2016-04-27 21:16:45 UTC) #47
Scott Hess - ex-Googler
Actually, moving Ryan to CC instead of Reviewer.
4 years, 7 months ago (2016-04-27 21:19:42 UTC) #49
bburns
Thanks, I'm 100% happy to change the weak_ptr semantics, I'm pretty much a newb when ...
4 years, 7 months ago (2016-04-27 21:26:37 UTC) #50
Scott Hess - ex-Googler
On 2016/04/27 21:26:37, bburns wrote: > Thanks, I'm 100% happy to change the weak_ptr semantics, ...
4 years, 7 months ago (2016-04-27 21:51:57 UTC) #51
Scott Hess - ex-Googler
https://codereview.chromium.org/1834563002/diff/490001/components/offline_pages/offline_page_metadata_store_sql.cc File components/offline_pages/offline_page_metadata_store_sql.cc (right): https://codereview.chromium.org/1834563002/diff/490001/components/offline_pages/offline_page_metadata_store_sql.cc#newcode173 components/offline_pages/offline_page_metadata_store_sql.cc:173: db_.reset(new sql::Connection); I just realized that I was being ...
4 years, 7 months ago (2016-04-28 02:37:53 UTC) #52
Scott Hess - ex-Googler
On 2016/04/27 21:16:45, Scott Hess wrote: > Ryan, looping you in WRT my WeakPtr commentary. ...
4 years, 7 months ago (2016-04-28 17:53:42 UTC) #53
bburns
On 2016/04/28 02:37:53, Scott Hess wrote: > https://codereview.chromium.org/1834563002/diff/490001/components/offline_pages/offline_page_metadata_store_sql.cc > File components/offline_pages/offline_page_metadata_store_sql.cc (right): > > https://codereview.chromium.org/1834563002/diff/490001/components/offline_pages/offline_page_metadata_store_sql.cc#newcode173 ...
4 years, 7 months ago (2016-04-28 18:54:55 UTC) #54
Ryan Sleevi
On 2016/04/27 21:26:37, bburns wrote: > Thanks, I'm 100% happy to change the weak_ptr semantics, ...
4 years, 7 months ago (2016-04-28 21:24:03 UTC) #55
bburns
On 2016/04/28 21:24:03, Ryan Sleevi wrote: > On 2016/04/27 21:26:37, bburns wrote: > > Thanks, ...
4 years, 7 months ago (2016-04-28 21:32:01 UTC) #56
fgorski
small nits after drive by. https://codereview.chromium.org/1834563002/diff/510001/components/offline_pages/offline_page_metadata_store_sql.cc File components/offline_pages/offline_page_metadata_store_sql.cc (right): https://codereview.chromium.org/1834563002/diff/510001/components/offline_pages/offline_page_metadata_store_sql.cc#newcode201 components/offline_pages/offline_page_metadata_store_sql.cc:201: namespace {} // anonymous ...
4 years, 7 months ago (2016-04-29 05:46:25 UTC) #57
bburns
comments addressed, please re-check. thanks --brendan https://codereview.chromium.org/1834563002/diff/510001/components/offline_pages/offline_page_metadata_store_sql.cc File components/offline_pages/offline_page_metadata_store_sql.cc (right): https://codereview.chromium.org/1834563002/diff/510001/components/offline_pages/offline_page_metadata_store_sql.cc#newcode201 components/offline_pages/offline_page_metadata_store_sql.cc:201: namespace {} // ...
4 years, 7 months ago (2016-04-29 16:43:25 UTC) #58
bburns
https://codereview.chromium.org/1834563002/diff/510001/components/offline_pages/offline_page_metadata_store_sql.h File components/offline_pages/offline_page_metadata_store_sql.h (right): https://codereview.chromium.org/1834563002/diff/510001/components/offline_pages/offline_page_metadata_store_sql.h#newcode58 components/offline_pages/offline_page_metadata_store_sql.h:58: base::FilePath path, On 2016/04/29 16:43:25, bburns wrote: > On ...
4 years, 7 months ago (2016-04-29 16:48:04 UTC) #59
bburns
On 2016/04/29 16:48:04, bburns wrote: > https://codereview.chromium.org/1834563002/diff/510001/components/offline_pages/offline_page_metadata_store_sql.h > File components/offline_pages/offline_page_metadata_store_sql.h (right): > > https://codereview.chromium.org/1834563002/diff/510001/components/offline_pages/offline_page_metadata_store_sql.h#newcode58 > ...
4 years, 7 months ago (2016-04-29 17:00:03 UTC) #60
bburns
On 2016/04/29 17:00:03, bburns wrote: > On 2016/04/29 16:48:04, bburns wrote: > > > https://codereview.chromium.org/1834563002/diff/510001/components/offline_pages/offline_page_metadata_store_sql.h ...
4 years, 7 months ago (2016-05-02 17:27:27 UTC) #61
Scott Hess - ex-Googler
I think I'm happy with the weak-ptr-less-ness of things! Now just grinding away the nits. ...
4 years, 7 months ago (2016-05-02 20:36:19 UTC) #62
bburns
mpearson: OWNERS for histogram.xml Comments addressed, please take another look. thanks! --brendan https://codereview.chromium.org/1834563002/diff/550001/components/offline_pages/offline_page_metadata_store_sql.cc File components/offline_pages/offline_page_metadata_store_sql.cc ...
4 years, 7 months ago (2016-05-02 21:44:18 UTC) #64
Scott Hess - ex-Googler
OK, I think my only substantive point is the handling of the db_ ownership in ...
4 years, 7 months ago (2016-05-02 23:33:32 UTC) #65
bburns
Comments addressed. please re-check. thanks! --brendan https://codereview.chromium.org/1834563002/diff/550001/components/offline_pages/offline_page_metadata_store_sql.cc File components/offline_pages/offline_page_metadata_store_sql.cc (right): https://codereview.chromium.org/1834563002/diff/550001/components/offline_pages/offline_page_metadata_store_sql.cc#newcode38 components/offline_pages/offline_page_metadata_store_sql.cc:38: " user_initiated INTEGER," ...
4 years, 7 months ago (2016-05-03 17:15:55 UTC) #66
Mark P
histograms.xml lgtm
4 years, 7 months ago (2016-05-03 18:08:55 UTC) #67
Scott Hess - ex-Googler
LGTM, after you resolve the nits. If you resolve them as indicated, no need to ...
4 years, 7 months ago (2016-05-03 18:09:03 UTC) #68
bburns
Comments resolved as suggested. No need to recheck unless you want to. Many thanks for ...
4 years, 7 months ago (2016-05-03 19:39:32 UTC) #69
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1834563002/610001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1834563002/610001
4 years, 7 months ago (2016-05-03 23:03:40 UTC) #72
commit-bot: I haz the power
Failed to apply the patch.
4 years, 7 months ago (2016-05-04 00:44:25 UTC) #74
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1834563002/630001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1834563002/630001
4 years, 7 months ago (2016-05-05 16:50:40 UTC) #78
commit-bot: I haz the power
Committed patchset #33 (id:630001)
4 years, 7 months ago (2016-05-05 18:26:42 UTC) #80
commit-bot: I haz the power
4 years, 7 months ago (2016-05-05 18:29:11 UTC) #82
Message was sent while issue was closed.
Patchset 33 (id:??) landed as
https://crrev.com/fe2525d8a9809785c7d85bcee84214364f40fca3
Cr-Commit-Position: refs/heads/master@{#391849}

Powered by Google App Engine
This is Rietveld 408576698