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

Side by Side Diff: chrome/browser/resources/options/extension_list.js

Issue 9234076: Implementation of the Extension Activity Log UI behind a flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Dan's comments. Created 8 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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('options', function() { 5 cr.define('options', function() {
6 'use strict'; 6 'use strict';
7 7
8 /** 8 /**
9 * A lookup helper function to find the first node that has an id (starting 9 * A lookup helper function to find the first node that has an id (starting
10 * at |node| and going up the parent chain). 10 * at |node| and going up the parent chain).
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 // Options link (optional). 215 // Options link (optional).
216 if (extension.options_url) { 216 if (extension.options_url) {
217 var link = this.ownerDocument.createElement('a'); 217 var link = this.ownerDocument.createElement('a');
218 link.classList.add('extension-links-trailing'); 218 link.classList.add('extension-links-trailing');
219 link.textContent = localStrings.getString('extensionSettingsOptions'); 219 link.textContent = localStrings.getString('extensionSettingsOptions');
220 link.href = '#'; 220 link.href = '#';
221 link.addEventListener('click', this.handleOptions_.bind(this)); 221 link.addEventListener('click', this.handleOptions_.bind(this));
222 vbox.appendChild(link); 222 vbox.appendChild(link);
223 } 223 }
224 224
225 if (extension.allow_activity) {
226 var link = this.ownerDocument.createElement('a');
227 link.classList.add('extension-links-trailing');
228 link.textContent =
229 localStrings.getString('extensionSettingsActivity');
230 link.href = 'chrome://extension-activity?extensionId=' + extension.id;
231 vbox.appendChild(link);
232 }
233
225 // Then the optional Visit Website link. 234 // Then the optional Visit Website link.
226 if (extension.homepageUrl) { 235 if (extension.homepageUrl) {
227 var link = this.ownerDocument.createElement('a'); 236 var link = this.ownerDocument.createElement('a');
228 link.classList.add('extension-links-trailing'); 237 link.classList.add('extension-links-trailing');
229 link.textContent = 238 link.textContent =
230 localStrings.getString('extensionSettingsVisitWebsite'); 239 localStrings.getString('extensionSettingsVisitWebsite');
231 link.href = extension.homepageUrl; 240 link.href = extension.homepageUrl;
232 vbox.appendChild(link); 241 vbox.appendChild(link);
233 } 242 }
234 243
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
755 ]); 764 ]);
756 } 765 }
757 } 766 }
758 }, 767 },
759 }; 768 };
760 769
761 return { 770 return {
762 ExtensionsList: ExtensionsList 771 ExtensionsList: ExtensionsList
763 }; 772 };
764 }); 773 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698