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

Unified Diff: components/password_manager/core/browser/stub_credentials_filter.cc

Issue 2260203004: Create StubCredentialsFilter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@621355_best_matches_const
Patch Set: Rebased to avoid dependency Created 4 years, 4 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/stub_credentials_filter.cc
diff --git a/components/password_manager/core/browser/stub_credentials_filter.cc b/components/password_manager/core/browser/stub_credentials_filter.cc
new file mode 100644
index 0000000000000000000000000000000000000000..8782cc324f9078069269ec46a568ad4fe41bed74
--- /dev/null
+++ b/components/password_manager/core/browser/stub_credentials_filter.cc
@@ -0,0 +1,31 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "components/password_manager/core/browser/stub_credentials_filter.h"
+
+namespace password_manager {
+
+StubCredentialsFilter::StubCredentialsFilter() = default;
+
+StubCredentialsFilter::~StubCredentialsFilter() = default;
+
+std::vector<std::unique_ptr<autofill::PasswordForm>>
+StubCredentialsFilter::FilterResults(
+ std::vector<std::unique_ptr<autofill::PasswordForm>> results) const {
+ FilterResultsPtr(&results);
+ return results;
+}
+
+bool StubCredentialsFilter::ShouldSave(
+ const autofill::PasswordForm& form) const {
+ return true;
+}
+
+void StubCredentialsFilter::ReportFormLoginSuccess(
+ const PasswordFormManager& form_manager) const {}
+
+void StubCredentialsFilter::FilterResultsPtr(
+ std::vector<std::unique_ptr<autofill::PasswordForm>>* results) const {}
+
+} // namespace password_manager

Powered by Google App Engine
This is Rietveld 408576698