From e587a45fcdc7dec3c5ce894e4fac236cdb8fe2ad Mon Sep 17 00:00:00 2001 From: "pkasting@chromium.org" Date: Fri, 30 Oct 2009 22:34:41 +0000 Subject: Show a warning when the history files can't be read correctly. This re-plumbs the existing "TooNew" codepath to handle arbitrary error messages. BUG=25822 TEST=Make your history files non-readable, run Chrome (Release), make sure you get a warning dialog. Review URL: http://codereview.chromium.org/342048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30642 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/history/history_backend.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'chrome/browser/history/history_backend.h') diff --git a/chrome/browser/history/history_backend.h b/chrome/browser/history/history_backend.h index 4effaca..34481ce 100644 --- a/chrome/browser/history/history_backend.h +++ b/chrome/browser/history/history_backend.h @@ -52,9 +52,8 @@ class HistoryBackend : public base::RefCountedThreadSafe, public: virtual ~Delegate() {} - // Called when the database is from a future version of the product and can - // not be used. - virtual void NotifyTooNew() = 0; + // Called when the database cannot be read correctly for some reason. + virtual void NotifyProfileError(int message_id) = 0; // Sets the in-memory history backend. The in-memory backend is created by // the main backend. For non-unit tests, this happens on the background -- cgit v1.1