Index: content/browser/android/content_view_core_impl.cc |
diff --git a/content/browser/android/content_view_core_impl.cc b/content/browser/android/content_view_core_impl.cc |
index 59b673af8e61eb53f06d95a8af2b724f7157b768..13e7db61009372884fc0ef413a80a257521750f9 100644 |
--- a/content/browser/android/content_view_core_impl.cc |
+++ b/content/browser/android/content_view_core_impl.cc |
@@ -849,7 +849,8 @@ void ContentViewCoreImpl::LoadUrl( |
jstring base_url_for_data_url, |
jstring virtual_url_for_data_url, |
jboolean can_load_local_resources, |
- jboolean is_renderer_initiated) { |
+ jboolean is_renderer_initiated, |
+ jstring virtual_url_for_transition) { |
DCHECK(url); |
NavigationController::LoadURLParams params( |
GURL(ConvertJavaStringToUTF8(env, url))); |
@@ -888,6 +889,11 @@ void ContentViewCoreImpl::LoadUrl( |
static_cast<blink::WebReferrerPolicy>(referrer_policy)); |
} |
+ if (virtual_url_for_transition) { |
+ params.virtual_url_for_transition = |
+ GURL(ConvertJavaStringToUTF8(env, virtual_url_for_transition)); |
+ } |
+ |
params.is_renderer_initiated = is_renderer_initiated; |
LoadUrl(params); |
@@ -1647,12 +1653,19 @@ void ContentViewCoreImpl::RequestTextSurroundingSelection( |
} |
} |
-void ContentViewCoreImpl::DidDeferAfterResponseStarted() { |
+void ContentViewCoreImpl::DidDeferAfterResponseStarted( |
+ const GURL& transition_url) { |
JNIEnv* env = AttachCurrentThread(); |
ScopedJavaLocalRef<jobject> obj(java_ref_.get(env)); |
if (obj.is_null()) |
return; |
- Java_ContentViewCore_didDeferAfterResponseStarted(env, obj.obj()); |
+ |
+ ScopedJavaLocalRef<jstring> jstring_token( |
+ ConvertUTF8ToJavaString(env, transition_url.spec())); |
+ |
+ Java_ContentViewCore_didDeferAfterResponseStarted(env, |
+ obj.obj(), |
+ jstring_token.obj()); |
} |
bool ContentViewCoreImpl::WillHandleDeferAfterResponseStarted() { |