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

Issue 1465853002: Implement support for importing favorites from Edge on Windows 10. (Closed)

Created:
5 years, 1 month ago by forshaw
Modified:
5 years ago
CC:
asvitkine+watch_chromium.org, chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement support for importing favorites from Edge on Windows 10. This CL adds support for importing favorties from the Edge browser on Windows 10. It supports the old style importation from internet shortcuts (without supporting order due to structure changes) as well as importing from Edge 13 database format. BUG=539746 Committed: https://crrev.com/57e648081288644895bf6f5fe184597a63282336 Cr-Commit-Position: refs/heads/master@{#362977}

Patch Set 1 #

Patch Set 2 : Added browser test and test data. #

Patch Set 3 : Renamed URL file to fix patch issue. #

Patch Set 4 : Testing binary support. #

Patch Set 5 : Gzipped Database File to Reduce Impact. #

Patch Set 6 : Set favicon for legacy import test #

Patch Set 7 : Fix another CLANG warning #

Total comments: 110

Patch Set 8 : Updates from review #

Patch Set 9 : Fix another clang problem #

Total comments: 20

Patch Set 10 : Fixed nits and renamed importer registry overrider #

Total comments: 4

Patch Set 11 : Split out database reader and added unit tests #

Patch Set 12 : Added missing include files #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+1669 lines, -138 lines) Patch
M chrome/app/bookmarks_strings.grdp View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
A chrome/browser/importer/edge_importer_browsertest_win.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +295 lines, -0 lines 0 comments Download
M chrome/browser/importer/ie_importer_browsertest_win.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/importer/importer_list.cc View 1 2 3 4 5 6 7 3 chunks +24 lines, -2 lines 0 comments Download
M chrome/browser/importer/importer_uma.cc View 1 2 3 4 5 6 7 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_utility.gypi View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -0 lines 2 comments Download
A chrome/common/importer/edge_importer_utils_win.h View 1 2 3 4 5 6 7 8 9 1 chunk +28 lines, -0 lines 0 comments Download
A chrome/common/importer/edge_importer_utils_win.cc View 1 2 3 4 5 6 7 8 9 1 chunk +87 lines, -0 lines 0 comments Download
D chrome/common/importer/ie_importer_test_registry_overrider_win.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -34 lines 0 comments Download
D chrome/common/importer/ie_importer_test_registry_overrider_win.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -70 lines 0 comments Download
M chrome/common/importer/ie_importer_utils_win.h View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/common/importer/ie_importer_utils_win.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
A + chrome/common/importer/importer_test_registry_overrider_win.h View 1 2 3 4 5 6 7 8 9 2 chunks +10 lines, -10 lines 0 comments Download
A + chrome/common/importer/importer_test_registry_overrider_win.cc View 1 2 3 4 5 6 7 8 9 4 chunks +5 lines, -5 lines 0 comments Download
M chrome/common/importer/importer_type.h View 1 chunk +4 lines, -1 line 0 comments Download
M chrome/common/importer/profile_import_process_param_traits_macros.h View 1 chunk +6 lines, -0 lines 0 comments Download
A chrome/test/data/edge_database_reader/random.edb.gz View 1 2 3 4 5 6 7 8 9 10 Binary file 0 comments Download
A chrome/test/data/edge_database_reader/testdata.edb.gz View 1 2 3 4 5 6 7 8 9 10 Binary file 0 comments Download
A chrome/test/data/edge_profile/DataStore/Data/nouser1/120712-0049/DBStore/spartan.edb.gz View 1 2 3 4 Binary file 0 comments Download
A chrome/test/data/edge_profile/DataStore/Data/nouser1/120712-0049/Favorites/dummy.ico View 1 2 3 4 5 6 7 Binary file 0 comments Download
A chrome/test/data/edge_profile/Favorites/Google.url View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/utility/BUILD.gn View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/utility/importer/DEPS View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
A chrome/utility/importer/edge_database_reader_unittest_win.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +448 lines, -0 lines 2 comments Download
A chrome/utility/importer/edge_database_reader_win.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +95 lines, -0 lines 0 comments Download
A chrome/utility/importer/edge_database_reader_win.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +257 lines, -0 lines 2 comments Download
A chrome/utility/importer/edge_importer_win.h View 1 2 3 4 5 6 7 1 chunk +43 lines, -0 lines 0 comments Download
A chrome/utility/importer/edge_importer_win.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +288 lines, -0 lines 4 comments Download
M chrome/utility/importer/ie_importer_win.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -1 line 0 comments Download
M chrome/utility/importer/ie_importer_win.cc View 1 2 3 4 5 6 7 5 chunks +19 lines, -6 lines 0 comments Download
M chrome/utility/importer/importer_creator.cc View 2 chunks +7 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 34 (13 generated)
forshaw
isherman@: Please can you review changes in both the metrics code as well as importer ...
5 years ago (2015-11-25 14:22:19 UTC) #6
Ilya Sherman
Whew! That's a large CL =) It would be nice to add some more thorough ...
5 years ago (2015-11-26 02:04:45 UTC) #7
Ilya Sherman
Oh, also, I should note: I am not a Windows programmer, and so don't feel ...
5 years ago (2015-11-26 02:07:18 UTC) #8
jochen (gone - plz use gerrit)
+jschuh because security and windows and stuff
5 years ago (2015-11-26 13:19:49 UTC) #10
forshaw
Made updates from review, PTAL. https://codereview.chromium.org/1465853002/diff/200001/chrome/browser/importer/edge_importer_browsertest_win.cc File chrome/browser/importer/edge_importer_browsertest_win.cc (right): https://codereview.chromium.org/1465853002/diff/200001/chrome/browser/importer/edge_importer_browsertest_win.cc#newcode45 chrome/browser/importer/edge_importer_browsertest_win.cc:45: : ProfileWriter(NULL), On 2015/11/26 ...
5 years ago (2015-11-30 12:57:59 UTC) #11
forshaw
ananta@ any chance you could check out the Windows specific code (which is mostly in ...
5 years ago (2015-11-30 17:12:22 UTC) #13
Ilya Sherman
Thanks! LGTM % the remaining nits, though I'd still like ananta@ or someone else quite ...
5 years ago (2015-12-01 07:31:18 UTC) #14
forshaw
Thanks isherman@ for the review, it's very much appreciated. I've fixed the nits and renamed ...
5 years ago (2015-12-01 11:12:13 UTC) #15
ananta
https://codereview.chromium.org/1465853002/diff/260001/chrome/common/importer/edge_importer_utils_win.cc File chrome/common/importer/edge_importer_utils_win.cc (right): https://codereview.chromium.org/1465853002/diff/260001/chrome/common/importer/edge_importer_utils_win.cc#newcode74 chrome/common/importer/edge_importer_utils_win.cc:74: if (key.ReadValueDW(L"FavoritesESEEnabled", &ese_enabled) == ERROR_SUCCESS) This defaults to true? ...
5 years ago (2015-12-01 19:36:35 UTC) #16
forshaw
ananta@ I've split out the edge database classes and added a set of unit tests ...
5 years ago (2015-12-02 18:21:54 UTC) #18
ananta
lgtm % nits/questions https://codereview.chromium.org/1465853002/diff/320001/chrome/utility/importer/edge_database_reader_unittest_win.cc File chrome/utility/importer/edge_database_reader_unittest_win.cc (right): https://codereview.chromium.org/1465853002/diff/320001/chrome/utility/importer/edge_database_reader_unittest_win.cc#newcode21 chrome/utility/importer/edge_database_reader_unittest_win.cc:21: Thanks for adding these tests. https://codereview.chromium.org/1465853002/diff/320001/chrome/utility/importer/edge_database_reader_win.cc ...
5 years ago (2015-12-02 21:33:11 UTC) #19
forshaw
ananta@ thanks for the review. If you want me to really sort out the nits ...
5 years ago (2015-12-02 21:56:12 UTC) #20
Ilya Sherman
https://codereview.chromium.org/1465853002/diff/320001/chrome/utility/importer/edge_importer_win.cc File chrome/utility/importer/edge_importer_win.cc (right): https://codereview.chromium.org/1465853002/diff/320001/chrome/utility/importer/edge_importer_win.cc#newcode214 chrome/utility/importer/edge_importer_win.cc:214: DVLOG(1) << "Error opening database " << database.GetErrorMessage(); On ...
5 years ago (2015-12-02 21:59:32 UTC) #21
forshaw
On 2015/12/02 21:59:32, Ilya Sherman wrote: > https://codereview.chromium.org/1465853002/diff/320001/chrome/utility/importer/edge_importer_win.cc > File chrome/utility/importer/edge_importer_win.cc (right): > > https://codereview.chromium.org/1465853002/diff/320001/chrome/utility/importer/edge_importer_win.cc#newcode214 ...
5 years ago (2015-12-02 22:01:35 UTC) #22
Ilya Sherman
On 2015/12/02 22:01:35, forshaw wrote: > On 2015/12/02 21:59:32, Ilya Sherman wrote: > > > ...
5 years ago (2015-12-02 22:03:30 UTC) #23
Nico
.gypi and .gn files lgtm https://codereview.chromium.org/1465853002/diff/320001/chrome/chrome_utility.gypi File chrome/chrome_utility.gypi (right): https://codereview.chromium.org/1465853002/diff/320001/chrome/chrome_utility.gypi#newcode154 chrome/chrome_utility.gypi:154: 'esent.lib', (why isn't this ...
5 years ago (2015-12-02 22:08:31 UTC) #25
forshaw
Thanks everyone for the reviews, it's much appreciated.
5 years ago (2015-12-03 12:01:11 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1465853002/320001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1465853002/320001
5 years ago (2015-12-03 12:02:48 UTC) #30
commit-bot: I haz the power
Committed patchset #12 (id:320001)
5 years ago (2015-12-03 14:08:27 UTC) #31
commit-bot: I haz the power
Patchset 12 (id:??) landed as https://crrev.com/57e648081288644895bf6f5fe184597a63282336 Cr-Commit-Position: refs/heads/master@{#362977}
5 years ago (2015-12-03 14:09:28 UTC) #33
Nico
5 years ago (2015-12-09 18:23:06 UTC) #34
Message was sent while issue was closed.
https://codereview.chromium.org/1465853002/diff/320001/chrome/utility/importe...
File chrome/utility/importer/edge_database_reader_unittest_win.cc (right):

https://codereview.chromium.org/1465853002/diff/320001/chrome/utility/importe...
chrome/utility/importer/edge_database_reader_unittest_win.cc:237:
EXPECT_EQ(row_count, 16);
FYI: It's EXPECT_EQ(expected, actual), not EXPECT_EQ(actual, expected). This
matters for the "expected $foo but got $bar" message when the test fails.

Powered by Google App Engine
This is Rietveld 408576698