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

Unified Diff: chrome/browser/permissions/permission_blacklist_client.h

Issue 2640033006: Convert AutoBlocker static class to KeyedService. (Closed)
Patch Set: Git surgery. Created 3 years, 11 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/permissions/permission_blacklist_client.h
diff --git a/chrome/browser/permissions/permission_blacklist_client.h b/chrome/browser/permissions/permission_blacklist_client.h
index 2d1666e00af5925ebd567bc4128e95c95b8eb7fe..239614362639a43dbec14e4be4c2a5fce6400df3 100644
--- a/chrome/browser/permissions/permission_blacklist_client.h
+++ b/chrome/browser/permissions/permission_blacklist_client.h
@@ -31,6 +31,9 @@ class PermissionBlacklistClient
public base::RefCountedThreadSafe<PermissionBlacklistClient>,
public content::WebContentsObserver {
public:
+ // |callback| will not be called if |web_contents| is destroyed. Thus if the
+ // callback is run, the profile associated with |web_contents| is guaranteed
+ // to be alive.
static void CheckSafeBrowsingBlacklist(
scoped_refptr<safe_browsing::SafeBrowsingDatabaseManager> db_manager,
content::PermissionType permission_type,

Powered by Google App Engine
This is Rietveld 408576698