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 acece1bf63e245fab3344e72cb01fed5e16c447e..d2a71e6e56c416454e1e971eed67362419a6cc46 100644 |
--- a/android_webview/native/aw_web_contents_delegate.cc |
+++ b/android_webview/native/aw_web_contents_delegate.cc |
@@ -163,6 +163,18 @@ void AwWebContentsDelegate::AddNewContents(WebContents* source, |
} |
} |
+void AwWebContentsDelegate::NavigationStateChanged( |
+ content::WebContents* source, |
+ content::InvalidateTypes changed_flags) { |
+ JNIEnv* env = AttachCurrentThread(); |
+ |
+ ScopedJavaLocalRef<jobject> java_delegate = GetJavaDelegate(env); |
+ if (java_delegate.obj()) { |
+ Java_AwWebContentsDelegate_navigationStateChanged(env, java_delegate.obj(), |
+ changed_flags); |
+ } |
+} |
+ |
// Notifies the delegate about the creation of a new WebContents. This |
// typically happens when popups are created. |
void AwWebContentsDelegate::WebContentsCreated( |