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

Unified Diff: chrome/browser/resources/local_ntp/most_visited_util.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
Index: chrome/browser/resources/local_ntp/most_visited_util.js
diff --git a/chrome/browser/resources/local_ntp/most_visited_util.js b/chrome/browser/resources/local_ntp/most_visited_util.js
index ef0099cab5bd311a4a9964c74fb9ccf6610c008a..6898b2843771985ec17466054e498b1b48ef9689 100644
--- a/chrome/browser/resources/local_ntp/most_visited_util.js
+++ b/chrome/browser/resources/local_ntp/most_visited_util.js
@@ -212,7 +212,7 @@ function fillMostVisited(location, fill) {
domain: params.dom || ''
};
} else {
- var apiHandle = chrome.embeddedSearch.searchBox;
+ var apiHandle = chrome.embeddedSearch.newTabPage;
data = apiHandle.getMostVisitedItemData(params.rid);
if (!data)
return;
« no previous file with comments | « chrome/browser/resources/local_ntp/most_visited_single.js ('k') | chrome/renderer/resources/extensions/searchbox_api.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698