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

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

Issue 1851803002: [NTP Popular Sites] Store country/version in prefs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review Created 4 years, 8 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/popular_sites_internals.js
diff --git a/chrome/browser/resources/popular_sites_internals.js b/chrome/browser/resources/popular_sites_internals.js
index ce1294d6bb968aa86e177c9c344398622c5bcc54..ec42cab712dd14eb51f051a531156ddb40ccf245 100644
--- a/chrome/browser/resources/popular_sites_internals.js
+++ b/chrome/browser/resources/popular_sites_internals.js
@@ -32,7 +32,9 @@ cr.define('chrome.popular_sites_internals', function() {
}
function receiveSites(sites) {
- jstProcess(new JsEvalContext(sites), $('sites'));
+ var context = new JsEvalContext(sites);
+ jstProcess(context, $('info'));
Bernhard Bauer 2016/04/07 12:24:28 You could just process the parent of these nodes.
Marc Treib 2016/04/07 13:38:39 Done.
+ jstProcess(context, $('sites'));
// Also clear the json string, since it's likely stale now.
$('json-value').textContent = '';
}

Powered by Google App Engine
This is Rietveld 408576698