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

Unified Diff: components/ntp_tiles/webui/resources/popular_sites_internals.js

Issue 2841643005: [Popular Sites] Add Variations parameter to override URL path (Closed)
Patch Set: Created 3 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: components/ntp_tiles/webui/resources/popular_sites_internals.js
diff --git a/components/ntp_tiles/webui/resources/popular_sites_internals.js b/components/ntp_tiles/webui/resources/popular_sites_internals.js
index 10a4010716af0aa28f807816d0ca32381c98237f..389a10d613faca46efd02b6c0056e10fe6530ded 100644
--- a/components/ntp_tiles/webui/resources/popular_sites_internals.js
+++ b/components/ntp_tiles/webui/resources/popular_sites_internals.js
@@ -9,6 +9,7 @@ cr.define('chrome.popular_sites_internals', function() {
function submitUpdate(event) {
$('download-result').textContent = '';
chrome.send('update', [$('override-url').value,
+ $('override-path').value,
$('override-country').value,
$('override-version').value]);
event.preventDefault();
@@ -27,8 +28,9 @@ cr.define('chrome.popular_sites_internals', function() {
chrome.send('registerForEvents');
}
- function receiveOverrides(url, country, version) {
+ function receiveOverrides(url, path, country, version) {
$('override-url').value = url;
+ $('override-path').value = path;
$('override-country').value = country;
$('override-version').value = version;
}
@@ -59,4 +61,3 @@ cr.define('chrome.popular_sites_internals', function() {
document.addEventListener('DOMContentLoaded',
chrome.popular_sites_internals.initialize);
-

Powered by Google App Engine
This is Rietveld 408576698