| Index: content/renderer/render_view_impl.cc
|
| diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
|
| index 7cd6639666a7d3829a4e12e8a404986819ae02c1..7f06dda1c1fb5284cc6b5438a8b2fd7ea616e78c 100644
|
| --- a/content/renderer/render_view_impl.cc
|
| +++ b/content/renderer/render_view_impl.cc
|
| @@ -3923,6 +3923,7 @@ double RenderViewImpl::zoomFactorToZoomLevel(double factor) const {
|
| 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,
|
| @@ -3954,6 +3955,26 @@ void RenderViewImpl::unregisterProtocolHandler(const WebString& scheme,
|
| user_gesture));
|
| }
|
|
|
| +void RenderViewImpl::registerProtocolHandler(const WebString& scheme,
|
| + const WebURL& url,
|
| + const WebString& title) {
|
| + bool user_gesture = WebUserGestureIndicator::isProcessingUserGesture();
|
| + Send(new ViewHostMsg_RegisterProtocolHandler(routing_id_,
|
| + base::UTF16ToUTF8(scheme),
|
| + url,
|
| + title,
|
| + user_gesture));
|
| +}
|
| +
|
| +void RenderViewImpl::unregisterProtocolHandler(const WebString& scheme,
|
| + const WebURL& url) {
|
| + bool user_gesture = WebUserGestureIndicator::isProcessingUserGesture();
|
| + Send(new ViewHostMsg_UnregisterProtocolHandler(routing_id_,
|
| + base::UTF16ToUTF8(scheme),
|
| + url,
|
| + user_gesture));
|
| +}
|
| +
|
| blink::WebPageVisibilityState RenderViewImpl::visibilityState() const {
|
| blink::WebPageVisibilityState current_state = is_hidden() ?
|
| blink::WebPageVisibilityStateHidden :
|
|
|