Use the chrome.passwordsPrivate API to add or remove password data from the settings UI.
Use the chrome.passwordsPrivate API to add or remove password data from the settings UI. * available since Chrome master
(cancel-export-passwords)
Stops exporting passwords and cleans up any passwords, which were already written to the filesystem.
Stops exporting passwords and cleans up any passwords, which were already written to the filesystem.
(change-compromised-credential credential new-password)
Requests to change the password of |credential| to |new_password|. Invokes |callback| or raises an error depending on whether the operation succeeded.
|credential| - The credential whose password should be changed. |new-password| - The new password.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Requests to change the password of |credential| to |new_password|. Invokes |callback| or raises an error depending on whether the operation succeeded. |credential| - The credential whose password should be changed. |new-password| - The new password. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(change-compromised-credential* config credential new-password)
(change-saved-password id new-username)
(change-saved-password id new-username new-password)
Changes the username and password corresponding to |id|.
|id| - The id for the password entry being updated. |new-username| - The new username. |new-password| - The new password.
Changes the username and password corresponding to |id|. |id| - The id for the password entry being updated. |new-username| - The new username. |new-password| - The new password.
(export-passwords)
Triggers the Password Manager password export functionality. Completion Will be signaled by the onPasswordsFileExportProgress event. |callback| will be called when the request is started or rejected. If rejected chrome.runtime.lastError will be set to 'in-progress' or 'reauth-failed'.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Triggers the Password Manager password export functionality. Completion Will be signaled by the onPasswordsFileExportProgress event. |callback| will be called when the request is started or rejected. If rejected chrome.runtime.lastError will be set to 'in-progress' or 'reauth-failed'. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(get-compromised-credentials)
Requests the latest compromised credentials.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [compromised-credential] where:
|compromised-credential| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Requests the latest compromised credentials. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [compromised-credential] where: |compromised-credential| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(get-password-check-status)
Returns the current status of the check via |callback|.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [status] where:
|status| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Returns the current status of the check via |callback|. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [status] where: |status| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(get-password-exception-list)
Returns the list of password exceptions.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [exceptions] where:
|exceptions| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Returns the list of password exceptions. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [exceptions] where: |exceptions| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(get-plaintext-compromised-password credential reason)
Requests the plaintext password for |credential|. |callback| gets invoked with the same |credential|, whose |password
field will be set.
|credential| - The compromised credential whose password is being retrieved. |reason| - The reason why the plaintext password is requested.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [credential] where:
|credential| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Requests the plaintext password for |credential|. |callback| gets invoked with the same |credential|, whose |password field will be set. |credential| - The compromised credential whose password is being retrieved. |reason| - The reason why the plaintext password is requested. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [credential] where: |credential| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(get-plaintext-compromised-password* config credential reason)
(get-saved-password-list)
Returns the list of saved passwords.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [entries] where:
|entries| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Returns the list of saved passwords. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [entries] where: |entries| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(import-passwords)
Triggers the Password Manager password import functionality.
Triggers the Password Manager password import functionality.
(is-opted-in-for-account-storage)
Requests the account-storage opt-in state of the current user.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [opted-in] where:
|opted-in| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Requests the account-storage opt-in state of the current user. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [opted-in] where: |opted-in| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(on-account-storage-opt-in-state-changed* config channel & args)
(on-compromised-credentials-changed* config channel & args)
(on-password-check-status-changed* config channel & args)
(on-password-exceptions-list-changed* config channel & args)
(on-passwords-file-export-progress* config channel & args)
(opt-in-for-account-storage opt-in)
Triggers the opt-in or opt-out flow for the account storage.
|opt-in| - ?
Triggers the opt-in or opt-out flow for the account storage. |opt-in| - ?
(record-passwords-page-access-in-settings)
Function that logs that the Passwords page was accessed from the Chrome Settings WebUI.
Function that logs that the Passwords page was accessed from the Chrome Settings WebUI.
(record-passwords-page-access-in-settings* config)
(remove-compromised-credential credential)
Requests to remove |credential| from the password store. Invokes |callback| on completion.
|credential| - ?
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Requests to remove |credential| from the password store. Invokes |callback| on completion. |credential| - ? This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(remove-password-exception id)
Removes the saved password exception corresponding to |exceptionUrl|. If no exception with this URL exists, this function is a no-op.
|id| - The id for the exception url entry being removed.
Removes the saved password exception corresponding to |exceptionUrl|. If no exception with this URL exists, this function is a no-op. |id| - The id for the exception url entry being removed.
(remove-saved-password id)
Removes the saved password corresponding to |id|. If no saved password for this pair exists, this function is a no-op.
|id| - The id for the password entry being removed.
Removes the saved password corresponding to |id|. If no saved password for this pair exists, this function is a no-op. |id| - The id for the password entry being removed.
(request-export-progress-status)
Requests the export progress status. This is the same as the last value seen on the onPasswordsFileExportProgress event. This function is useful for checking if an export has already been initiated from an older tab, where we might have missed the original event.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [status] where:
|status| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Requests the export progress status. This is the same as the last value seen on the onPasswordsFileExportProgress event. This function is useful for checking if an export has already been initiated from an older tab, where we might have missed the original event. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [status] where: |status| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(request-plaintext-password id reason)
Returns the plaintext password corresponding to |id|. Note that on some operating systems, this call may result in an OS-level reauthentication. Once the password has been fetched, it will be returned via |callback|.
|id| - The id for the password entry being being retrieved. |reason| - The reason why the plaintext password is requested.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [password] where:
|password| - ?
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Returns the plaintext password corresponding to |id|. Note that on some operating systems, this call may result in an OS-level reauthentication. Once the password has been fetched, it will be returned via |callback|. |id| - The id for the password entry being being retrieved. |reason| - The reason why the plaintext password is requested. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is [password] where: |password| - ? In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(start-password-check)
Starts a check for compromised passwords. Invokes |callback| on completion.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Starts a check for compromised passwords. Invokes |callback| on completion. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(stop-password-check)
Stops checking for compromised passwords. Invokes |callback| on completion.
This function returns a core.async channel of type promise-chan
which eventually receives a result value.
Signature of the result value put on the channel is [].
In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
Stops checking for compromised passwords. Invokes |callback| on completion. This function returns a core.async channel of type `promise-chan` which eventually receives a result value. Signature of the result value put on the channel is []. In case of an error the channel closes without receiving any value and relevant error object can be obtained via chromex.error/get-last-error.
(tap-all-events chan)
Taps all valid non-deprecated events in chromex.app.passwords-private namespace.
Taps all valid non-deprecated events in chromex.app.passwords-private namespace.
(tap-on-account-storage-opt-in-state-changed-events channel & args)
Fired when the opt-in state for the account-scoped storage has changed.
Events will be put on the |channel| with signature [::on-account-storage-opt-in-state-changed [opted-in]] where:
|opted-in| - The new opt-in state.
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
Fired when the opt-in state for the account-scoped storage has changed. Events will be put on the |channel| with signature [::on-account-storage-opt-in-state-changed [opted-in]] where: |opted-in| - The new opt-in state. Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
(tap-on-compromised-credentials-changed-events channel & args)
Fired when the compromised credentials changed.
Events will be put on the |channel| with signature [::on-compromised-credentials-changed [compromised-credentials]] where:
|compromised-credentials| - The updated compromised credentials.
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
Fired when the compromised credentials changed. Events will be put on the |channel| with signature [::on-compromised-credentials-changed [compromised-credentials]] where: |compromised-credentials| - The updated compromised credentials. Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
(tap-on-password-check-status-changed-events channel & args)
Fired when the status of the password check changes.
Events will be put on the |channel| with signature [::on-password-check-status-changed [status]] where:
|status| - The updated status of the password check.
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
Fired when the status of the password check changes. Events will be put on the |channel| with signature [::on-password-check-status-changed [status]] where: |status| - The updated status of the password check. Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
(tap-on-password-exceptions-list-changed-events channel & args)
Fired when the password exceptions list has changed, meaning that an entry has been added or removed.
Events will be put on the |channel| with signature [::on-password-exceptions-list-changed [exceptions]] where:
|exceptions| - The updated list of password exceptions.
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
Fired when the password exceptions list has changed, meaning that an entry has been added or removed. Events will be put on the |channel| with signature [::on-password-exceptions-list-changed [exceptions]] where: |exceptions| - The updated list of password exceptions. Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
(tap-on-passwords-file-export-progress-events channel & args)
Fired when the status of the export has changed.
Events will be put on the |channel| with signature [::on-passwords-file-export-progress [status]] where:
|status| - The progress status and an optional UI message.
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
Fired when the status of the export has changed. Events will be put on the |channel| with signature [::on-passwords-file-export-progress [status]] where: |status| - The progress status and an optional UI message. Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
(tap-on-saved-passwords-list-changed-events channel & args)
Fired when the saved passwords list has changed, meaning that an entry has been added or removed.
Events will be put on the |channel| with signature [::on-saved-passwords-list-changed [entries]] where:
|entries| - The updated list of password entries.
Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
Fired when the saved passwords list has changed, meaning that an entry has been added or removed. Events will be put on the |channel| with signature [::on-saved-passwords-list-changed [entries]] where: |entries| - The updated list of password entries. Note: |args| will be passed as additional parameters into Chrome event's .addListener call.
(undo-remove-saved-password-or-exception)
Undoes the last removal of a saved password or exception.
Undoes the last removal of a saved password or exception.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close