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

Issue 502005: Preload the visited link db on the file thread. (Closed)

Created:
11 years ago by tony
Modified:
9 years, 7 months ago
Reviewers:
brettw, jam, Evan Stade
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Preload the visited link db on the file thread if the file exists. Otherwise, just load like normal on the UI thread. BUG=24163 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=34874

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : fix init #

Patch Set 4 : comments #

Total comments: 4

Patch Set 5 : comments #

Total comments: 2

Patch Set 6 : comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+180 lines, -88 lines) Patch
M chrome/browser/browser_main.cc View 1 2 3 4 5 3 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/profile.h View 4 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/profile.cc View 1 2 3 4 5 5 chunks +95 lines, -10 lines 0 comments Download
M chrome/browser/visitedlink_master.h View 3 4 5 3 chunks +11 lines, -12 lines 0 comments Download
M chrome/browser/visitedlink_master.cc View 3 4 5 3 chunks +61 lines, -62 lines 0 comments Download
M chrome/test/testing_profile.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
tony
11 years ago (2009-12-15 22:26:11 UTC) #1
brettw
http://codereview.chromium.org/502005/diff/2001/3001 File chrome/browser/browser_main.cc (right): http://codereview.chromium.org/502005/diff/2001/3001#newcode744 chrome/browser/browser_main.cc:744: profile->PreloadVisitedLinkMaster(); Can you write a comment about why this ...
11 years ago (2009-12-16 00:54:51 UTC) #2
tony
take another look? http://codereview.chromium.org/502005/diff/2001/3001 File chrome/browser/browser_main.cc (right): http://codereview.chromium.org/502005/diff/2001/3001#newcode744 chrome/browser/browser_main.cc:744: profile->PreloadVisitedLinkMaster(); On 2009/12/16 00:54:51, brettw wrote: ...
11 years ago (2009-12-16 19:23:25 UTC) #3
tony
brettw timed out. trying other reviewers.
11 years ago (2009-12-17 18:12:47 UTC) #4
jam
hey, I'm not that familiar with the code, and I think Brett is here today, ...
11 years ago (2009-12-17 19:09:06 UTC) #5
brettw
11 years ago (2009-12-17 19:16:15 UTC) #6
LGTM with two nits. Thanks for getting this finally fixed.

http://codereview.chromium.org/502005/diff/3008/2005
File chrome/browser/visitedlink_master.cc (right):

http://codereview.chromium.org/502005/diff/3008/2005#newcode570
chrome/browser/visitedlink_master.cc:570: bool
VisitedLinkMaster::InitFromScratch() {
Can you move the definitions of these two functions you made public to below
Init so they match the order of the header?

http://codereview.chromium.org/502005/diff/3008/2006
File chrome/browser/visitedlink_master.h (right):

http://codereview.chromium.org/502005/diff/3008/2006#newcode79
chrome/browser/visitedlink_master.h:79: // until this is called. Returns true on
success, false means that this
Can you update this comment to point out that you can instead call
InitFromFile/InitFromScratch if you need more control.

Powered by Google App Engine
This is Rietveld 408576698