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

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

Issue 3166023: When extension is blacklisted by admin policy, it should be removed if alread... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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/extensions_service.h
===================================================================
--- chrome/browser/extensions/extensions_service.h (revision 56844)
+++ chrome/browser/extensions/extensions_service.h (working copy)
@@ -88,6 +88,7 @@
bool include_disabled) = 0;
virtual void UpdateExtensionBlacklist(
const std::vector<std::string>& blacklist) = 0;
+ virtual void CheckAdminBlacklist() = 0;
virtual bool HasInstalledExtensions() = 0;
virtual ExtensionPrefs* extension_prefs() = 0;
@@ -320,6 +321,11 @@
virtual void UpdateExtensionBlacklist(
const std::vector<std::string>& blacklist);
+ // Go through each extension and unload those that the network admin has
+ // put on the blacklist (not to be confused with the Google managed blacklist
+ // set of extensions.
+ virtual void CheckAdminBlacklist();
+
void set_extensions_enabled(bool enabled) { extensions_enabled_ = enabled; }
bool extensions_enabled() { return extensions_enabled_; }
@@ -333,8 +339,9 @@
Profile* profile() { return profile_; }
- // Profile calls this when it is destroyed so that we know not to call it.
- void ProfileDestroyed() { profile_ = NULL; }
+ // Profile calls this when it is being destroyed so that we know not to call
+ // it.
+ void DestroyingProfile();
ExtensionPrefs* extension_prefs() { return extension_prefs_.get(); }
« no previous file with comments | « chrome/browser/extensions/extension_updater_unittest.cc ('k') | chrome/browser/extensions/extensions_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698