-
Notifications
You must be signed in to change notification settings - Fork 873
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
Show dialog when Brave tries to import Safari data w/o disk permission #4530
Conversation
69a146b
to
6a43b73
Compare
void OnJavascriptDisallowed() override; | ||
|
||
private: | ||
+ friend class BraveImportDataHandler; |
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.
Needed to call ImportDataHandler::StartImport()
.
@rebron Can you check the text in the dialog? I referred edge's sentence. |
6a43b73
to
a00a26e
Compare
patches/chrome-browser-ui-webui-settings-settings_import_data_handler.cc.patch
Outdated
Show resolved
Hide resolved
a00a26e
to
42b3bae
Compare
cc: @tomlowenthal cc: @Brave-Matt on text. Original: Edited per comment below. |
42b3bae
to
219206f
Compare
Text updated. |
Text seems fine. It's not very explanatory, but maybe it doesn't need to be. |
Kindly ping to reviewers :) |
219206f
to
817cd84
Compare
Use this help link should point to the Safari section on the support page directly: https://support.brave.com/hc/en-us/articles/360019782291#safari |
Verified this shows dialog as expected and the help page has the info needed Since I'm running locally though, I tried to add |
817cd84
to
4943336
Compare
@Brave-Matt URL is updated. thanks for checking! |
4943336
to
0c895c6
Compare
Built locally, verified the modal shows. Also grabbed test DMG from here: Works great! 😄 |
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.
New code and code changes look great to me! Nice patch cleanup and follows patch guidelines. As noted, tested and it works great 😄 Nice job!
cc: @bridiver for patch review |
46e84d8
to
24c20e4
Compare
@simonhong is it possible to open the panel directly? If so, that would be great 😄 I think the guide link would still be good - as a way to explain what to do once you get there |
@bsclifton We can. @bridiver shared the api :)
|
24c20e4
to
3a8eac9
Compare
3a8eac9
to
225d5b6
Compare
That looks great. |
Verification PASSED on
Examples of the above PR working: |
@rebron @tomlowenthal
Either way, just double checking if we're good with |
@simonhong I made typo error.
I added an extra |
Verification PASSED on
Text looks much better 👍 |
Looks like we're going to need to edit the text once again. We're currently not importing
CCing @rebron to create the follow up issue so we can change the text and decide on the order. |
@kjozwiak Not sure why current safari importer can't import history. |
Verification PASSED on
@simonhong the issue with |
@kjozwiak Ok thanks! |
Show tab modal dialog when Brave tries to import Safari data w/o disk permission
fix brave/brave-browser#2710
Submitter Checklist:
npm run lint
)git rebase master
(if needed).git rebase -i
to squash commits (if needed).Test Plan:
Reviewer Checklist:
After-merge Checklist:
changes has landed on.