2014-09-04 19:53:40 +02:00
|
|
|
diff --git public/renderer/content_renderer_client.cc public/renderer/content_renderer_client.cc
|
2015-01-09 18:22:10 +01:00
|
|
|
index 489ee14..caa083e 100644
|
2014-09-04 19:53:40 +02:00
|
|
|
--- public/renderer/content_renderer_client.cc
|
|
|
|
+++ public/renderer/content_renderer_client.cc
|
2014-12-13 21:18:31 +01:00
|
|
|
@@ -99,7 +99,6 @@ bool ContentRendererClient::AllowPopup() {
|
2013-12-17 23:04:35 +01:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
-#ifdef OS_ANDROID
|
|
|
|
bool ContentRendererClient::HandleNavigation(
|
2014-02-05 21:35:45 +01:00
|
|
|
RenderFrame* render_frame,
|
2013-12-17 23:04:35 +01:00
|
|
|
DocumentState* document_state,
|
2014-12-13 21:18:31 +01:00
|
|
|
@@ -111,7 +110,6 @@ bool ContentRendererClient::HandleNavigation(
|
2013-12-17 23:04:35 +01:00
|
|
|
bool is_redirect) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
-#endif
|
|
|
|
|
|
|
|
bool ContentRendererClient::ShouldFork(blink::WebFrame* frame,
|
|
|
|
const GURL& url,
|
2014-09-04 19:53:40 +02:00
|
|
|
diff --git public/renderer/content_renderer_client.h public/renderer/content_renderer_client.h
|
2015-01-09 18:22:10 +01:00
|
|
|
index bc82ce6..b112107 100644
|
2014-09-04 19:53:40 +02:00
|
|
|
--- public/renderer/content_renderer_client.h
|
|
|
|
+++ public/renderer/content_renderer_client.h
|
2014-12-13 21:18:31 +01:00
|
|
|
@@ -195,7 +195,6 @@ class CONTENT_EXPORT ContentRendererClient {
|
2013-12-17 23:04:35 +01:00
|
|
|
// Returns true if a popup window should be allowed.
|
|
|
|
virtual bool AllowPopup();
|
|
|
|
|
|
|
|
-#ifdef OS_ANDROID
|
|
|
|
// TODO(sgurun) This callback is deprecated and will be removed as soon
|
|
|
|
// as android webview completes implementation of a resource throttle based
|
|
|
|
// shouldoverrideurl implementation. See crbug.com/325351
|
2014-12-13 21:18:31 +01:00
|
|
|
@@ -210,7 +209,6 @@ class CONTENT_EXPORT ContentRendererClient {
|
2013-12-17 23:04:35 +01:00
|
|
|
blink::WebNavigationType type,
|
|
|
|
blink::WebNavigationPolicy default_policy,
|
|
|
|
bool is_redirect);
|
|
|
|
-#endif
|
|
|
|
|
|
|
|
// Returns true if we should fork a new process for the given navigation.
|
|
|
|
// If |send_referrer| is set to false (which is the default), no referrer
|
2014-09-04 19:53:40 +02:00
|
|
|
diff --git renderer/render_frame_impl.cc renderer/render_frame_impl.cc
|
2015-01-09 18:22:10 +01:00
|
|
|
index 473b185..2d082b5 100644
|
2014-09-04 19:53:40 +02:00
|
|
|
--- renderer/render_frame_impl.cc
|
|
|
|
+++ renderer/render_frame_impl.cc
|
2015-01-09 18:22:10 +01:00
|
|
|
@@ -3798,7 +3798,6 @@ void RenderFrameImpl::OnCommitNavigation(
|
2014-09-04 19:53:40 +02:00
|
|
|
WebNavigationPolicy RenderFrameImpl::DecidePolicyForNavigation(
|
|
|
|
RenderFrame* render_frame,
|
|
|
|
const NavigationPolicyInfo& info) {
|
2013-12-17 23:04:35 +01:00
|
|
|
-#ifdef OS_ANDROID
|
|
|
|
// The handlenavigation API is deprecated and will be removed once
|
|
|
|
// crbug.com/325351 is resolved.
|
2014-09-04 19:53:40 +02:00
|
|
|
if (info.urlRequest.url() != GURL(kSwappedOutURL) &&
|
2015-01-09 18:22:10 +01:00
|
|
|
@@ -3813,7 +3812,6 @@ WebNavigationPolicy RenderFrameImpl::DecidePolicyForNavigation(
|
2014-09-04 19:53:40 +02:00
|
|
|
info.isRedirect)) {
|
2013-12-17 23:04:35 +01:00
|
|
|
return blink::WebNavigationPolicyIgnore;
|
|
|
|
}
|
|
|
|
-#endif
|
|
|
|
|
2014-09-04 19:53:40 +02:00
|
|
|
Referrer referrer(RenderViewImpl::GetReferrerFromRequest(info.frame,
|
|
|
|
info.urlRequest));
|