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

Unified Diff: chrome/browser/history/history_backend.cc

Issue 342048: Show a warning when the history files can't be read correctly.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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/browser/history/history_backend.cc
===================================================================
--- chrome/browser/history/history_backend.cc (revision 30544)
+++ chrome/browser/history/history_backend.cc (working copy)
@@ -25,6 +25,8 @@
#include "chrome/common/sqlite_utils.h"
#include "chrome/common/url_constants.h"
#include "googleurl/src/gurl.h"
+#include "grit/chromium_strings.h"
+#include "grit/generated_resources.h"
#include "net/base/registry_controlled_domain.h"
using base::Time;
@@ -501,11 +503,11 @@
case INIT_FAILURE:
// A NULL db_ will cause all calls on this object to notice this error
// and to not continue.
- LOG(WARNING) << "Unable to initialize history DB.";
+ delegate_->NotifyProfileError(IDS_COULDNT_OPEN_PROFILE_ERROR);
db_.reset();
return;
case INIT_TOO_NEW:
- delegate_->NotifyTooNew();
+ delegate_->NotifyProfileError(IDS_PROFILE_TOO_NEW_ERROR);
db_.reset();
return;
default:

Powered by Google App Engine
This is Rietveld 408576698