Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(364)

Unified Diff: components/password_manager/core/browser/password_store_sync.h

Issue 906973007: PasswordStore: Clean up expectations about rewriting vectors of forms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Just rebased Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/password_manager/core/browser/password_store_sync.h
diff --git a/components/password_manager/core/browser/password_store_sync.h b/components/password_manager/core/browser/password_store_sync.h
index bed837a3752ce3a11754bbf252e508450ab4817b..731d338abc4d5fa3895f63b67ce9c698f483ba01 100644
--- a/components/password_manager/core/browser/password_store_sync.h
+++ b/components/password_manager/core/browser/password_store_sync.h
@@ -5,6 +5,7 @@
#ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_SYNC_INTERFACE_H_
#define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_SYNC_INTERFACE_H_
+#include "base/compiler_specific.h"
#include "base/memory/scoped_vector.h"
#include "components/password_manager/core/browser/password_store_change.h"
@@ -16,13 +17,15 @@ namespace password_manager {
// thread only.
class PasswordStoreSync {
public:
- // Finds all non-blacklist PasswordForms, and fills the vector.
+ // Overwrites |forms| with all stored non-blacklisted credentials. Returns
+ // true on success.
virtual bool FillAutofillableLogins(
- ScopedVector<autofill::PasswordForm>* forms) = 0;
+ ScopedVector<autofill::PasswordForm>* forms) WARN_UNUSED_RESULT = 0;
- // Finds all blacklist PasswordForms, and fills the vector.
- virtual bool FillBlacklistLogins(
- ScopedVector<autofill::PasswordForm>* forms) = 0;
+ // Overwrites |forms| with all stored blacklisted credentials. Returns true on
+ // success.
+ virtual bool FillBlacklistLogins(ScopedVector<autofill::PasswordForm>* forms)
+ WARN_UNUSED_RESULT = 0;
// Synchronous implementation to add the given login.
virtual PasswordStoreChangeList AddLoginImpl(

Powered by Google App Engine
This is Rietveld 408576698