Commit 3bc67512 authored by Shakti Sahu's avatar Shakti Sahu Committed by Commit Bot

Fixed a crash

Bug: 1006817
Change-Id: I122fc9c2db8ef6fc0c62a4c31722538860fc1286
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1819885Reviewed-by: default avatarMin Qin <qinmin@chromium.org>
Commit-Queue: Shakti Sahu <shaktisahu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#699096}
parent 4e760c2a
...@@ -129,8 +129,9 @@ public class DownloadSnackbarController implements SnackbarManager.SnackbarContr ...@@ -129,8 +129,9 @@ public class DownloadSnackbarController implements SnackbarManager.SnackbarContr
} }
private boolean isShowingDownloadInfoBar() { private boolean isShowingDownloadInfoBar() {
return DownloadManagerService.getDownloadManagerService() DownloadInfoBarController infoBarController =
.getInfoBarController(Profile.getLastUsedProfile().isOffTheRecord()) DownloadManagerService.getDownloadManagerService().getInfoBarController(
.isShowing(); Profile.getLastUsedProfile().isOffTheRecord());
return infoBarController == null ? false : infoBarController.isShowing();
} }
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment