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

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

Issue 967393002: [Extensions] Update chrome://extensions to use developerPrivate.allowFileAccess (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « no previous file | no next file » | 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 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 // extensions should want all urls. 377 // extensions should want all urls.
378 row.setupColumn('.all-urls-control input', 'allUrls', 'click', 378 row.setupColumn('.all-urls-control input', 'allUrls', 'click',
379 function(e) { 379 function(e) {
380 chrome.send('extensionSettingsAllowOnAllUrls', 380 chrome.send('extensionSettingsAllowOnAllUrls',
381 [extension.id, String(e.target.checked)]); 381 [extension.id, String(e.target.checked)]);
382 }); 382 });
383 383
384 // The 'allow file:// access' checkbox. 384 // The 'allow file:// access' checkbox.
385 row.setupColumn('.file-access-control input', 'localUrls', 'click', 385 row.setupColumn('.file-access-control input', 'localUrls', 'click',
386 function(e) { 386 function(e) {
387 chrome.send('extensionSettingsAllowFileAccess', 387 chrome.developerPrivate.allowFileAccess(extension.id, e.target.checked);
388 [extension.id, String(e.target.checked)]);
389 }); 388 });
390 389
391 // The 'Options' button or link, depending on its behaviour. 390 // The 'Options' button or link, depending on its behaviour.
392 // Set an href to get the correct mouse-over appearance (link, 391 // Set an href to get the correct mouse-over appearance (link,
393 // footer) - but the actual link opening is done through chrome.send 392 // footer) - but the actual link opening is done through chrome.send
394 // with a preventDefault(). 393 // with a preventDefault().
395 row.querySelector('.options-link').href = extension.optionsPageHref; 394 row.querySelector('.options-link').href = extension.optionsPageHref;
396 row.setupColumn('.options-link', 'options', 'click', function(e) { 395 row.setupColumn('.options-link', 'options', 'click', function(e) {
397 chrome.send('extensionSettingsOptions', [extension.id]); 396 chrome.send('extensionSettingsOptions', [extension.id]);
398 e.preventDefault(); 397 e.preventDefault();
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
904 var trash = document.querySelector('.trash.open'); 903 var trash = document.querySelector('.trash.open');
905 if (trash.classList.contains('mouse-clicked')) 904 if (trash.classList.contains('mouse-clicked'))
906 trash.blur(); 905 trash.blur();
907 trash.classList.remove('open'); 906 trash.classList.remove('open');
908 }; 907 };
909 908
910 return { 909 return {
911 ExtensionList: ExtensionList 910 ExtensionList: ExtensionList
912 }; 911 };
913 }); 912 });
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698