Update DownloadSnackbarController to use incognito profile
when called incognito. This CL replaces usage of deprecated |getLastUsedProfile| with |isOffTheRecord| param. Curently, always regular profile is used to get InfoBarController, since |getLastUsedProfile| return always regular profile. However it is not true. Therefore, this CL uses |isOffTheRecord| param from info of download item at DownloadManagerService to get correct InfoBarController for the correct profile object(i.e., regular or off-the-record profile). Bug: 1041781 Change-Id: I2d5ecf786043c8cf8fa7b62e09240a3d0c6f3c88 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2083301Reviewed-by:David Trainor <dtrainor@chromium.org> Reviewed-by:
Shakti Sahu <shaktisahu@chromium.org> Commit-Queue: Side YILMAZ <sideyilmaz@chromium.org> Cr-Commit-Position: refs/heads/master@{#747164}
Showing
Please register or sign in to comment