| Index: chrome/renderer/searchbox/searchbox.cc
|
| diff --git a/chrome/renderer/searchbox/searchbox.cc b/chrome/renderer/searchbox/searchbox.cc
|
| index 847d4cda2c5f649d1426c9b482a278cfc5c75dc9..1856261155381652af78dd8bbd9c4f8c5576f6bc 100644
|
| --- a/chrome/renderer/searchbox/searchbox.cc
|
| +++ b/chrome/renderer/searchbox/searchbox.cc
|
| @@ -97,13 +97,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() {
|
| @@ -406,3 +408,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();
|
| +}
|
|
|