-
Notifications
You must be signed in to change notification settings - Fork 904
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
Import history from Safari #5383
Conversation
c8ab38f
to
c13a37d
Compare
c13a37d
to
c48018f
Compare
class ScopedOpenFile { | ||
public: | ||
explicit ScopedOpenFile(const base::FilePath& file_path) { | ||
file_ = base::OpenFile(file_path, "r"); |
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.
Just trying to open files(with r
) that need full disk access adds Brave browser to full disk access panel list automatically. This fixes brave/brave-browser#8343
c48018f
to
52a76fa
Compare
Kindly ping to reviewers :) |
|
||
BraveSafariImporter::~BraveSafariImporter() = default; | ||
|
||
void BraveSafariImporter::ImportHistory() { |
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'm confused, why are we doing this if chrome already imports the history?
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.
Chrome's history importing from Safari is broken. filed issue to https://bugs.chromium.org/p/chromium/issues/detail?id=1078626
The reason is Chrome still checks History.plist
but that file is not existed anymore and History.db
is introduced.
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.
Nice! This is one we can upstream maybe?
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'll try :)
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.
@bridiver Do you have more concerns for this PR?
52a76fa
to
b98d98e
Compare
b98d98e
to
c9050d2
Compare
Fix brave/brave-browser#8515
Fix brave/brave-browser#8343
Submitter Checklist:
npm run lint
)git rebase master
(if needed).git rebase -i
to squash commits (if needed).Test Plan:
See issue.
Reviewer Checklist:
After-merge Checklist:
changes has landed on.