Commit a34319cf authored by sanjoy.pal's avatar sanjoy.pal Committed by Commit bot

Remove unused methods.

BUG=406236

Review URL: https://codereview.chromium.org/494413002

Cr-Commit-Position: refs/heads/master@{#296663}
parent 9f7cb748
...@@ -3878,38 +3878,6 @@ double RenderViewImpl::zoomFactorToZoomLevel(double factor) const { ...@@ -3878,38 +3878,6 @@ double RenderViewImpl::zoomFactorToZoomLevel(double factor) const {
return ZoomFactorToZoomLevel(factor); return ZoomFactorToZoomLevel(factor);
} }
// TODO(sanjoy.pal): Remove once blink patch lands. http://crbug.com/406236.
void RenderViewImpl::registerProtocolHandler(const WebString& scheme,
const WebURL& base_url,
const WebURL& url,
const WebString& title) {
bool user_gesture = WebUserGestureIndicator::isProcessingUserGesture();
GURL base(base_url);
GURL absolute_url = base.Resolve(base::UTF16ToUTF8(url.string()));
if (base.GetOrigin() != absolute_url.GetOrigin()) {
return;
}
Send(new ViewHostMsg_RegisterProtocolHandler(routing_id_,
base::UTF16ToUTF8(scheme),
absolute_url,
title,
user_gesture));
}
void RenderViewImpl::unregisterProtocolHandler(const WebString& scheme,
const WebURL& base_url,
const WebURL& url) {
bool user_gesture = WebUserGestureIndicator::isProcessingUserGesture();
GURL base(base_url);
GURL absolute_url = base.Resolve(base::UTF16ToUTF8(url.string()));
if (base.GetOrigin() != absolute_url.GetOrigin())
return;
Send(new ViewHostMsg_UnregisterProtocolHandler(routing_id_,
base::UTF16ToUTF8(scheme),
absolute_url,
user_gesture));
}
void RenderViewImpl::registerProtocolHandler(const WebString& scheme, void RenderViewImpl::registerProtocolHandler(const WebString& scheme,
const WebURL& url, const WebURL& url,
const WebString& title) { const WebString& title) {
......
...@@ -421,15 +421,6 @@ class CONTENT_EXPORT RenderViewImpl ...@@ -421,15 +421,6 @@ class CONTENT_EXPORT RenderViewImpl
virtual void zoomLevelChanged(); virtual void zoomLevelChanged();
virtual double zoomLevelToZoomFactor(double zoom_level) const; virtual double zoomLevelToZoomFactor(double zoom_level) const;
virtual double zoomFactorToZoomLevel(double factor) const; virtual double zoomFactorToZoomLevel(double factor) const;
// TODO(sanjoy.pal): Remove once blink patch lands. http://crbug.com/406236.
virtual void registerProtocolHandler(const blink::WebString& scheme,
const blink::WebURL& base_url,
const blink::WebURL& url,
const blink::WebString& title);
virtual void unregisterProtocolHandler(const blink::WebString& scheme,
const blink::WebURL& base_url,
const blink::WebURL& url);
virtual void registerProtocolHandler(const blink::WebString& scheme, virtual void registerProtocolHandler(const blink::WebString& scheme,
const blink::WebURL& url, const blink::WebURL& url,
const blink::WebString& title); const blink::WebString& title);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment