| Index: components/history/core/browser/history_backend.cc
|
| diff --git a/components/history/core/browser/history_backend.cc b/components/history/core/browser/history_backend.cc
|
| index 4abcca45fe04d78d6756c9a34fc96a1f4bcbc865..fed049007e38e4628e42c1812125272d3c7769a0 100644
|
| --- a/components/history/core/browser/history_backend.cc
|
| +++ b/components/history/core/browser/history_backend.cc
|
| @@ -770,7 +770,6 @@ std::pair<URLID, VisitID> HistoryBackend::AddPageVisit(
|
| // Add the visit with the time to the database.
|
| VisitRow visit_info(url_id, time, referring_visit, transition, 0);
|
| VisitID visit_id = db_->AddVisit(&visit_info, visit_source);
|
| - NotifyVisitObservers(visit_info);
|
|
|
| if (visit_info.visit_time < first_recorded_time_)
|
| first_recorded_time_ = visit_info.visit_time;
|
| @@ -830,7 +829,6 @@ void HistoryBackend::AddPagesWithDetails(const URLRows& urls,
|
| NOTREACHED() << "Adding visit failed.";
|
| return;
|
| }
|
| - NotifyVisitObservers(visit_info);
|
|
|
| if (visit_info.visit_time < first_recorded_time_)
|
| first_recorded_time_ = visit_info.visit_time;
|
| @@ -2643,15 +2641,4 @@ HistoryClient* HistoryBackend::GetHistoryClient() {
|
| return history_client_;
|
| }
|
|
|
| -void HistoryBackend::NotifyVisitObservers(const VisitRow& visit) {
|
| - BriefVisitInfo info;
|
| - info.url_id = visit.url_id;
|
| - info.time = visit.visit_time;
|
| - info.transition = visit.transition;
|
| - // If we don't have a delegate yet during setup or shutdown, we will drop
|
| - // these notifications.
|
| - if (delegate_)
|
| - delegate_->NotifyAddVisit(info);
|
| -}
|
| -
|
| } // namespace history
|
|
|