| Index: chrome/browser/safe_browsing/safe_browsing_navigation_observer_manager.cc
|
| diff --git a/chrome/browser/safe_browsing/safe_browsing_navigation_observer_manager.cc b/chrome/browser/safe_browsing/safe_browsing_navigation_observer_manager.cc
|
| index b6608faf9cc3eaa350831b9f5e05481282094e98..548531a3a09aca5f2aa4b4a71d0cbb44a0d7862a 100644
|
| --- a/chrome/browser/safe_browsing/safe_browsing_navigation_observer_manager.cc
|
| +++ b/chrome/browser/safe_browsing/safe_browsing_navigation_observer_manager.cc
|
| @@ -175,6 +175,11 @@ NavigationEvent* NavigationEventList::FindRetargetingNavigationEvent(
|
|
|
| void NavigationEventList::RecordNavigationEvent(
|
| std::unique_ptr<NavigationEvent> nav_event) {
|
| + // Skip page refresh.
|
| + if (nav_event->source_url == nav_event->GetDestinationUrl() &&
|
| + nav_event->source_tab_id == nav_event->target_tab_id)
|
| + return;
|
| +
|
| if (navigation_events_.size() == size_limit_)
|
| navigation_events_.pop_front();
|
| navigation_events_.push_back(std::move(nav_event));
|
|
|