Commit 733e1698 authored by Maksim Ivanov's avatar Maksim Ivanov Committed by Commit Bot

Fix LoginAuthUserView unneeded RepeatingCallback

This is a tiny cleanup that replaces a RepeatingCallback with a
OnceCallback in the place where it wasn't needed (OneShotTimer in
ash::LoginAuthUserView::ChallengeResponseView).

Bug: 983103
Change-Id: Iad4c5a8755e1a8f6fb087bae54af93122fde58e5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2020933Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
Commit-Queue: Maksim Ivanov <emaxx@chromium.org>
Cr-Commit-Position: refs/heads/master@{#735912}
parent 9f8613cc
...@@ -604,8 +604,8 @@ class LoginAuthUserView::ChallengeResponseView : public views::View, ...@@ -604,8 +604,8 @@ class LoginAuthUserView::ChallengeResponseView : public views::View,
if (state == State::kFailure) { if (state == State::kFailure) {
reset_state_timer_.Start( reset_state_timer_.Start(
FROM_HERE, kChallengeResponseResetAfterFailureDelay, FROM_HERE, kChallengeResponseResetAfterFailureDelay,
base::BindRepeating(&ChallengeResponseView::SetState, base::BindOnce(&ChallengeResponseView::SetState,
base::Unretained(this), State::kInitial)); base::Unretained(this), State::kInitial));
} }
arrow_button_->EnableLoadingAnimation(state == State::kAuthenticating); arrow_button_->EnableLoadingAnimation(state == State::kAuthenticating);
......
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