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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPage.java

Issue 2564163002: [Offline Pages] Remove load state from public OfflinePageModel API. (Closed)
Patch Set: Fix broken tests. Created 4 years 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/ntp/NewTabPage.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPage.java b/chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPage.java
index 03d8041849adfcd82aa3a75ed0e6372a803507af..035aeb21db01e3d37b23aea47634816e1ee93848 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPage.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPage.java
@@ -558,7 +558,7 @@ public class NewTabPage
// TODO(dewittj): Remove this code by making the NTP badging available after the NTP is
// fully loaded.
Marc Treib 2016/12/13 10:11:02 Hm. I'd be more comfortable with resolving this fi
Bernhard Bauer 2016/12/14 15:55:07 What is the current state exactly? Don't we alread
Marc Treib 2016/12/15 10:36:29 IIUC, the current state is: If, during NTP creatio
Bernhard Bauer 2016/12/15 17:48:00 What does the code in https://codereview.chromium.
vitaliii 2016/12/16 08:28:04 I agree with bauerb@. For example, if you download
Marc Treib 2016/12/19 11:10:26 That handles the offline badges on article suggest
- if (offlinePageBridge == null || !offlinePageBridge.isOfflinePageModelLoaded()) {
+ if (offlinePageBridge == null) {
// Posting a task to avoid potential re-entrancy issues.
ThreadUtils.postOnUiThread(new Runnable() {
@Override

Powered by Google App Engine
This is Rietveld 408576698