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

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

Issue 1624583003: Reload Lo-Fi images inline instead of reloading the whole page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added comment Created 4 years, 10 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/Tab.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java b/chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java
index 76738ec39080110493586a9a44221dfe4393d1c1..4b3e5623c7d167c900fa44bf922968c33c55ab69 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java
@@ -924,6 +924,16 @@ public final class Tab implements ViewGroup.OnHierarchyChangeListener,
}
/**
+ * Reloads all the Lo-Fi images in this Tab's WebContents.
+ * This version ignores the cache and reloads from the network.
+ */
+ public void reloadLoFiImages() {
+ if (getWebContents() != null) {
+ getWebContents().reloadLoFiImages();
+ }
+ }
+
+ /**
* @return Whether or not the loading and rendering of the page is done.
*/
@VisibleForTesting

Powered by Google App Engine
This is Rietveld 408576698