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

Unified Diff: chrome/browser/resources/snippets_internals.js

Issue 2889153003: [NTP::SectionOrder] Add ranker section to snippets internals. (Closed)
Patch Set: jkrcal@ nit. Created 3 years, 7 months 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/snippets_internals.js
diff --git a/chrome/browser/resources/snippets_internals.js b/chrome/browser/resources/snippets_internals.js
index 6e8bbe94c783090b99d1e4769fb21b160c5d36c9..9f36642dead114197af28da2ce060fdef3f8aed7 100644
--- a/chrome/browser/resources/snippets_internals.js
+++ b/chrome/browser/resources/snippets_internals.js
@@ -113,6 +113,10 @@ cr.define('chrome.SnippetsInternals', function() {
receiveProperty('avg-time-to-use', timeToUse);
}
+ function receiveRankerDebugData(itemsList) {
+ displayList(itemsList, 'ranker', 'no-togler');
+ }
+
function receiveLastRemoteSuggestionsBackgroundFetchTime(
lastRemoteSuggestionsBackgroundFetchTime) {
receiveProperty('last-background-fetch-time-label',
@@ -168,6 +172,7 @@ cr.define('chrome.SnippetsInternals', function() {
receiveContentSuggestions: receiveContentSuggestions,
receiveJson: receiveJson,
receiveClassification: receiveClassification,
+ receiveRankerDebugData: receiveRankerDebugData,
receiveLastRemoteSuggestionsBackgroundFetchTime:
receiveLastRemoteSuggestionsBackgroundFetchTime,
};
« no previous file with comments | « chrome/browser/resources/snippets_internals.html ('k') | chrome/browser/ui/webui/snippets_internals_message_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698