Commit f70cb75a authored by Zinovy Nis's avatar Zinovy Nis Committed by Commit Bot

Fix use-after-move

Change-Id: I78f1987c4f1ad1c793eafad34f995ea6d01e6e17
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2044280
Commit-Queue: Vadym Doroshenko <dvadym@chromium.org>
Reviewed-by: default avatarVadym Doroshenko <dvadym@chromium.org>
Cr-Commit-Position: refs/heads/master@{#741008}
parent 61e39a5a
...@@ -96,7 +96,7 @@ void PasswordReuseDetectionManager::OnPaste(const base::string16 text) { ...@@ -96,7 +96,7 @@ void PasswordReuseDetectionManager::OnPaste(const base::string16 text) {
return; return;
base::string16 input = std::move(text); base::string16 input = std::move(text);
if (input.size() > kMaxNumberOfCharactersToStore) if (input.size() > kMaxNumberOfCharactersToStore)
input = text.substr(input.size() - kMaxNumberOfCharactersToStore); input = input.substr(input.size() - kMaxNumberOfCharactersToStore);
PasswordStore* store = client_->GetProfilePasswordStore(); PasswordStore* store = client_->GetProfilePasswordStore();
if (!store) if (!store)
return; return;
......
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