Skip to content

Commit

Permalink
Fix use-after-move
Browse files Browse the repository at this point in the history
.. as repeated callback can be invoked numerous times as signals after
coming in for the pumpkin DLC.

BUG=b:265090131

(cherry picked from commit 855a341)

Change-Id: If4ff85308c43eaaf8d939cda891b70d8b67c8916
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4178463
Commit-Queue: Jae Hoon Kim <kimjae@chromium.org>
Reviewed-by: Akihiro Ota <akihiroota@chromium.org>
Cr-Original-Commit-Position: refs/heads/main@{#1094273}
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4181803
Cr-Commit-Position: refs/branch-heads/5481@{#473}
Cr-Branched-From: 130f3e4-refs/heads/main@{#1084008}
  • Loading branch information
Jae Hoon Kim authored and Chromium LUCI CQ committed Jan 19, 2023
1 parent 2587a45 commit 7faa946
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chrome/browser/ash/accessibility/pumpkin_installer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ void PumpkinInstaller::OnInstalled(
}

void PumpkinInstaller::OnProgress(double progress) {
std::move(on_progress_).Run(progress);
on_progress_.Run(progress);
}

void PumpkinInstaller::OnError(const std::string& error) {
Expand Down

0 comments on commit 7faa946

Please sign in to comment.