| 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..b3b82e25c7eabd141cbfe81ed8ea5ba76296ce8c 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,38 @@ ExtensionFunction::ResponseAction
|
| return RespondNow(NoArguments());
|
| }
|
|
|
| +////////////////////////////////////////////////////////////////////////////////
|
| +// PasswordsPrivateRequestSavedPasswordListFunction
|
| +
|
| +PasswordsPrivateRequestSavedPasswordListFunction::
|
| + ~PasswordsPrivateRequestSavedPasswordListFunction() {}
|
| +
|
| +ExtensionFunction::ResponseAction
|
| + PasswordsPrivateRequestSavedPasswordListFunction::Run() {
|
| + PasswordsPrivateDelegate* delegate =
|
| + PasswordsPrivateDelegateFactory::GetForBrowserContext(browser_context(),
|
| + true /* create */);
|
| + delegate->SendSavedPasswordsList();
|
| + // No response given from this API function; instead, listeners wait for the
|
| + // chrome.passwordsPrivate.onPlaintextPasswordRetrieved event to fire.
|
| + return RespondNow(NoArguments());
|
| +}
|
| +
|
| +////////////////////////////////////////////////////////////////////////////////
|
| +// PasswordsPrivateRequestPasswordExceptionListFunction
|
| +
|
| +PasswordsPrivateRequestPasswordExceptionListFunction::
|
| + ~PasswordsPrivateRequestPasswordExceptionListFunction() {}
|
| +
|
| +ExtensionFunction::ResponseAction
|
| + PasswordsPrivateRequestPasswordExceptionListFunction::Run() {
|
| + PasswordsPrivateDelegate* delegate =
|
| + PasswordsPrivateDelegateFactory::GetForBrowserContext(browser_context(),
|
| + true /* create */);
|
| + delegate->SendPasswordExceptionsList();
|
| + // No response given from this API function; instead, listeners wait for the
|
| + // chrome.passwordsPrivate.onPlaintextPasswordRetrieved event to fire.
|
| + return RespondNow(NoArguments());
|
| +}
|
| +
|
| } // namespace extensions
|
|
|