2014-09-04 19:53:40 +02:00
|
|
|
diff --git public/renderer/content_renderer_client.cc public/renderer/content_renderer_client.cc
|
2015-02-04 19:10:14 +01:00
|
|
|
index 79b40ac..4babaa9 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-02-04 19:10:14 +01:00
|
|
|
index a7c7271..05fc084 100644
|
2014-09-04 19:53:40 +02:00
|
|
|
--- public/renderer/content_renderer_client.h
|
|
|
|
+++ public/renderer/content_renderer_client.h
|
2015-02-04 19:10:14 +01:00
|
|
|
@@ -192,7 +192,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
|
2015-02-04 19:10:14 +01:00
|
|
|
@@ -207,7 +206,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-02-04 19:10:14 +01:00
|
|
|
index 876e8ae..a5064a1 100644
|
2014-09-04 19:53:40 +02:00
|
|
|
--- renderer/render_frame_impl.cc
|
|
|
|
+++ renderer/render_frame_impl.cc
|
2015-02-04 19:10:14 +01:00
|
|
|
@@ -3954,7 +3954,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-02-04 19:10:14 +01:00
|
|
|
@@ -3969,7 +3968,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));
|