Describe the issue you encountered:
It seems that the "Include" toggle state in Payments for individual sites does not survive browser restarts, if "Saved site settings and permissions" is set to autopurge on closing Brave.
Expected behavior:
I'm actually not sure if this is a technical limitation, but to me it seems like user settings in the about:* domains should survive purge-on-close.
Platform (Win7, 8, 10? macOS? Linux distro?):
Windows 10 (v 1607)
Brave Version (revision SHA):
0.12.15
Steps to reproduce:
This issue does not seem to occur if "Saved site settings and permissions" is not set to autopurge.
@bradleyrichter - is this the _intended_ behavior? my thinking is that the behavior is _consistent_, but may not be _desirable_. what's your thinking?
My initial thinking and current thinking is that these MUST be separated because it will always surprise people. I think you need 2 options:
The standard and Brave specific:

(not sure if the last switch should combine those data types but it would be more usable. )
@bradleyrichter 'brave shields' is essentially the same as 'saved site settings'. if you want shields to be tied with brave payments, then 'saved site settings and permissions' should probably just be 'saved site permissions'.
moving to 0.13.7
should the 'Brave payments data' switch clear all Brave payments data (resetting it to the state before you turned on Brave payments)?
the only issue with that is the loss of the brave wallet, if the user didn't back up the recovery keys... i suspect it would be better to trim everything back in the synopsis file, most of the ledger state file, and then set the ledger setting to off along with deleting all the site-specific ledger settings...
here is my suggestion:
add the additional option "Brave shields and payment data" as shown in https://cloud.githubusercontent.com/assets/13509546/22130115/12199528-de5f-11e6-96f6-bb67c71c403c.png
exclude any key starting with ledger from being deleted when "Saved site settings and permissions" is cleared.
ballots and transactions, and remove paymentInfo from ledger-stateledger-scores, ledger-publisher and ledger-logpublishers from ledger-publisherstasks 2-4 can be accomplished by modifying the correct data structures in app/ledger.js and then calling atomicWriter...
shields should not be tied to payments data IMO. if you are clearing site permissions, you are more likely to want to clear shield settings than if you are clearing payments data.
@bradleyrichter - i agree with @diracdeltas comment, we probably need two more checkboxes, not just one...
Prework for this is done and can be found in the issues-6708 branch
per discussion with @diracdeltas we are pushing this after 1.0
Most helpful comment
@bradleyrichter - i agree with @diracdeltas comment, we probably need two more checkboxes, not just one...