Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

Add Importer support #57

Closed
wants to merge 2 commits into from
Closed

Add Importer support #57

wants to merge 2 commits into from

Conversation

darkdh
Copy link
Member

@darkdh darkdh commented Sep 16, 2016

darkdh added a commit to brave/browser-laptop that referenced this pull request Sep 16, 2016
@bsclifton
Copy link
Member

@darkdh looking through these changes to understand more...

Looks like a LOT of this code is coming from Chromium, is that right? And after that, tweaks are made (functions added, edited, etc).

Since there are so many files added, would you be able to give a medium level overview of what this PR adds/changes? Also, I'm curious what manual tests you've done and such

Reading through quickly, I can see this adds support for importing from Chrome/FF/IE and more... including dialogs associated with these. Does this cover Chrome or FF sync import?

@darkdh
Copy link
Member Author

darkdh commented Sep 17, 2016

We leverage the architecture of ExternalProcessImporterHost and ExternalProcessImporterClient with our own ProfileWriter since we don't use chrome's profile.
And we also add import from chrome and import cookies from firefox which both chromium doesn't support now.

All the new added files are under atom and files of chromium_src with modification will have comment in the beginning of file says This is not a straight copy from chromium src... and what we modified.

atom/browser/api/atom_api_importer.* is a good starting point which included interaction between ExternalProcessImporterHost, ProfileWriter, ImporterList and front end.

The manual tests I did are import history, bookmarks, cookies on chrome/firefox of different platforms, on Edge/IE of windows, on Safari of Mac.

This PR doesn't cover Chrome/Firefox sync import but it does cover different profiles of chrome.

@@ -18,6 +18,7 @@
'lib/browser/api/dialog.js',
'lib/browser/api/exports/electron.js',
'lib/browser/api/global-shortcut.js',
'lib/browser/api/importer.js',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you move these to an importer.gypi file? See extensions.gypi

@bridiver
Copy link
Collaborator

these never seem to want to close when I merge locally
++

@bridiver bridiver closed this Sep 21, 2016
darkdh added a commit to brave/browser-laptop that referenced this pull request Sep 21, 2016
darkdh added a commit to brave/browser-laptop that referenced this pull request Sep 21, 2016
@darkdh darkdh deleted the import-browser-data branch September 23, 2016 02:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants