| Index: chrome/browser/ui/search/instant_controller.cc
|
| diff --git a/chrome/browser/ui/search/instant_controller.cc b/chrome/browser/ui/search/instant_controller.cc
|
| index 45987983a81308ad6dbf486c4c29444002d1a8f2..18ca74516879b527a6e8efeb77542faecfa16796 100644
|
| --- a/chrome/browser/ui/search/instant_controller.cc
|
| +++ b/chrome/browser/ui/search/instant_controller.cc
|
| @@ -1169,23 +1169,14 @@ void InstantController::UpdateMostVisitedItems() {
|
| std::vector<InstantMostVisitedItem> items;
|
| instant_service->GetCurrentMostVisitedItems(&items);
|
|
|
| - if (overlay_ && GetOverlayContents() &&
|
| - SearchTabHelper::FromWebContents(overlay_->contents())->
|
| - UpdateLastKnownMostVisitedItems(items)) {
|
| + if (overlay_)
|
| overlay_->sender()->SendMostVisitedItems(items);
|
| - }
|
|
|
| - if (ntp_ && ntp_->contents() &&
|
| - SearchTabHelper::FromWebContents(ntp_->contents())->
|
| - UpdateLastKnownMostVisitedItems(items)) {
|
| + if (ntp_)
|
| ntp_->sender()->SendMostVisitedItems(items);
|
| - }
|
|
|
| - if (instant_tab_ && instant_tab_->contents() &&
|
| - SearchTabHelper::FromWebContents(instant_tab_->contents())->
|
| - UpdateLastKnownMostVisitedItems(items)) {
|
| + if (instant_tab_)
|
| instant_tab_->sender()->SendMostVisitedItems(items);
|
| - }
|
|
|
| content::NotificationService::current()->Notify(
|
| chrome::NOTIFICATION_INSTANT_SENT_MOST_VISITED_ITEMS,
|
|
|