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

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

Issue 773363002: Hide Shared Modules behind "Developer Mode" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 | « no previous file | chrome/browser/resources/extensions/extensions.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <include src="extension_error.js"> 5 <include src="extension_error.js">
6 6
7 /** 7 /**
8 * The type of the extension data object. The definition is based on 8 * The type of the extension data object. The definition is based on
9 * chrome/browser/ui/webui/extensions/extension_basic_info.cc 9 * chrome/browser/ui/webui/extensions/extension_basic_info.cc
10 * and 10 * and
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 // Then the 'This isn't from the webstore, looks suspicious' message. 418 // Then the 'This isn't from the webstore, looks suspicious' message.
419 node.querySelector('.suspicious-install-message').hidden = false; 419 node.querySelector('.suspicious-install-message').hidden = false;
420 } 420 }
421 if (extension.corruptInstall) { 421 if (extension.corruptInstall) {
422 // Then the 'This is a corrupt extension' message. 422 // Then the 'This is a corrupt extension' message.
423 node.querySelector('.corrupt-install-message').hidden = false; 423 node.querySelector('.corrupt-install-message').hidden = false;
424 } 424 }
425 } 425 }
426 426
427 if (extension.dependentExtensions.length > 0) { 427 if (extension.dependentExtensions.length > 0) {
428 node.classList.add('developer-extras');
428 var dependentMessage = 429 var dependentMessage =
429 node.querySelector('.dependent-extensions-message'); 430 node.querySelector('.dependent-extensions-message');
430 dependentMessage.hidden = false; 431 dependentMessage.hidden = false;
431 var dependentList = dependentMessage.querySelector('ul'); 432 var dependentList = dependentMessage.querySelector('ul');
432 var dependentTemplate = $('template-collection').querySelector( 433 var dependentTemplate = $('template-collection').querySelector(
433 '.dependent-list-item'); 434 '.dependent-list-item');
434 extension.dependentExtensions.forEach(function(elem) { 435 extension.dependentExtensions.forEach(function(elem) {
435 var depNode = dependentTemplate.cloneNode(true); 436 var depNode = dependentTemplate.cloneNode(true);
436 depNode.querySelector('.dep-extension-title').textContent = elem.name; 437 depNode.querySelector('.dep-extension-title').textContent = elem.name;
437 depNode.querySelector('.dep-extension-id').textContent = elem.id; 438 depNode.querySelector('.dep-extension-id').textContent = elem.id;
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 $('overlay').addEventListener('cancelOverlay', function() { 555 $('overlay').addEventListener('cancelOverlay', function() {
555 this.optionsShown_ = false; 556 this.optionsShown_ = false;
556 }.bind(this)); 557 }.bind(this));
557 }, 558 },
558 }; 559 };
559 560
560 return { 561 return {
561 ExtensionsList: ExtensionsList 562 ExtensionsList: ExtensionsList
562 }; 563 };
563 }); 564 });
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/extensions/extensions.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698