[Passwords] Return Optional<string> from Encryption Utils
This change modifies encryption utils used for Password Check to return base::Optional<std::string> instead of std::string. Now these methods return a nullopt instead of an empty string in case there was an error in the used Cipher, forcing callers to explicitly handle error cases. Bug: 1157004 Change-Id: I21bea839020cd89e097fcf2a36efabe2adbed91a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2642144 Commit-Queue: Jan Wilken Dörrie <jdoerrie@chromium.org> Reviewed-by:Friedrich [CET] <fhorschig@chromium.org> Cr-Commit-Position: refs/heads/master@{#845597}
Showing
Please register or sign in to comment