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

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

Issue 866983003: GetLoginsRequest: Use ScopedVector to express ownership of forms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@324291_scopedvector
Patch Set: Second fix of the rebase Created 5 years, 10 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_consumer.h
diff --git a/components/password_manager/core/browser/password_store_consumer.h b/components/password_manager/core/browser/password_store_consumer.h
index c9237778f4f319c2116d7f9d8dde191d9fb571c5..1ffdae3c871694263fec69204227d68ea93ac8c9 100644
--- a/components/password_manager/core/browser/password_store_consumer.h
+++ b/components/password_manager/core/browser/password_store_consumer.h
@@ -7,6 +7,7 @@
#include <vector>
+#include "base/memory/scoped_vector.h"
#include "base/task/cancelable_task_tracker.h"
namespace autofill {
@@ -24,11 +25,9 @@ class PasswordStoreConsumer {
public:
PasswordStoreConsumer();
- // Called when the request is finished. If there are no results, it is called
- // with an empty vector.
- // Note: The implementation owns all PasswordForms in the vector.
+ // Called when the request is finished, with the associated |results|.
virtual void OnGetPasswordStoreResults(
- const std::vector<autofill::PasswordForm*>& results) = 0;
+ ScopedVector<autofill::PasswordForm> results) = 0;
// The base::CancelableTaskTracker can be used for cancelling the
// tasks associated with the consumer.

Powered by Google App Engine
This is Rietveld 408576698