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

Unified Diff: extensions/browser/extension_registry_observer.h

Issue 297263003: Optimize promotion of ephemeral apps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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_observer.h
diff --git a/extensions/browser/extension_registry_observer.h b/extensions/browser/extension_registry_observer.h
index b6cf8e0907fe34843a5fc5504d4e2d55bb290a09..0ae45c2ad818632cd0b823de3342a580533a56d3 100644
--- a/extensions/browser/extension_registry_observer.h
+++ b/extensions/browser/extension_registry_observer.h
@@ -37,6 +37,10 @@ class ExtensionRegistryObserver {
// Called when |extension| is about to be installed. |is_update| is true if
// the installation is the result of it updating, in which case |old_name| is
// the name of the extension's previous version.
+ // If true, |from_ephemeral| indicates that the extension was previously
+ // installed ephemerally and has been promoted to a regular installed
+ // extension. |is_update| will be true, although the version has not
+ // necessarily changed.
// The ExtensionRegistry will not be tracking |extension| at the time this
// event is fired, but will be immediately afterwards (note: not necessarily
// enabled; it might be installed in the disabled or even blacklisted sets,
@@ -47,6 +51,7 @@ class ExtensionRegistryObserver {
content::BrowserContext* browser_context,
const Extension* extension,
bool is_update,
+ bool from_ephemeral,
tmdiep 2014/05/25 23:10:38 This flags will be required by these patches (whic
const std::string& old_name) {}
// Called after an extension is uninstalled. The extension no longer exsit in

Powered by Google App Engine
This is Rietveld 408576698