Commit 0039a2fc authored by Peter Beverloo's avatar Peter Beverloo Committed by Commit Bot

Add a missing return in the SharingDeviceRegistration delete path

Bug: 1028344
Change-Id: Iba393d02c795f32b9b1341cdf9ef12037fd9126c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1937069
Auto-Submit: Peter Beverloo <peter@chromium.org>
Reviewed-by: default avatarRichard Knoll <knollr@chromium.org>
Reviewed-by: default avatarMichael van Ouwerkerk <mvanouwerkerk@chromium.org>
Commit-Queue: Peter Beverloo <peter@chromium.org>
Cr-Commit-Position: refs/heads/master@{#719221}
parent 16ec97a3
......@@ -174,8 +174,10 @@ void SharingDeviceRegistration::UnregisterDevice(
void SharingDeviceRegistration::OnVapidFCMTokenDeleted(
RegistrationCallback callback,
SharingDeviceRegistrationResult result) {
if (result != SharingDeviceRegistrationResult::kSuccess)
if (result != SharingDeviceRegistrationResult::kSuccess) {
std::move(callback).Run(result);
return;
}
DeleteFCMToken(kSharingSenderID, std::move(callback));
}
......
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