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

Unified Diff: chrome/browser/custom_handlers/protocol_handler_registry.h

Issue 518673003: Add policy indicator for protocol handlers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes nits Created 6 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/custom_handlers/protocol_handler_registry.h
diff --git a/chrome/browser/custom_handlers/protocol_handler_registry.h b/chrome/browser/custom_handlers/protocol_handler_registry.h
index 724c591f13e568db1badc8b4bac6357693ac9ab5..4afc07f08af30813d89ae213e007453911f6bc05 100644
--- a/chrome/browser/custom_handlers/protocol_handler_registry.h
+++ b/chrome/browser/custom_handlers/protocol_handler_registry.h
@@ -201,6 +201,14 @@ class ProtocolHandlerRegistry : public KeyedService {
// Returns true if an identical protocol handler has already been registered.
bool IsRegistered(const ProtocolHandler& handler) const;
+ // Returns true if an identical protocol handler has already been registered
+ // by the user.
+ bool IsRegisteredByUser(const ProtocolHandler& handler);
+
+ // Returns true if the scheme has at least one handler that is registered by
+ // policy.
+ bool HasPolicyRegisteredHandler(const std::string& scheme);
+
// Returns true if an identical protocol handler is being ignored.
bool IsIgnored(const ProtocolHandler& handler) const;

Powered by Google App Engine
This is Rietveld 408576698