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

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

Issue 12211029: Sanity tweaks to the extension blacklist: check all extensions at once on (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: mpcomplete Created 7 years, 10 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/blacklist.h
diff --git a/chrome/browser/extensions/blacklist.h b/chrome/browser/extensions/blacklist.h
index d5cdce58b8b0c8b5369cf8b4da20a0d7b9569c39..3d6dd8bebc44943bfa324c9ace92188db6cd8272 100644
--- a/chrome/browser/extensions/blacklist.h
+++ b/chrome/browser/extensions/blacklist.h
@@ -55,6 +55,8 @@ class Blacklist : public content::NotificationObserver,
typedef base::Callback<void(const std::set<std::string>&)>
GetBlacklistedIDsCallback;
+ typedef base::Callback<void(bool)> IsBlacklistedCallback;
+
// |prefs_| must outlive this.
explicit Blacklist(ExtensionPrefs* prefs);
@@ -69,6 +71,10 @@ class Blacklist : public content::NotificationObserver,
void GetBlacklistedIDs(const std::set<std::string>& ids,
const GetBlacklistedIDsCallback& callback);
+ // More convenient form of GetBlacklistedIDs for checking a single extension.
+ void IsBlacklisted(const std::string& extension_id,
+ const IsBlacklistedCallback& callback);
+
// Sets the blacklist from the updater to contain the extension IDs in |ids|
void SetFromUpdater(const std::vector<std::string>& ids,
const std::string& version);

Powered by Google App Engine
This is Rietveld 408576698