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

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

Issue 6903127: [Sync] Add support for enabling/disabling an extension before it's installed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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/extensions/extension_service.h
diff --git a/chrome/browser/extensions/extension_service.h b/chrome/browser/extensions/extension_service.h
index 94f15a94df24789b9f7ecadd17bf0dbb2f2ec2ba..da1c0e82439afc0b3e539fe3e1931e7d5336e0e3 100644
--- a/chrome/browser/extensions/extension_service.h
+++ b/chrome/browser/extensions/extension_service.h
@@ -276,9 +276,12 @@ class ExtensionService
virtual bool IsExternalExtensionUninstalled(
const std::string& extension_id) const OVERRIDE;
- // Enable or disable an extension. No action if the extension is already
- // enabled/disabled.
+ // Enabled the extension. If the extension is already enabled, does
asargent_no_longer_on_chrome 2011/04/29 17:12:59 typo: "Enabled the extension"
akalin 2011/04/29 18:29:43 Done.
+ // nothing.
virtual void EnableExtension(const std::string& extension_id);
+
+ // Disables the extension. If the extension is already disabled, or
+ // cannot be disabled, does nothing.
virtual void DisableExtension(const std::string& extension_id);
// Updates the |extension|'s granted permissions lists to include all
« no previous file with comments | « chrome/browser/extensions/extension_pref_value_map.cc ('k') | chrome/browser/extensions/extension_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698