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

Unified Diff: chrome/browser/history/history.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.cc
===================================================================
--- chrome/browser/history/history.cc (revision 30544)
+++ chrome/browser/history/history.cc (working copy)
@@ -94,10 +94,10 @@
message_loop_(MessageLoop::current()) {
}
- virtual void NotifyTooNew() {
+ virtual void NotifyProfileError(int message_id) {
// Send the backend to the history service on the main thread.
message_loop_->PostTask(FROM_HERE, NewRunnableMethod(history_service_.get(),
- &HistoryService::NotifyTooNew));
+ &HistoryService::NotifyProfileError, message_id));
}
virtual void SetInMemoryBackend(
@@ -666,10 +666,10 @@
in_memory_backend_->AttachToHistoryService(profile_);
}
-void HistoryService::NotifyTooNew() {
+void HistoryService::NotifyProfileError(int message_id) {
Source<HistoryService> source(this);
- NotificationService::current()->Notify(NotificationType::HISTORY_TOO_NEW,
- source, NotificationService::NoDetails());
+ NotificationService::current()->Notify(NotificationType::PROFILE_ERROR,
+ source, Details<int>(&message_id));
}
void HistoryService::DeleteURL(const GURL& url) {

Powered by Google App Engine
This is Rietveld 408576698