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

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

Issue 1085113002: [Extensions UI] Use developerPrivate API for repair, options, show path (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 8 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_list.js
diff --git a/chrome/browser/resources/extensions/extension_list.js b/chrome/browser/resources/extensions/extension_list.js
index f6967bd6297656b638d75cb63c44064ba79773fc..c4a51b8c43f18f8cb458e1e787cd2ec37eecae7d 100644
--- a/chrome/browser/resources/extensions/extension_list.js
+++ b/chrome/browser/resources/extensions/extension_list.js
@@ -450,12 +450,12 @@ cr.define('extensions', function() {
// The 'Options' button or link, depending on its behaviour.
// Set an href to get the correct mouse-over appearance (link,
- // footer) - but the actual link opening is done through chrome.send
- // with a preventDefault().
+ // footer) - but the actual link opening is done through developerPrivate
+ // API with a preventDefault().
row.querySelector('.options-link').href =
extension.optionsPage ? extension.optionsPage.url : '';
row.setupColumn('.options-link', 'options', 'click', function(e) {
- chrome.send('extensionSettingsOptions', [extension.id]);
+ chrome.developerPrivate.showOptions(extension.id);
e.preventDefault();
});
@@ -487,7 +487,7 @@ cr.define('extensions', function() {
// The 'Launch' link.
row.setupColumn('.launch-link', 'launch', 'click', function(e) {
- chrome.send('extensionSettingsLaunch', [extension.id]);
+ chrome.management.launchApp(extension.id);
});
// The 'Reload' terminated link.
@@ -499,7 +499,7 @@ cr.define('extensions', function() {
// The 'Repair' corrupted link.
row.setupColumn('.corrupted-repair-button', 'repair', 'click',
function(e) {
- chrome.send('extensionSettingsRepair', [extension.id]);
+ chrome.developerPrivate.repairExtension(extension.id);
});
// The 'Enabled' checkbox.
@@ -554,7 +554,7 @@ cr.define('extensions', function() {
// The path, if provided by unpacked extension.
row.setupColumn('.load-path a:first-of-type', 'dev-loadPath', 'click',
function(e) {
- chrome.send('extensionSettingsShowPath', [String(extension.id)]);
+ chrome.developerPrivate.showPath(extension.id);
e.preventDefault();
});

Powered by Google App Engine
This is Rietveld 408576698