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

Side by Side Diff: components/ntp_tiles/webui/resources/ntp_tiles_internals.js

Issue 2721603002: chrome://ntp-tiles-internals: hide when incognito (Closed)
Patch Set: Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « components/ntp_tiles/webui/ntp_tiles_internals_message_handler.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 cr.define('chrome.ntp_tiles_internals', function() { 5 cr.define('chrome.ntp_tiles_internals', function() {
6 'use strict'; 6 'use strict';
7 7
8 var initialize = function() { 8 var initialize = function() {
9 receiveSites({});
10
11 $('submit-update').addEventListener('click', function(event) { 9 $('submit-update').addEventListener('click', function(event) {
12 event.preventDefault(); 10 event.preventDefault();
13 chrome.send('update', [{ 11 chrome.send('update', [{
14 "popular": { 12 "popular": {
15 "overrideURL": $('override-url').value, 13 "overrideURL": $('override-url').value,
16 "overrideCountry": $('override-country').value, 14 "overrideCountry": $('override-country').value,
17 "overrideVersion": $('override-version').value, 15 "overrideVersion": $('override-version').value,
18 }, 16 },
19 }]); 17 }]);
20 }); 18 });
(...skipping 27 matching lines...) Expand all
48 return { 46 return {
49 initialize: initialize, 47 initialize: initialize,
50 receiveSourceInfo: receiveSourceInfo, 48 receiveSourceInfo: receiveSourceInfo,
51 receiveSites: receiveSites, 49 receiveSites: receiveSites,
52 }; 50 };
53 }); 51 });
54 52
55 document.addEventListener('DOMContentLoaded', 53 document.addEventListener('DOMContentLoaded',
56 chrome.ntp_tiles_internals.initialize); 54 chrome.ntp_tiles_internals.initialize);
57 55
OLDNEW
« no previous file with comments | « components/ntp_tiles/webui/ntp_tiles_internals_message_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698