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

Unified Diff: Source/web/ChromeClientImpl.cpp

Issue 22871006: Implement unregisterProtocolHandler() function on CUSTOM_SCHEME_HANDLER (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 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: Source/web/ChromeClientImpl.cpp
diff --git a/Source/web/ChromeClientImpl.cpp b/Source/web/ChromeClientImpl.cpp
index 50c4c283d6ce26e013c5249aee1c0bcb4d5f7305..b09b1a89a8cc3bc8ef2e0ad0eb019307148370f5 100644
--- a/Source/web/ChromeClientImpl.cpp
+++ b/Source/web/ChromeClientImpl.cpp
@@ -86,6 +86,7 @@
#include "core/platform/Cursor.h"
#include "core/platform/DateTimeChooser.h"
#include "core/platform/FileChooser.h"
+#include "core/platform/NotImplemented.h"
#include "core/platform/PlatformScreen.h"
#include "core/platform/chromium/support/WrappedResourceRequest.h"
#include "core/platform/graphics/FloatRect.h"
@@ -1007,6 +1008,19 @@ void NavigatorContentUtilsClientImpl::registerProtocolHandler(const String& sche
{
m_webView->client()->registerProtocolHandler(scheme, baseURL, url, title);
}
+
+#if ENABLE(CUSTOM_SCHEME_HANDLER)
+NavigatorContentUtilsClient::CustomHandlersState NavigatorContentUtilsClientImpl::isProtocolHandlerRegistered(const String& scheme, const String& baseURL, const String& url)
+{
+ notImplemented();
+ return NavigatorContentUtilsClient::CustomHandlersDeclined;
+}
+
+void NavigatorContentUtilsClientImpl::unregisterProtocolHandler(const String& scheme, const String& baseURL, const String& url)
+{
+ m_webView->client()->unregisterProtocolHandler(scheme, baseURL, url);
+}
+#endif
#endif
} // namespace WebKit

Powered by Google App Engine
This is Rietveld 408576698