From 5f96bf3a7f495fe21e6a61b023a4a3659b3ec7e3 Mon Sep 17 00:00:00 2001 From: "wtc@chromium.org" Date: Fri, 24 Sep 2010 17:01:40 +0000 Subject: Change NOTREACHED() to LOG(ERROR) when we cannot initialize the web database. This is not a programming error. This can happen if we run an old version of Chrome with a new version of user data directory. R=sky BUG=none TEST=N/A Review URL: http://codereview.chromium.org/3418028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60480 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/webdata/web_data_service.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'chrome/browser/webdata') diff --git a/chrome/browser/webdata/web_data_service.cc b/chrome/browser/webdata/web_data_service.cc index 43c6a5d..16cceac 100644 --- a/chrome/browser/webdata/web_data_service.cc +++ b/chrome/browser/webdata/web_data_service.cc @@ -549,13 +549,13 @@ void WebDataService::InitializeDatabaseIfNecessary() { return; // In the rare case where the db fails to initialize a dialog may get shown - // the blocks the caller, yet allows other messages through. For this reason + // that blocks the caller, yet allows other messages through. For this reason // we only set db_ to the created database if creation is successful. That // way other methods won't do anything as db_ is still NULL. WebDatabase* db = new WebDatabase(); sql::InitStatus init_status = db->Init(path_); if (init_status != sql::INIT_OK) { - NOTREACHED() << "Cannot initialize the web database"; + LOG(ERROR) << "Cannot initialize the web database: " << init_status; failed_init_ = true; delete db; if (main_loop_) { -- cgit v1.1