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

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

Issue 2836423002: Pass original profile to OfflinePageDownloadBridge constructor (Closed)
Patch Set: Update comment 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
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadManagerUi.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/offlinepages/downloads/OfflinePageDownloadBridge.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/downloads/OfflinePageDownloadBridge.java b/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/downloads/OfflinePageDownloadBridge.java
index 64d3cb8f3cbc590ccbd48d52f11e086d166ef9cd..82894b9f9d03334fe6e294ebc698c59b3bae21b2 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/downloads/OfflinePageDownloadBridge.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/downloads/OfflinePageDownloadBridge.java
@@ -77,7 +77,10 @@ public class OfflinePageDownloadBridge implements DownloadServiceDelegate, Offli
}
public OfflinePageDownloadBridge(Profile profile) {
- mNativeOfflinePageDownloadBridge = sIsTesting ? 0L : nativeInit(profile);
+ // If |profile| is incognito profile, switch to the regular one since
+ // downloads are shared between them.
+ mNativeOfflinePageDownloadBridge =
+ sIsTesting ? 0L : nativeInit(profile.getOriginalProfile());
}
/** Destroys the native portion of the bridge. */
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadManagerUi.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698