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

Unified Diff: components/history/core/browser/history_backend.cc

Issue 1081923002: Remove PrerenderLocalPredictor, part 5. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prerender-local-predictor-4
Patch Set: Created 5 years, 8 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: 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
« no previous file with comments | « components/history/core/browser/history_backend.h ('k') | components/history/core/browser/history_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698