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

Unified Diff: extensions/browser/extension_registry.h

Issue 279073003: Add a function triggering extension installed to ExtensionRegistryObserver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test after lgtm Created 6 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: extensions/browser/extension_registry.h
diff --git a/extensions/browser/extension_registry.h b/extensions/browser/extension_registry.h
index d8df24b3653d51b30a7b5996ae96579442d832a9..66208404eec4c4ded301be406cd2ffa67e9c19c5 100644
--- a/extensions/browser/extension_registry.h
+++ b/extensions/browser/extension_registry.h
@@ -74,6 +74,13 @@ class ExtensionRegistry : public KeyedService {
void TriggerOnUnloaded(const Extension* extension,
UnloadedExtensionInfo::Reason reason);
+ // Invokes the observer method OnExtensionWillBeInstalled(). The extension
+ // must not be tracked at the time of the call, and the caller should ensure
+ // to track it afterward.
not at google - send to devlin 2014/05/20 18:27:12 This comment is wrong again. It needs to take into
limasdf 2014/05/21 15:35:08 Done.
+ void TriggerOnWillBeInstalled(const Extension* extension,
+ bool is_update,
+ const std::string& old_name);
+
// Find an extension by ID using |include_mask| to pick the sets to search:
// * enabled_extensions() --> ExtensionRegistry::ENABLED
// * disabled_extensions() --> ExtensionRegistry::DISABLED

Powered by Google App Engine
This is Rietveld 408576698