Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(561)

Unified Diff: components/web_contents_delegate_android/web_contents_delegate_android.cc

Issue 1381003004: Better distinguish didFinishLoad and didStopLoading (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/web_contents_delegate_android/web_contents_delegate_android.cc
diff --git a/components/web_contents_delegate_android/web_contents_delegate_android.cc b/components/web_contents_delegate_android/web_contents_delegate_android.cc
index 337044c74d76b111be503bac89cd329505a2caf5..b535eb3dbd43c3817db29b414ae7d0c3c0b15a73 100644
--- a/components/web_contents_delegate_android/web_contents_delegate_android.cc
+++ b/components/web_contents_delegate_android/web_contents_delegate_android.cc
@@ -177,10 +177,14 @@ void WebContentsDelegateAndroid::LoadingStateChanged(WebContents* source,
return;
bool has_stopped = source == NULL || !source->IsLoading();
- if (has_stopped)
+ if (has_stopped) {
Java_WebContentsDelegateAndroid_onLoadStopped(env, obj.obj());
- else
- Java_WebContentsDelegateAndroid_onLoadStarted(env, obj.obj());
+ } else {
+ Java_WebContentsDelegateAndroid_onLoadStarted(
+ env,
+ obj.obj(),
+ to_different_document);
+ }
}
void WebContentsDelegateAndroid::LoadProgressChanged(WebContents* source,

Powered by Google App Engine
This is Rietveld 408576698