-
Notifications
You must be signed in to change notification settings - Fork 900
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes to sync QR code for Desktop and Android #11199
Conversation
f0430e8
to
f94024e
Compare
e6e11d1
to
8270434
Compare
984af09
to
75d0ac6
Compare
75d0ac6
to
783eec0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the great unit tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change to browser/ui/webui/settings/brave_sync_handler.cc
LGTM 😄👍
} else if (version_value->is_int()) { | ||
qr_data->version = version_value->GetInt(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should only accept string version as spec specified.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had doubts here. Version by meaning is integer and it is for sure less than 32 bits. That is why I made it to be both string or integers.
But your comment clears the things out. I will follow the spec with only integer for version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed here:
fa9cdb4
- version field of QR data is strictly string; - added validation for seed hex by checking the passphrase words number.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
++
Sync QR code v2 for Desktop and Android
Resolves brave/brave-browser#19550
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
,npm run lint
,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan:
See https://docs.google.com/document/d/1w7tEPNj4GaTCEekmj4Ala0BiDSFQxSAA1V7_uOQ4ZTo/edit#heading=h.6fxbe025utui
Own tests succeeded except the lines with iOS involved