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

Unified Diff: chrome/browser/resources/extensions_ui.html

Issue 165414: Disable an extension when it is upgraded to a version that requires more (Closed)
Patch Set: more comments Created 11 years, 4 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
« no previous file with comments | « chrome/browser/extensions/extensions_ui.cc ('k') | chrome/chrome.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/extensions_ui.html
diff --git a/chrome/browser/resources/extensions_ui.html b/chrome/browser/resources/extensions_ui.html
index 8cd383cb1f6044b60dca00cfb1276fdaf316df46..566a9891aa188a3defce48ab2a20c1766a8c451d 100644
--- a/chrome/browser/resources/extensions_ui.html
+++ b/chrome/browser/resources/extensions_ui.html
@@ -15,6 +15,7 @@ var extensionDataFormat = {
"name": "Extension Name",
"description": "Extension long format description",
"version": "1.0.231",
+ "enabled": "true",
"content_scripts": [
{
"js": ["script1_file1.js", "script1_file2.js"],
@@ -49,6 +50,7 @@ var extensionDataFormat = {
"name": "Extension Name",
"description": "Extension long format description",
"version": "1.0.231",
+ "enabled": "true",
"content_scripts": [
{
"js": ["script1_file1.js", "script1_file2.js"],
@@ -129,6 +131,15 @@ function handleReloadExtension(node) {
}
/**
+ * Handles a 'reenable' button getting clicked.
+ */
+function handleEnableExtension(node) {
+ // Tell the C++ ExtensionDOMHandler to reload the extension.
+ chrome.send('enable', [node.extensionId]);
+ requestExtensionsData();
+}
+
+/**
* Handles an 'uninstall' button getting clicked.
*/
function handleUninstallExtension(node) {
@@ -247,10 +258,19 @@ th.desc {
<div jsdisplay="extensions.length > 0">
<div class="extension" jsselect="extensions">
- <div class="extension-name" jscontent="name">Extension Name</div>
+ <div class="extension-name">
+ <span jscontent="name">Extension Name</span>
+ <span jsdisplay="!enabled">(Disabled)</span>
+ </div>
<div class="extension-actions">
<button
jsvalues=".extensionId:id"
+ jsdisplay="!enabled"
+ onclick="handleEnableExtension(this)"
+ >Enable</button>
+ <button
+ jsvalues=".extensionId:id"
+ jsdisplay="enabled"
onclick="handleReloadExtension(this)"
>Reload</button>
<button
« no previous file with comments | « chrome/browser/extensions/extensions_ui.cc ('k') | chrome/chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698