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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java

Issue 1514833002: [Offline Pages on the NTP] Bypass the network interstitial (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@offline_badge
Patch Set: getOfflineUrlForOnlineUrl returns emtpy string, not null Created 4 years, 11 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/offlinepages/OfflinePageBridge.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java b/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java
index 881bf0ab94ed9bd89298d2247b5727458841b567..6e6fe3554457f6fc535581d52cab0ede382ddb88 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java
@@ -337,7 +337,7 @@ public final class OfflinePageBridge {
/**
* Gets the offline URL of an offline page of that is saved for the online URL.
* @param onlineUrl Online URL, which might have offline copy.
- * @return URL pointing to the offline copy or <code>null</code> if none exists.
+ * @return URL pointing to the offline copy or the empty string if none exists.
fgorski 2016/01/08 17:37:51 Thanks for catching that. I think this should actu
Marc Treib 2016/01/11 10:32:23 Done.
*/
@VisibleForTesting
public String getOfflineUrlForOnlineUrl(String onlineUrl) {

Powered by Google App Engine
This is Rietveld 408576698