Index: chrome/browser/history/history_backend.cc |
diff --git a/chrome/browser/history/history_backend.cc b/chrome/browser/history/history_backend.cc |
index 9fb30e40a8331ca11e7c71c05f71bf94ffc72e3c..da2a4db4718dd25a17b1af5070604bfeb6049fb6 100644 |
--- a/chrome/browser/history/history_backend.cc |
+++ b/chrome/browser/history/history_backend.cc |
@@ -2532,19 +2532,22 @@ void HistoryBackend::NotifyURLsDeleted(bool all_history, |
bool expired, |
const URLRows& rows, |
const std::set<GURL>& favicon_urls) { |
- scoped_ptr<URLsDeletedDetails> details(new URLsDeletedDetails); |
- details->all_history = all_history; |
- details->expired = expired; |
- details->rows = rows; |
- details->favicon_urls = favicon_urls; |
- |
+ URLRows copied_rows(rows); |
if (typed_url_syncable_service_.get()) { |
- typed_url_syncable_service_->OnUrlsDeleted( |
- all_history, expired, &details->rows); |
+ typed_url_syncable_service_->OnUrlsDeleted(all_history, expired, |
+ &copied_rows); |
} |
- BroadcastNotifications(chrome::NOTIFICATION_HISTORY_URLS_DELETED, |
- details.Pass()); |
+ FOR_EACH_OBSERVER( |
+ HistoryBackendObserver, observers_, |
+ OnURLsDeleted(this, all_history, expired, copied_rows, favicon_urls)); |
+ |
+ // TODO(sdefresne): turn HistoryBackend::Delegate from HistoryService into |
+ // an HistoryBackendObserver and register it so that we can remove this |
+ // method. |
+ if (delegate_) |
+ delegate_->NotifyURLsDeleted(all_history, expired, copied_rows, |
+ favicon_urls); |
} |
// Deleting -------------------------------------------------------------------- |