Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2408)

Unified Diff: chrome/browser/resources/local_ntp/most_visited_single.js

Issue 2531443003: Searchbox API cleanup: Move getMostVisitedItemData to newTabPage (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/resources/local_ntp/most_visited_util.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/local_ntp/most_visited_single.js
diff --git a/chrome/browser/resources/local_ntp/most_visited_single.js b/chrome/browser/resources/local_ntp/most_visited_single.js
index f08b0cec42c63fb7351c48869216e1c8d4379b95..45db544b506c8f7b4c3c1909eab0df4d564f2043 100644
--- a/chrome/browser/resources/local_ntp/most_visited_single.js
+++ b/chrome/browser/resources/local_ntp/most_visited_single.js
@@ -296,7 +296,8 @@ var showTiles = function() {
var addTile = function(args) {
if (isFinite(args.rid)) {
// If a valid number passed in |args.rid|: a local chrome suggestion.
- var data = chrome.embeddedSearch.searchBox.getMostVisitedItemData(args.rid);
+ var data =
+ chrome.embeddedSearch.newTabPage.getMostVisitedItemData(args.rid);
if (!data)
return;
« no previous file with comments | « no previous file | chrome/browser/resources/local_ntp/most_visited_util.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698