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

Unified Diff: chrome/browser/extensions/api/passwords_private/passwords_private_delegate_impl.cc

Issue 1892613006: Add functions to the passwords private api that update the lists. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 4 years, 8 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: chrome/browser/extensions/api/passwords_private/passwords_private_delegate_impl.cc
diff --git a/chrome/browser/extensions/api/passwords_private/passwords_private_delegate_impl.cc b/chrome/browser/extensions/api/passwords_private/passwords_private_delegate_impl.cc
index f17f7d33bdadff45fab98ca4e51b5706e7939fce..db2589d7fa322ab06b60605fe4d0f38d7d655b37 100644
--- a/chrome/browser/extensions/api/passwords_private/passwords_private_delegate_impl.cc
+++ b/chrome/browser/extensions/api/passwords_private/passwords_private_delegate_impl.cc
@@ -49,6 +49,11 @@ void PasswordsPrivateDelegateImpl::SendSavedPasswordsList() {
router->OnSavedPasswordsListChanged(current_entries_);
}
+const std::vector<api::passwords_private::PasswordUiEntry>*
+PasswordsPrivateDelegateImpl::GetSavedPasswordsList() const {
+ return &current_entries_;
+}
+
void PasswordsPrivateDelegateImpl::SendPasswordExceptionsList() {
PasswordsPrivateEventRouter* router =
PasswordsPrivateEventRouterFactory::GetForProfile(profile_);
@@ -56,6 +61,11 @@ void PasswordsPrivateDelegateImpl::SendPasswordExceptionsList() {
router->OnPasswordExceptionsListChanged(current_exceptions_);
}
+const std::vector<std::string>*
+PasswordsPrivateDelegateImpl::GetPasswordExceptionsList() const {
+ return &current_exceptions_;
+}
+
void PasswordsPrivateDelegateImpl::RemoveSavedPassword(
const std::string& origin_url, const std::string& username) {
ExecuteFunction(base::Bind(

Powered by Google App Engine
This is Rietveld 408576698