summaryrefslogtreecommitdiffstats
path: root/chrome/test/testing_profile.h
diff options
context:
space:
mode:
authortony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-12 03:39:53 +0000
committertony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-12 03:39:53 +0000
commita5fb1c5db00481df8e2707b1b1ef8ecd4d62559f (patch)
tree655b48f2ae981cc33dfe9714b36a9e4ab9cdd79c /chrome/test/testing_profile.h
parentd43a385b95751e8e85d68f41a979d575372b08e1 (diff)
downloadchromium_src-a5fb1c5db00481df8e2707b1b1ef8ecd4d62559f.zip
chromium_src-a5fb1c5db00481df8e2707b1b1ef8ecd4d62559f.tar.gz
chromium_src-a5fb1c5db00481df8e2707b1b1ef8ecd4d62559f.tar.bz2
Take 2: Preload the visited link db on the file thread if
the file exists. Otherwise, just load like normal on the UI thread. This failed before because the browser may have shutdown before the posted task ran. When the posted task finally runs, it tried to use the profile, but the profile was already deleted. Make a small change to VisitedLinkMaster so GetDatabaseFileName no longer depends on the profile. BUG=24163 Review URL: http://codereview.chromium.org/507047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35991 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/testing_profile.h')
-rw-r--r--chrome/test/testing_profile.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/test/testing_profile.h b/chrome/test/testing_profile.h
index 77fdd40..7d32356 100644
--- a/chrome/test/testing_profile.h
+++ b/chrome/test/testing_profile.h
@@ -79,6 +79,7 @@ class TestingProfile : public Profile {
virtual Profile* GetOriginalProfile() { return this; }
virtual webkit_database::DatabaseTracker* GetDatabaseTracker();
virtual VisitedLinkMaster* GetVisitedLinkMaster() { return NULL; }
+ virtual void PreloadVisitedLinkMaster() {}
virtual ExtensionsService* GetExtensionsService() { return NULL; }
virtual UserScriptMaster* GetUserScriptMaster() { return NULL; }
virtual ExtensionDevToolsManager* GetExtensionDevToolsManager() {