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

Unified Diff: Source/web/ChromeClientImpl.cpp

Issue 18179009: Introduce unregisterProtocolHandler() and isProtocolHandlerRegistered() webview API (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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: Source/web/ChromeClientImpl.cpp
diff --git a/Source/web/ChromeClientImpl.cpp b/Source/web/ChromeClientImpl.cpp
index ec7b15d759e0ec26c9d8a69ddf315091ebd0edde..9644877c21cf2496c68f4e216c18c541434e40cf 100644
--- a/Source/web/ChromeClientImpl.cpp
+++ b/Source/web/ChromeClientImpl.cpp
@@ -1033,13 +1033,12 @@ void NavigatorContentUtilsClientImpl::registerProtocolHandler(const String& sche
NavigatorContentUtilsClient::CustomHandlersState NavigatorContentUtilsClientImpl::isProtocolHandlerRegistered(const String& scheme, const String& baseURL, const String& url)
{
- notImplemented();
- return NavigatorContentUtilsClient::CustomHandlersDeclined;
+ return static_cast<NavigatorContentUtilsClient::CustomHandlersState>(m_webView->client()->isProtocolHandlerRegistered(scheme, baseURL, url));
}
void NavigatorContentUtilsClientImpl::unregisterProtocolHandler(const String& scheme, const String& baseURL, const String& url)
{
- notImplemented();
+ m_webView->client()->unregisterProtocolHandler(scheme, baseURL, url);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698