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

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

Issue 7976023: Remove the old chrome://extensions page, since the URL now redirects to the new Settings page.BUG... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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 /** 6 /**
7 * Creates a new list of extensions. 7 * Creates a new list of extensions.
8 * @param {Object=} opt_propertyBag Optional properties. 8 * @param {Object=} opt_propertyBag Optional properties.
9 * @constructor 9 * @constructor
10 * @extends {cr.ui.div} 10 * @extends {cr.ui.div}
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 for (var i = 0; i < extension.views.length; ++i) { 381 for (var i = 0; i < extension.views.length; ++i) {
382 // Then active views: 382 // Then active views:
383 content = this.ownerDocument.createElement('div'); 383 content = this.ownerDocument.createElement('div');
384 var link = this.ownerDocument.createElement('a'); 384 var link = this.ownerDocument.createElement('a');
385 link.classList.add('extension-links-view'); 385 link.classList.add('extension-links-view');
386 link.textContent = extension.views[i].path; 386 link.textContent = extension.views[i].path;
387 link.id = extension.id; 387 link.id = extension.id;
388 link.href = '#'; 388 link.href = '#';
389 link.addEventListener('click', this.sendInspectMessage_.bind(this)); 389 link.addEventListener('click', this.sendInspectMessage_.bind(this));
390 content.appendChild(link); 390 content.appendChild(link);
391
392 if (extension.views[i].incognito) {
393 var incognito = this.ownerDocument.createElement('span');
394 incognito.classList.add('extension-links-view');
395 incognito.textContent =
396 localStrings.getString('viewIncognito');
397 content.appendChild(incognito);
398 }
399
391 td.appendChild(content); 400 td.appendChild(content);
392 tr.appendChild(td); 401 tr.appendChild(td);
393 402
394 itemsShown++; 403 itemsShown++;
395 } 404 }
396 } 405 }
397 } 406 }
398 407
399 var content = this.ownerDocument.createElement('div'); 408 var content = this.ownerDocument.createElement('div');
400 details_contents.appendChild(content); 409 details_contents.appendChild(content);
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
688 ]); 697 ]);
689 } 698 }
690 } 699 }
691 }, 700 },
692 }; 701 };
693 702
694 return { 703 return {
695 ExtensionsList: ExtensionsList 704 ExtensionsList: ExtensionsList
696 }; 705 };
697 }); 706 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/extensions_ui.js ('k') | chrome/browser/ui/webui/chrome_web_ui_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698