| Index: chrome/browser/extensions/api/passwords_private/passwords_private_api.cc
|
| diff --git a/chrome/browser/extensions/api/passwords_private/passwords_private_api.cc b/chrome/browser/extensions/api/passwords_private/passwords_private_api.cc
|
| index a74dc022928a4f70b467175aa50101e46fdd0bd9..796b497b6bf660f25b3868e147ffd1dca13240a6 100644
|
| --- a/chrome/browser/extensions/api/passwords_private/passwords_private_api.cc
|
| +++ b/chrome/browser/extensions/api/passwords_private/passwords_private_api.cc
|
| @@ -85,4 +85,36 @@ ExtensionFunction::ResponseAction
|
| return RespondNow(NoArguments());
|
| }
|
|
|
| +////////////////////////////////////////////////////////////////////////////////
|
| +// PasswordsPrivateGetSavedPasswordListFunction
|
| +
|
| +PasswordsPrivateGetSavedPasswordListFunction::
|
| + ~PasswordsPrivateGetSavedPasswordListFunction() {}
|
| +
|
| +ExtensionFunction::ResponseAction
|
| +PasswordsPrivateGetSavedPasswordListFunction::Run() {
|
| + PasswordsPrivateDelegate* delegate =
|
| + PasswordsPrivateDelegateFactory::GetForBrowserContext(browser_context(),
|
| + true /* create */);
|
| + return RespondNow(ArgumentList(
|
| + api::passwords_private::GetSavedPasswordList::Results::Create(
|
| + *(delegate->GetSavedPasswordsList()))));
|
| +}
|
| +
|
| +////////////////////////////////////////////////////////////////////////////////
|
| +// PasswordsPrivateGetPasswordExceptionListFunction
|
| +
|
| +PasswordsPrivateGetPasswordExceptionListFunction::
|
| + ~PasswordsPrivateGetPasswordExceptionListFunction() {}
|
| +
|
| +ExtensionFunction::ResponseAction
|
| +PasswordsPrivateGetPasswordExceptionListFunction::Run() {
|
| + PasswordsPrivateDelegate* delegate =
|
| + PasswordsPrivateDelegateFactory::GetForBrowserContext(browser_context(),
|
| + true /* create */);
|
| + return RespondNow(ArgumentList(
|
| + api::passwords_private::GetPasswordExceptionList::Results::Create(
|
| + *(delegate->GetPasswordExceptionsList()))));
|
| +}
|
| +
|
| } // namespace extensions
|
|
|