Index: chrome/browser/history/history.cc |
=================================================================== |
--- chrome/browser/history/history.cc (revision 131579) |
+++ chrome/browser/history/history.cc (working copy) |
@@ -892,3 +892,16 @@ |
ScheduleAndForget(PRIORITY_NORMAL, |
&HistoryBackend::MigrateThumbnailsDatabase); |
} |
+ |
+void HistoryService::AddVisitDatabaseObserver( |
+ history::VisitDatabaseObserver* observer) { |
+ LoadBackendIfNecessary(); |
+ history_backend_->AddVisitDatabaseObserver(observer); |
+} |
+ |
+void HistoryService::RemoveVisitDatabaseObserver( |
+ history::VisitDatabaseObserver* observer) { |
+ // If the history backend is no longer present, nothing to do here. |
+ if (history_backend_) |
cbentzel
2012/04/12 21:16:36
Why don't you need to do this check in the Add cas
tburkard
2012/04/12 21:32:37
In the add case, I am loading the database backend
|
+ history_backend_->RemoveVisitDatabaseObserver(observer); |
+} |