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

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: Update ntp-tiles-internals. 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
« no previous file with comments | « components/ntp_tiles/webui/resources/popular_sites_internals.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..3bfcf8b4c579abcf139c9b95891466434b206491 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-directory').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, directory, country, version) {
$('override-url').value = url;
+ $('override-directory').value = directory;
$('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);
-
« no previous file with comments | « components/ntp_tiles/webui/resources/popular_sites_internals.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698