| Index: chrome/browser/history/expire_history_backend.cc
|
| diff --git a/chrome/browser/history/expire_history_backend.cc b/chrome/browser/history/expire_history_backend.cc
|
| index a7c952890eca2e6ca5aaea87d35fa63229c561fd..1bc2c89cc0241acd0590a40620f31f399b8716bd 100644
|
| --- a/chrome/browser/history/expire_history_backend.cc
|
| +++ b/chrome/browser/history/expire_history_backend.cc
|
| @@ -127,7 +127,7 @@ ExpireHistoryBackend::DeleteEffects::~DeleteEffects() {
|
| // ExpireHistoryBackend -------------------------------------------------------
|
|
|
| ExpireHistoryBackend::ExpireHistoryBackend(
|
| - BroadcastNotificationDelegate* delegate,
|
| + ExpireHistoryBackendDelegate* delegate,
|
| HistoryClient* history_client)
|
| : delegate_(delegate),
|
| main_db_(NULL),
|
| @@ -317,22 +317,13 @@ void ExpireHistoryBackend::DeleteFaviconsIfPossible(DeleteEffects* effects) {
|
| void ExpireHistoryBackend::BroadcastNotifications(DeleteEffects* effects,
|
| DeletionType type) {
|
| if (!effects->modified_urls.empty()) {
|
| - scoped_ptr<URLsModifiedDetails> details(new URLsModifiedDetails);
|
| - details->changed_urls = effects->modified_urls;
|
| - delegate_->NotifySyncURLsModified(&details->changed_urls);
|
| - delegate_->BroadcastNotifications(
|
| - chrome::NOTIFICATION_HISTORY_URLS_MODIFIED, details.Pass());
|
| + delegate_->NotifyURLsModified(effects->modified_urls);
|
| }
|
| if (!effects->deleted_urls.empty()) {
|
| - scoped_ptr<URLsDeletedDetails> details(new URLsDeletedDetails);
|
| - details->all_history = false;
|
| - details->expired = (type == DELETION_EXPIRED);
|
| - details->rows = effects->deleted_urls;
|
| - details->favicon_urls = effects->deleted_favicons;
|
| - delegate_->NotifySyncURLsDeleted(details->all_history, details->expired,
|
| - &details->rows);
|
| - delegate_->BroadcastNotifications(chrome::NOTIFICATION_HISTORY_URLS_DELETED,
|
| - details.Pass());
|
| + delegate_->NotifyURLsDeleted(false,
|
| + type == DELETION_EXPIRED,
|
| + effects->deleted_urls,
|
| + effects->deleted_favicons);
|
| }
|
| }
|
|
|
|
|