| Index: chrome/renderer/searchbox/searchbox.cc
|
| diff --git a/chrome/renderer/searchbox/searchbox.cc b/chrome/renderer/searchbox/searchbox.cc
|
| index ef1f6abcf9af0d6964c085642a819af8856afe4d..4aa93c34843229e4c3e01c57c83285162c96ddc3 100644
|
| --- a/chrome/renderer/searchbox/searchbox.cc
|
| +++ b/chrome/renderer/searchbox/searchbox.cc
|
| @@ -98,13 +98,15 @@ void SearchBox::NavigateToURL(const GURL& url,
|
| void SearchBox::DeleteMostVisitedItem(
|
| InstantRestrictedID most_visited_item_id) {
|
| render_view()->Send(new ChromeViewHostMsg_SearchBoxDeleteMostVisitedItem(
|
| - render_view()->GetRoutingID(), most_visited_item_id));
|
| + render_view()->GetRoutingID(),
|
| + GetURLForMostVisitedItem(most_visited_item_id)));
|
| }
|
|
|
| void SearchBox::UndoMostVisitedDeletion(
|
| InstantRestrictedID most_visited_item_id) {
|
| render_view()->Send(new ChromeViewHostMsg_SearchBoxUndoMostVisitedDeletion(
|
| - render_view()->GetRoutingID(), most_visited_item_id));
|
| + render_view()->GetRoutingID(),
|
| + GetURLForMostVisitedItem(most_visited_item_id)));
|
| }
|
|
|
| void SearchBox::UndoAllMostVisitedDeletions() {
|
| @@ -423,3 +425,8 @@ bool SearchBox::GetMostVisitedItemWithID(
|
| return most_visited_items_cache_.GetItemWithRestrictedID(most_visited_item_id,
|
| item);
|
| }
|
| +
|
| +GURL SearchBox::GetURLForMostVisitedItem(InstantRestrictedID item_id) const {
|
| + InstantMostVisitedItem item;
|
| + return GetMostVisitedItemWithID(item_id, &item) ? item.url : GURL();
|
| +}
|
|
|