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

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

Issue 2457033003: Add chrome://popular-sites-internals/ to iOS. (Closed)
Patch Set: Break out ...Client. Created 4 years, 1 month 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 | « chrome/browser/resources/popular_sites_internals.html ('k') | chrome/browser/ui/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
deleted file mode 100644
index 10a4010716af0aa28f807816d0ca32381c98237f..0000000000000000000000000000000000000000
--- a/chrome/browser/resources/popular_sites_internals.js
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-cr.define('chrome.popular_sites_internals', function() {
- 'use strict';
-
- function initialize() {
- function submitUpdate(event) {
- $('download-result').textContent = '';
- chrome.send('update', [$('override-url').value,
- $('override-country').value,
- $('override-version').value]);
- event.preventDefault();
- }
-
- $('submit-update').addEventListener('click', submitUpdate);
-
- function viewJson(event) {
- $('json-value').textContent = '';
- chrome.send('viewJson');
- event.preventDefault();
- }
-
- $('view-json').addEventListener('click', viewJson);
-
- chrome.send('registerForEvents');
- }
-
- function receiveOverrides(url, country, version) {
- $('override-url').value = url;
- $('override-country').value = country;
- $('override-version').value = version;
- }
-
- function receiveDownloadResult(result) {
- $('download-result').textContent = result;
- }
-
- function receiveSites(sites) {
- jstProcess(new JsEvalContext(sites), $('info'));
- // Also clear the json string, since it's likely stale now.
- $('json-value').textContent = '';
- }
-
- function receiveJson(json) {
- $('json-value').textContent = json;
- }
-
- // Return an object with all of the exports.
- return {
- initialize: initialize,
- receiveOverrides: receiveOverrides,
- receiveDownloadResult: receiveDownloadResult,
- receiveSites: receiveSites,
- receiveJson: receiveJson,
- };
-});
-
-document.addEventListener('DOMContentLoaded',
- chrome.popular_sites_internals.initialize);
-
« no previous file with comments | « chrome/browser/resources/popular_sites_internals.html ('k') | chrome/browser/ui/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698