summaryrefslogtreecommitdiffstats
path: root/chrome/browser/dom_ui
diff options
context:
space:
mode:
authorfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-10 23:17:41 +0000
committerfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-10 23:17:41 +0000
commit61b41161d9aaeb5b4e9568270097981edcf47a72 (patch)
treedbfd00c74eb0ee14e701190d8c5eabffd7f6a678 /chrome/browser/dom_ui
parentb93301b9c8fef8c64ba33a5f47554dad97a6b3e3 (diff)
downloadchromium_src-61b41161d9aaeb5b4e9568270097981edcf47a72.zip
chromium_src-61b41161d9aaeb5b4e9568270097981edcf47a72.tar.gz
chromium_src-61b41161d9aaeb5b4e9568270097981edcf47a72.tar.bz2
Disabled extensions should be uninstallable.
The code to display the dialog looks up an Extension by id but doesn't return disabled ones. So I added that option to the function. I also added a check so that we don't show the Options button enabled when the extension is disabled, since you need the extension to be enabled for the Options page to work. BUG=26910 TEST=Disable an extension that has an Option page, make sure Options is not enabled after disabling, then uninstall it. It should uninstall. Review URL: http://codereview.chromium.org/385014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31612 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/dom_ui')
-rw-r--r--chrome/browser/dom_ui/dom_ui_factory.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/dom_ui/dom_ui_factory.cc b/chrome/browser/dom_ui/dom_ui_factory.cc
index 150afe7..6f0c275 100644
--- a/chrome/browser/dom_ui/dom_ui_factory.cc
+++ b/chrome/browser/dom_ui/dom_ui_factory.cc
@@ -37,7 +37,8 @@ template<>
DOMUI* NewDOMUI<ExtensionDOMUI>(TabContents* contents, const GURL& url) {
// Don't use a DOMUI for non-existent extensions.
ExtensionsService* service = contents->profile()->GetExtensionsService();
- bool valid_extension = (service && service->GetExtensionById(url.host()));
+ bool valid_extension =
+ (service && service->GetExtensionById(url.host(), false));
if (valid_extension)
return new ExtensionDOMUI(contents);
return NULL;