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

Issue 201099: Convert the sqlite cookie database and web database to use the new sqlite... (Closed)

Created:
11 years, 3 months ago by brettw
Modified:
9 years, 7 months ago
Reviewers:
cpu_(ooo_6.6-7.5)
CC:
chromium-reviews_googlegroups.com, darin (slow to review), Ben Goodger (Google), Paweł Hajdan Jr.
Visibility:
Public.

Description

Convert the sqlite cookie database and web database to use the new sqlite wrapper. This also moves and renamed the old cookie_monster_sqlite file to match the class name. BUG=none TEST=none

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 9

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+628 lines, -1204 lines) Patch
M app/sql/connection.h View 1 2 3 1 chunk +7 lines, -2 lines 0 comments Download
M app/sql/connection.cc View 1 2 3 3 chunks +16 lines, -4 lines 0 comments Download
M app/sql/statement.h View 3 1 chunk +4 lines, -3 lines 0 comments Download
M app/sql/statement.cc View 3 4 chunks +9 lines, -3 lines 0 comments Download
M chrome/browser/net/chrome_url_request_context.h View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/net/chrome_url_request_context.cc View 1 2 3 4 chunks +4 lines, -3 lines 0 comments Download
A + chrome/browser/net/sqlite_persistent_cookie_store.h View 2 chunks +12 lines, -11 lines 0 comments Download
A + chrome/browser/net/sqlite_persistent_cookie_store.cc View 1 2 3 9 chunks +91 lines, -112 lines 0 comments Download
M chrome/browser/profile.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/webdata/web_data_service.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/webdata/web_database.h View 1 2 3 10 chunks +26 lines, -24 lines 0 comments Download
M chrome/browser/webdata/web_database.cc View 1 2 3 26 chunks +414 lines, -471 lines 0 comments Download
M chrome/browser/webdata/web_database_unittest.cc View 1 2 3 11 chunks +11 lines, -11 lines 0 comments Download
M chrome/browser/webdata/web_database_win.cc View 2 3 3 chunks +30 lines, -33 lines 0 comments Download
M chrome/chrome.gyp View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
D chrome/common/net/cookie_monster_sqlite.h View 1 2 3 1 chunk +0 lines, -53 lines 0 comments Download
D chrome/common/net/cookie_monster_sqlite.cc View 1 2 3 1 chunk +0 lines, -467 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
brettw
11 years, 3 months ago (2009-09-11 23:38:38 UTC) #1
cpu_(ooo_6.6-7.5)
LGTM Some nits below http://codereview.chromium.org/201099/diff/3002/5002 File app/sql/connection.h (right): http://codereview.chromium.org/201099/diff/3002/5002#newcode199 Line 199: bool DoesTableExist( const char* ...
11 years, 3 months ago (2009-09-14 23:06:21 UTC) #2
brettw
http://codereview.chromium.org/201099/diff/3002/5002 File app/sql/connection.h (right): http://codereview.chromium.org/201099/diff/3002/5002#newcode210 Line 210: // is closed. On 2009/09/14 23:06:22, cpu wrote: ...
11 years, 3 months ago (2009-09-15 00:45:27 UTC) #3
cpu_(ooo_6.6-7.5)
11 years, 3 months ago (2009-09-21 21:30:24 UTC) #4
Ok. Go for it.


On 2009/09/15 00:45:27, brettw wrote:
> http://codereview.chromium.org/201099/diff/3002/5002
> File app/sql/connection.h (right):
> 
> http://codereview.chromium.org/201099/diff/3002/5002#newcode210
> Line 210: // is closed.
> On 2009/09/14 23:06:22, cpu wrote:
> > soo scary that it does not take the statement. Is our reliance  on this
safe?
> 
> This is sqlite's model (like the last inserted row ID). I think this is only
> used in one place, so yes.
> 
> http://codereview.chromium.org/201099/diff/3002/5005
> File chrome/browser/webdata/web_database.h (right):
> 
> http://codereview.chromium.org/201099/diff/3002/5005#newcode113
> Line 113: bool RemoveLoginsCreatedBetween(base::Time delete_begin,
> On 2009/09/14 23:06:22, cpu wrote:
> > const reference?
> > 
> > The time structure seems pretty fat, maybe there is a reason for this?
> 
> Time is just an int64. I intuitively think of it like a nice wrapper around
> time_t, so pass by value (I bet this is cheaper than dereferencing the
reference
> too).

Powered by Google App Engine
This is Rietveld 408576698