Wi-Fi Sync: Prevent crash on logout when connected to Instant Tethering.
Previously during logout, when the notification came in to SyncedNetworkMetricsLogger that the tether network status changed to disconnected, the pref service was already destroyed. When the metrics logger attempted to check the network's metadata to see if it was eligible for logging, it caused a crash. This fix prevents querying the metadata store for non-wifi or tether networks in the first place, it also performs a null check on the metadata store before querying for information about eligible networks in case something changes with the timing of teardown during logout. Fixed: 1122678 Change-Id: I8d273b4f7c0d1d0ee5f58fcbc6b946743d28456a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2380083 Commit-Queue: Jon Mann <jonmann@chromium.org> Reviewed-by:Azeem Arshad <azeemarshad@chromium.org> Cr-Commit-Position: refs/heads/master@{#802415}
Showing
Please register or sign in to comment