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

Unified Diff: chrome/browser/resources/extensions/extension_activity.js

Issue 15812004: Remove the Activity Log UI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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/extensions/extension_activity.js
diff --git a/chrome/browser/resources/extensions/extension_activity.js b/chrome/browser/resources/extensions/extension_activity.js
deleted file mode 100644
index b0f8866b99e5bd0ae8c8a37df579755be90e8095..0000000000000000000000000000000000000000
--- a/chrome/browser/resources/extensions/extension_activity.js
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright (c) 2012 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('extension_activity', function() {
- 'use strict';
-
- function initialize() {
- var params = parseQueryParams(location);
- if (params.extensionId)
- chrome.send('requestExtensionData', [params.extensionId]);
- }
-
- function handleExtensionData(result) {
- var extension = result.extension;
-
- var item = document.querySelector('.extension-list-item');
- item.style.backgroundImage = 'url(' + extension.icon + ')';
- item.querySelector('.extension-title').textContent = extension.name;
- item.querySelector('.extension-version').textContent = extension.version;
- item.querySelector('.extension-description').textContent =
- extension.description;
- }
-
- function handleExtensionActivity(result) {
- var template = $('template-collection');
-
- // Clone the activity item template.
- var item =
- template.querySelector('.extension-activity-item').cloneNode(true);
- item.querySelector('.extension-activity-time').textContent =
- new Date().toLocaleTimeString();
- item.querySelector('.extension-activity-label').textContent =
- template.querySelector('.extension-activity-label-' + result.activity)
- .textContent;
-
- // Clone the message node and then delete the empty template.
- var msgNode = item.querySelector('.extension-activity-message');
- for (var i = 0; i < result.messages.length; ++i) {
- var newNode = msgNode.cloneNode(true);
- newNode.textContent = result.messages[i];
- item.appendChild(newNode);
- }
- item.removeChild(msgNode);
-
- $('extension-activity-list').appendChild(item);
- }
-
- return {
- initialize: initialize,
- handleExtensionData: handleExtensionData,
- handleExtensionActivity: handleExtensionActivity
- };
-});
-
-window.addEventListener('load', extension_activity.initialize);
« no previous file with comments | « chrome/browser/resources/extensions/extension_activity.html ('k') | chrome/browser/resources/extensions/extension_list.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698