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

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

Issue 1890163004: extensions: Abstract out install delay strategy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: for comments in #4 Created 4 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
« no previous file with comments | « chrome/browser/extensions/install_gate.h ('k') | chrome/browser/extensions/shared_module_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/shared_module_service.h
diff --git a/chrome/browser/extensions/shared_module_service.h b/chrome/browser/extensions/shared_module_service.h
index 13605ae1c8041fee0d5b4c61952b4e3bdec71ea9..b10094edf539eb4349b861a063da4a0fa5a7cad9 100644
--- a/chrome/browser/extensions/shared_module_service.h
+++ b/chrome/browser/extensions/shared_module_service.h
@@ -9,6 +9,7 @@
#include "base/macros.h"
#include "base/scoped_observer.h"
+#include "chrome/browser/extensions/install_gate.h"
#include "extensions/browser/extension_registry_observer.h"
#include "extensions/common/manifest_handlers/shared_module_info.h"
@@ -21,7 +22,8 @@ class Extension;
class ExtensionSet;
class ExtensionRegistry;
-class SharedModuleService : public ExtensionRegistryObserver {
+class SharedModuleService : public ExtensionRegistryObserver,
+ public InstallGate {
public:
enum ImportStatus {
// No imports needed.
@@ -56,6 +58,10 @@ class SharedModuleService : public ExtensionRegistryObserver {
std::unique_ptr<ExtensionSet> GetDependentExtensions(
const Extension* extension);
+ // InstallGate:
+ Action ShouldDelay(const Extension* extension,
+ bool install_immediately) override;
+
private:
// Uninstall shared modules which are not used by other extensions.
void PruneSharedModules();
« no previous file with comments | « chrome/browser/extensions/install_gate.h ('k') | chrome/browser/extensions/shared_module_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698