[NTP] Add isCustomLink property to EmbeddedSearchAPI
The property is used to determine if we need to show the "Restore default shortcuts" option. Previously this was calculated by checking the tile source of the most visited items, but this did not account for the case where there are no available items. As such, if there were no custom links, the restore default option was disabled. Bug: 879082 Change-Id: Ia15f4fc863642b520234c061ee5ecf6f7a54c50e Reviewed-on: https://chromium-review.googlesource.com/1197465 Commit-Queue: Kristi Park <kristipark@chromium.org> Reviewed-by:Mustafa Emre Acer <meacer@chromium.org> Reviewed-by:
Mathieu Perreault <mathp@chromium.org> Cr-Commit-Position: refs/heads/master@{#587835}
Showing
Please register or sign in to comment