diff options
author | vasilii <vasilii@chromium.org> | 2015-02-10 10:12:47 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-02-10 18:13:16 +0000 |
commit | 6da0b0014e4886a5b61dbd9d84f45a060aa9f162 (patch) | |
tree | 0ea50bd9641585912f1b45572bec78cdf74758c2 /components | |
parent | 3c2d016967d956456d3a3be2a41f5649bc4f8e0f (diff) | |
download | chromium_src-6da0b0014e4886a5b61dbd9d84f45a060aa9f162.zip chromium_src-6da0b0014e4886a5b61dbd9d84f45a060aa9f162.tar.gz chromium_src-6da0b0014e4886a5b61dbd9d84f45a060aa9f162.tar.bz2 |
PasswordStoreMac shouldn't notify observers when it deletes a non-existent form.
BUG=396900
Review URL: https://codereview.chromium.org/892503003
Cr-Commit-Position: refs/heads/master@{#315591}
Diffstat (limited to 'components')
-rw-r--r-- | components/password_manager/core/browser/login_database.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/password_manager/core/browser/login_database.h b/components/password_manager/core/browser/login_database.h index 45b213e..c2ad965 100644 --- a/components/password_manager/core/browser/login_database.h +++ b/components/password_manager/core/browser/login_database.h @@ -8,6 +8,7 @@ #include <string> #include <vector> +#include "base/compiler_specific.h" #include "base/files/file_path.h" #include "base/memory/scoped_vector.h" #include "base/pickle.h" @@ -52,7 +53,7 @@ class LoginDatabase { // Removes |form| from the list of remembered password forms. Returns true if // |form| was successfully removed from the database. - bool RemoveLogin(const autofill::PasswordForm& form); + bool RemoveLogin(const autofill::PasswordForm& form) WARN_UNUSED_RESULT; // Removes all logins created from |delete_begin| onwards (inclusive) and // before |delete_end|. You may use a null Time value to do an unbounded |