commit | 5cec639309257d847962317a0c34e1469a3f780a | [log] [tgz] |
---|---|---|
author | Andrew Grieve <[email protected]> | Wed Sep 06 14:46:01 2023 |
committer | Chromium LUCI CQ <[email protected]> | Wed Sep 06 14:46:01 2023 |
tree | 091275a82499b38cf5b9f23ecbbf2ec2df04be5d | |
parent | 9045b958a913f0da95cdd66b81c654b65e5288f2 [diff] [blame] |
Android: Make Origin usable in Robolectric tests via native library Bug: 1223993 Change-Id: I6dd074dd027f97c642b37cbe13f7159d7b2edd5e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4835714 Owners-Override: Daniel Cheng <[email protected]> Commit-Queue: Andrew Grieve <[email protected]> Reviewed-by: Daniel Cheng <[email protected]> Cr-Commit-Position: refs/heads/main@{#1193027}
diff --git a/components/navigation_interception/intercept_navigation_delegate.cc b/components/navigation_interception/intercept_navigation_delegate.cc index bbbe8f8..29432de3 100644 --- a/components/navigation_interception/intercept_navigation_delegate.cc +++ b/components/navigation_interception/intercept_navigation_delegate.cc
@@ -248,7 +248,7 @@ Java_InterceptNavigationDelegate_handleSubframeExternalProtocol( env, jdelegate, url::GURLAndroid::FromNativeGURL(env, escaped_url), page_transition, has_user_gesture, - initiating_origin ? initiating_origin->CreateJavaObject() : nullptr); + initiating_origin ? initiating_origin->ToJavaObject() : nullptr); if (j_gurl.is_null()) return; subframe_redirect_url_ = url::GURLAndroid::ToNativeGURL(env, j_gurl);