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

Unified Diff: chrome/test/base/testing_profile.h

Issue 10837244: Replace HistoryQuickProvider protobuf-based caching with an SQLite-based database. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Tweak suppression. Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/base/testing_profile.h
===================================================================
--- chrome/test/base/testing_profile.h (revision 151481)
+++ chrome/test/base/testing_profile.h (working copy)
@@ -38,6 +38,7 @@
class CommandLine;
class ExtensionSpecialStoragePolicy;
class FaviconService;
+class HistoryService;
class HostContentSettingsMap;
class PrefService;
class ProfileDependencyManager;
@@ -140,6 +141,12 @@
// for testing error conditions.
void CreateHistoryService(bool delete_file, bool no_db);
+ // Initializes the history service. If |no_db| is true, the history backend
+ // will fail to initialize its database; this is useful for testing error
+ // conditions. Returns true upon success.
+ virtual bool InitHistoryService(HistoryService* history_service,
+ bool no_db);
+
// Shuts down and nulls out the reference to HistoryService.
void DestroyHistoryService();

Powered by Google App Engine
This is Rietveld 408576698