Index: android_webview/native/aw_web_contents_delegate.cc |
diff --git a/android_webview/native/aw_web_contents_delegate.cc b/android_webview/native/aw_web_contents_delegate.cc |
index db537c8d6224fce04074d66313af0133ec77bc04..cd4d9cf1ffb7058a3f6d7f813436f09573d6aaf2 100644 |
--- a/android_webview/native/aw_web_contents_delegate.cc |
+++ b/android_webview/native/aw_web_contents_delegate.cc |
@@ -204,6 +204,18 @@ void AwWebContentsDelegate::ActivateContents(WebContents* contents) { |
} |
} |
+void AwWebContentsDelegate::LoadingStateChanged(WebContents* source, |
+ bool to_different_document) { |
+ // Page title may have changed, need to inform the embedder. |
+ // |source| may be null if loading has started. |
+ JNIEnv* env = AttachCurrentThread(); |
+ |
+ ScopedJavaLocalRef<jobject> java_delegate = GetJavaDelegate(env); |
+ if (java_delegate.obj()) { |
+ Java_AwWebContentsDelegate_loadingStateChanged(env, java_delegate.obj()); |
+ } |
+} |
+ |
void AwWebContentsDelegate::RequestMediaAccessPermission( |
WebContents* web_contents, |
const content::MediaStreamRequest& request, |