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

Unified Diff: components/policy/core/browser/url_blacklist_manager.h

Issue 209473008: Block all web requests until force enrollment status has been confirmed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Flag based blocking. Created 6 years, 9 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: components/policy/core/browser/url_blacklist_manager.h
diff --git a/components/policy/core/browser/url_blacklist_manager.h b/components/policy/core/browser/url_blacklist_manager.h
index ea8f41d473d40de5ac1f54934e7677cd619a76ee..e875461aeb13d8b607ecc24c682fa692c77a522e 100644
--- a/components/policy/core/browser/url_blacklist_manager.h
+++ b/components/policy/core/browser/url_blacklist_manager.h
@@ -133,8 +133,7 @@ class POLICY_EXPORT URLBlacklistManager {
public:
// Returns true if the blacklist should be overridden for |url| and sets
// |block| to true if it should be blocked and false otherwise.
- typedef bool (*OverrideBlacklistCallback)(const GURL& url,
- bool* block);
+ typedef base::Callback<bool(const GURL&, bool*)> OverrideBlacklistCallback;
// Must be constructed on the UI thread.
// |background_task_runner| is used to build the blacklist in a background

Powered by Google App Engine
This is Rietveld 408576698