Silently install blacklisted extensions from auto-install locations (sync,
policy, etc) into a blacklisted state, rather than not-silently not-installing
them. This new behaviour is correct from a sync perspective, and the old
behaviour is quite annoying.
BUG=257677
[email protected],[email protected]
[email protected],[email protected],[email protected]
Review URL: https://chromiumcodereview.appspot.com/20217002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@214806 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/extensions/extension_service.h b/chrome/browser/extensions/extension_service.h
index a6ac7eef..1564587 100644
--- a/chrome/browser/extensions/extension_service.h
+++ b/chrome/browser/extensions/extension_service.h
@@ -432,12 +432,16 @@
// 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
- // method.
+ // |page_ordinal| is the location of the extension in the app launcher.
+ // |has_requirement_errors| is true if requirements of the extension weren't
+ // met (for example graphics capabilities).
+ // |blacklist_state| will be BLACKLISTED if the extension is blacklisted.
+ // |wait_for_idle| may be false to install the extension immediately.
void OnExtensionInstalled(
const extensions::Extension* extension,
const syncer::StringOrdinal& page_ordinal,
bool has_requirement_errors,
+ extensions::Blacklist::BlacklistState blacklist_state,
bool wait_for_idle);
// Checks for delayed installation for all pending installs.
@@ -737,9 +741,11 @@
// the extension is installed, e.g., to update event handlers on background
// pages; and perform other extension install tasks before calling
// AddExtension.
- void AddNewOrUpdatedExtension(const extensions::Extension* extension,
- extensions::Extension::State initial_state,
- const syncer::StringOrdinal& page_ordinal);
+ void AddNewOrUpdatedExtension(
+ const extensions::Extension* extension,
+ extensions::Extension::State initial_state,
+ extensions::Blacklist::BlacklistState blacklist_state,
+ const syncer::StringOrdinal& page_ordinal);
// Handles sending notification that |extension| was loaded.
void NotifyExtensionLoaded(const extensions::Extension* extension);