diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-18 00:19:44 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-18 00:19:44 +0000 |
commit | b3b2d6e76a2cfbb02933298c565d3718b0288774 (patch) | |
tree | 548c4d8fe0b7c7d22c44e045a61c7719977359cc /chrome/browser/history/history_backend.cc | |
parent | 5786d3d3a7cd151fb5dc0aa2f1f0d84460fb6cdf (diff) | |
download | chromium_src-b3b2d6e76a2cfbb02933298c565d3718b0288774.zip chromium_src-b3b2d6e76a2cfbb02933298c565d3718b0288774.tar.gz chromium_src-b3b2d6e76a2cfbb02933298c565d3718b0288774.tar.bz2 |
Fixes two related bugs:
. If we can't init the web db a dialog is shown to the user.
. If we can't init the web db the default search provider no longer
becomes NULL.
BUG=28374
TEST=none
Review URL: http://codereview.chromium.org/501090
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34901 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/history/history_backend.cc')
-rw-r--r-- | chrome/browser/history/history_backend.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/history/history_backend.cc b/chrome/browser/history/history_backend.cc index 9734d4f..4fdcef8 100644 --- a/chrome/browser/history/history_backend.cc +++ b/chrome/browser/history/history_backend.cc @@ -504,15 +504,15 @@ void HistoryBackend::InitImpl() { // History database. db_.reset(new HistoryDatabase()); switch (db_->Init(history_name, tmp_bookmarks_file)) { - case INIT_OK: + case sql::INIT_OK: break; - case INIT_FAILURE: + case sql::INIT_FAILURE: // A NULL db_ will cause all calls on this object to notice this error // and to not continue. delegate_->NotifyProfileError(IDS_COULDNT_OPEN_PROFILE_ERROR); db_.reset(); return; - case INIT_TOO_NEW: + case sql::INIT_TOO_NEW: delegate_->NotifyProfileError(IDS_PROFILE_TOO_NEW_ERROR); db_.reset(); return; @@ -557,7 +557,7 @@ void HistoryBackend::InitImpl() { // Thumbnail database. thumbnail_db_.reset(new ThumbnailDatabase()); if (thumbnail_db_->Init(thumbnail_name, - history_publisher_.get()) != INIT_OK) { + history_publisher_.get()) != sql::INIT_OK) { // Unlike the main database, we don't error out when the database is too // new because this error is much less severe. Generally, this shouldn't // happen since the thumbnail and main datbase versions should be in sync. |