[FilesBulkPinning] Make sure DriveIntegrationService is not nullptr
It seems when the DriveDisabled pref is true, the integration service is not ran at all. This means the drive service returns nullptr and will crash when trying to navigate to the settings page. Ensure the ptr is non-null before trying to add an observer. Bug: b:278002300 Change-Id: I2296b6053bc9e0ec5e8d06db66c76c13193aace4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4554937 Reviewed-by:François Degros <fdegros@chromium.org> Commit-Queue: Ben Reich <benreich@chromium.org> Cr-Commit-Position: refs/heads/main@{#1147660}
Loading
Please register or sign in to comment