Commit 669743f1 authored by Maksim Ivanov's avatar Maksim Ivanov Committed by Chromium LUCI CQ

Fix double-callback-call crash in //components/arc/disk_quota/

Fix use-after-move (potential) bugs found by the
"bugprone-use-after-move" clang-tidy check.

Bug: 1122844
Change-Id: Ic17f054e6ff0cd22b66b80cbdd370dd1d9ac47fc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2595297
Auto-Submit: Maksim Ivanov <emaxx@chromium.org>
Reviewed-by: default avatarSatoshi Niwa <niwa@chromium.org>
Reviewed-by: default avatarRyo Hashimoto <hashimoto@chromium.org>
Commit-Queue: Ryo Hashimoto <hashimoto@chromium.org>
Cr-Commit-Position: refs/heads/master@{#837900}
parent b1e9d90e
...@@ -171,6 +171,7 @@ void ArcDiskQuotaBridge::SetProjectId(uint32_t project_id, ...@@ -171,6 +171,7 @@ void ArcDiskQuotaBridge::SetProjectId(uint32_t project_id,
LOG(ERROR) << "Setting a project ID to path " << android_path LOG(ERROR) << "Setting a project ID to path " << android_path
<< " is not allowed"; << " is not allowed";
std::move(callback).Run(false); std::move(callback).Run(false);
return;
} }
auto identifier = auto identifier =
......
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