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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/tab/TabWebContentsDelegateAndroid.java

Issue 2194423004: Remove onLoadStopped/onLoadStarted from WebContentsDelegateAndroid (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months 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: chrome/android/java/src/org/chromium/chrome/browser/tab/TabWebContentsDelegateAndroid.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/tab/TabWebContentsDelegateAndroid.java b/chrome/android/java/src/org/chromium/chrome/browser/tab/TabWebContentsDelegateAndroid.java
index 1193612b50221fd7c59ccd0312c671577d9e35f9..c99d98f24b48bb72ca3e6895a25bfef2885ab331 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/tab/TabWebContentsDelegateAndroid.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/tab/TabWebContentsDelegateAndroid.java
@@ -186,13 +186,13 @@ public class TabWebContentsDelegateAndroid extends WebContentsDelegateAndroid {
}
@Override
- public void onLoadStarted(boolean toDifferentDocument) {
- mTab.onLoadStarted(toDifferentDocument);
- }
-
- @Override
- public void onLoadStopped() {
- mTab.onLoadStopped();
+ public void loadingStateChanged(boolean toDifferentDocument) {
+ boolean isLoading = mTab.getWebContents() != null && mTab.getWebContents().isLoading();
+ if (isLoading) {
+ mTab.onLoadStarted(toDifferentDocument);
+ } else {
+ mTab.onLoadStopped();
+ }
}
@Override

Powered by Google App Engine
This is Rietveld 408576698