Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(263)

Issue 2451223004: Improve Firefox importer to handle all Firefox profiles. (Closed)

Created:
4 years, 1 month ago by kszatan
Modified:
4 years ago
Reviewers:
Ilya Sherman
CC:
chromium-reviews, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Currently there is a Firefox importer that handles only one version of the Firefox profile. Most of the information about bookmarks and history is stored in places.sqlite. When the schema of this file changes significantly the importer stops working. After fixing the SQL queries to account for those changes, the importer stops working for the earlier schema versions. This CL aims to: 1) Introduce FirefoxPlacesFactory that detects places.sqlite schema version and creates an appropriate handler. This allows the importer to work for ALL versions of Firefox profiles. It also makes future updates easier. 2) Refactor firefox_importer.cc a little bit. This file is long and does all the work that could be split into a few, more logical parts. BUG=592239

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+719 lines, -282 lines) Patch
M chrome/chrome_tests_unit.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_utility.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/common/importer/mock_importer_bridge.h View 1 chunk +47 lines, -0 lines 0 comments Download
A + chrome/common/importer/mock_importer_bridge.cc View 1 chunk +2 lines, -4 lines 0 comments Download
A + chrome/test/data/import/firefox/36.0.1/places.sqlite View Binary file 0 comments Download
A + chrome/test/data/import/firefox/4.0/places.sqlite View Binary file 0 comments Download
A + chrome/test/data/import/firefox/48.0.2/places.sqlite View Binary file 0 comments Download
M chrome/utility/importer/firefox_importer.h View 4 chunks +3 lines, -31 lines 0 comments Download
M chrome/utility/importer/firefox_importer.cc View 7 chunks +26 lines, -245 lines 0 comments Download
M chrome/utility/importer/firefox_importer_unittest.cc View 3 chunks +222 lines, -2 lines 0 comments Download
A chrome/utility/importer/firefox_places_factory.h View 1 chunk +105 lines, -0 lines 0 comments Download
A chrome/utility/importer/firefox_places_factory.cc View 1 chunk +310 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
Ilya Sherman
Hmm, is there much value in continuing to support older Firefox schemas? I'm not convinced ...
4 years ago (2016-12-09 00:52:29 UTC) #4
kszatan
The main problem that this CL should solve is the situation when FF profile's schema ...
4 years ago (2016-12-19 11:16:17 UTC) #5
Ilya Sherman
On 2016/12/19 11:16:17, kszatan wrote: > The main problem that this CL should solve is ...
4 years ago (2016-12-19 21:36:03 UTC) #6
Ilya Sherman
On 2016/12/19 21:36:03, Ilya Sherman wrote: > On 2016/12/19 11:16:17, kszatan wrote: > > The ...
4 years ago (2016-12-19 21:36:52 UTC) #7
kszatan
On 2016/12/19 21:36:03, Ilya Sherman (Away De.29-Ja.4) wrote: > I suspect that it's fine to ...
4 years ago (2016-12-20 08:55:25 UTC) #8
Ilya Sherman
4 years ago (2016-12-21 03:35:45 UTC) #9
Message was sent while issue was closed.
On 2016/12/20 08:55:25, kszatan wrote:
> On 2016/12/19 21:36:03, Ilya Sherman (Away De.29-Ja.4) wrote:
> > I suspect that it's fine to only handle the latest schema, TBH.  It usually
> > takes us O(months) to notice that the schema has changed, and update to it. 
> By
> > then, most users are on the newest schema;
> Ok, in that case, I'll focus on re-enabling importer browser tests and fixing
> importing of passwords. I'll do that in another CL.

Sounds great -- thank you =)

Powered by Google App Engine
This is Rietveld 408576698