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

Unified Diff: content/renderer/render_view_impl.cc

Issue 494413002: Remove unused methods. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index a120ac114bb0f5997084aad437895fcafb09af3a..539f3cc60380cf49fa3ee332f89bbe1232345f98 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -3908,38 +3908,6 @@ 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,
- 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,
const WebURL& url,
const WebString& title) {
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698