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

Unified Diff: chrome/browser/extensions/extensions_service.h

Issue 199018: Add a disable button to the Extension management UI. (Closed)
Patch Set: comments Created 11 years, 3 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/extensions/extensions_service.h
diff --git a/chrome/browser/extensions/extensions_service.h b/chrome/browser/extensions/extensions_service.h
index 4702e5aee858d7800d1c574455bd66f111ca64f1..a17ef935c2c09d349b8b08b095c22d6ee1b38bbc 100644
--- a/chrome/browser/extensions/extensions_service.h
+++ b/chrome/browser/extensions/extensions_service.h
@@ -129,10 +129,10 @@ class ExtensionsService
void UninstallExtension(const std::string& extension_id,
bool external_uninstall);
- // Enable a previously disabled extension and reload it. The extension should
- // already exist in the extension prefs.
- // TODO(mpcomplete): add DisableExtension.
+ // Enable or disable an extension. The extension must be in the opposite state
+ // before calling.
void EnableExtension(const std::string& extension_id);
+ void DisableExtension(const std::string& extension_id);
// Load the extension from the directory |extension_path|.
void LoadExtension(const FilePath& extension_path);
« no previous file with comments | « chrome/browser/extensions/extension_browsertests_misc.cc ('k') | chrome/browser/extensions/extensions_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698