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

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

Issue 14973007: Auto-install/uninstall shared module dependencies for extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 7 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 a81a5f95b773887f337f644db06d2a6a78d3c3ec..73265048a855a0e2a96e62529fb896e6612e6715 100644
--- a/chrome/browser/extensions/extension_service.h
+++ b/chrome/browser/extensions/extension_service.h
@@ -424,6 +424,21 @@ class ExtensionService
// Launch an extension the next time it is loaded.
void ScheduleLaunchOnLoad(const std::string& extension_id);
+ // Checks an extension's shared module imports to see if they are satisfied.
+ // If they are not, this function disables the extension, and optionally adds
+ // the dependencies to the pending install list.
+ bool CheckImports(const extensions::Extension* extension);
+
+ // Checks all extensions for missing imports and syncs them as needed. Also
+ // sets the enable/disable state for extensions based on whether all of their
+ // imports are present.
+ void CheckImportsOnAllExtensions();
+
+ // Checks an extension's shared module imports to see if they would still be
+ // referenced by other extensions when a particular extension is uninstalled.
+ // Uninstalls shared modules that are no longer referenced.
+ void PruneSharedModulesOnUninstall(const extensions::Extension* extension);
+
// Informs the service that an extension's files are in place for loading.
//
// Please make sure the Blacklist is checked some time before calling this

Powered by Google App Engine
This is Rietveld 408576698