Skip to content
Commit 5da5aeb1 authored by Ben Reich's avatar Ben Reich Committed by Chromium LUCI CQ
Browse files

[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: default avatarFrançois Degros <fdegros@chromium.org>
Commit-Queue: Ben Reich <benreich@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1147660}
parent d9ea8480
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment