Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Issue 2249004: SQLite DB for TopSites. (Closed)

Created:
10 years, 7 months ago by Nik Shkrob
Modified:
9 years, 7 months ago
CC:
chromium-reviews, brettw-cc_chromium.org, ben+cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Adding an SQLite database for TopSites. BUG=None TEST=TopSitesTest Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=48639

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Total comments: 19

Patch Set 10 : '' #

Total comments: 24

Patch Set 11 : '' #

Patch Set 12 : '' #

Total comments: 1

Patch Set 13 : Adding an SQLite database for TopSites. #

Patch Set 14 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+496 lines, -9 lines) Patch
M chrome/browser/history/top_sites.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/history/top_sites.cc View 9 10 11 12 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/history/top_sites_database.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +56 lines, -3 lines 0 comments Download
A chrome/browser/history/top_sites_database.cc View 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +235 lines, -0 lines 0 comments Download
M chrome/browser/history/top_sites_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 9 chunks +199 lines, -3 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Nik Shkrob
Please review.
10 years, 7 months ago (2010-05-27 22:28:22 UTC) #1
Paweł Hajdan Jr.
Drive-by with some test comments. Generally there's no need to wait for another review by ...
10 years, 7 months ago (2010-05-28 06:44:52 UTC) #2
Nik Shkrob
http://codereview.chromium.org/2249004/diff/43001/44005 File chrome/browser/history/top_sites_unittest.cc (right): http://codereview.chromium.org/2249004/diff/43001/44005#newcode38 chrome/browser/history/top_sites_unittest.cc:38: PathService::Get(chrome::DIR_TEST_DATA, &test_data_dir); On 2010/05/28 06:44:52, Paweł Hajdan Jr. wrote: ...
10 years, 7 months ago (2010-05-28 17:44:05 UTC) #3
brettw
http://codereview.chromium.org/2249004/diff/47002/52003 File chrome/browser/history/top_sites_database.cc (right): http://codereview.chromium.org/2249004/diff/47002/52003#newcode35 chrome/browser/history/top_sites_database.cc:35: "title LONGVARCHAR NOT NULL," I wouldn't bother with "NOT ...
10 years, 7 months ago (2010-05-28 20:19:35 UTC) #4
Nik Shkrob
http://codereview.chromium.org/2249004/diff/47002/52003 File chrome/browser/history/top_sites_database.cc (right): http://codereview.chromium.org/2249004/diff/47002/52003#newcode35 chrome/browser/history/top_sites_database.cc:35: "title LONGVARCHAR NOT NULL," On 2010/05/28 20:19:35, brettw wrote: ...
10 years, 7 months ago (2010-05-28 22:57:56 UTC) #5
brettw
10 years, 7 months ago (2010-05-29 04:06:06 UTC) #6
LGTM

http://codereview.chromium.org/2249004/diff/60001/61003
File chrome/browser/history/top_sites_database.cc (right):

http://codereview.chromium.org/2249004/diff/60001/61003#newcode96
chrome/browser/history/top_sites_database.cc:96: // Must be outside the
transaction: we need this value before we can continue.
Actually, this is wrong. Reading first thing inside the transaction will be
exactly the same as outside of it here. I think it actually makes sense for this
to be below the transaction begin since it can help I/O in some cases (it
doesn't need to get a read lock on the file the extra time).

Powered by Google App Engine
This is Rietveld 408576698