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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/download/items/OfflineContentAggregatorNotificationBridgeUiFactory.java

Issue 2811803006: Add support for pulling icons for OfflineItems (Closed)
Patch Set: More findbugs Created 3 years, 8 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/download/items/OfflineContentAggregatorNotificationBridgeUiFactory.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/download/items/OfflineContentAggregatorNotificationBridgeUiFactory.java b/chrome/android/java/src/org/chromium/chrome/browser/download/items/OfflineContentAggregatorNotificationBridgeUiFactory.java
index c8bf22ff32f484c60c34312e77501c5118d5c417..aaf7d860e27ca086200fe524ecb3875cf13c668a 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/download/items/OfflineContentAggregatorNotificationBridgeUiFactory.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/download/items/OfflineContentAggregatorNotificationBridgeUiFactory.java
@@ -5,6 +5,8 @@
package org.chromium.chrome.browser.download.items;
import org.chromium.base.ThreadUtils;
+import org.chromium.chrome.browser.download.DownloadManagerService;
+import org.chromium.chrome.browser.download.DownloadNotifier;
import org.chromium.chrome.browser.profiles.Profile;
import org.chromium.components.offline_items_collection.OfflineContentProvider;
@@ -24,8 +26,10 @@ public class OfflineContentAggregatorNotificationBridgeUiFactory {
if (sBridgeUi == null) {
Profile profile = Profile.getLastUsedProfile();
OfflineContentProvider provider = OfflineContentAggregatorFactory.forProfile(profile);
+ DownloadNotifier ui =
+ DownloadManagerService.getDownloadManagerService().getDownloadNotifier();
- sBridgeUi = new OfflineContentAggregatorNotificationBridgeUi(provider);
+ sBridgeUi = new OfflineContentAggregatorNotificationBridgeUi(provider, ui);
}
return sBridgeUi;

Powered by Google App Engine
This is Rietveld 408576698