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

Issue 117123002: Fixing Firefox 21+ password import (Closed)

Created:
7 years ago by mpawlowski
Modified:
6 years, 11 months ago
Reviewers:
Ilya Sherman, jeremy
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Fixing Firefox 21+ password import Firefox 21 changed the directory layout within Firefox.app. Some libs and content were moved from Firefox.app/Content/MacOS to Firefox.app/Content/MacOS/browser, and this new location was read as app_path_ by the importer. However, libnss3.dylib is still in Firefox.app/Content/MacOS. Changing utils to set app_path_ based on compatibility.ini's LastPlatformDir (which always has Firefox.app/Content/MacOS) instead of LastAppDir (which was changed to Firefox.app/Content/MacOS/browser). 'searchplugins' subdir was moved into the new 'browser' subdir so search engine importing code has to be adjusted. Enabling Firefox importer browser tests on Mac. They didn't work because they attempted to use Windows nss libraries. They should have been using Mac-specific libraries which are already available for Mac unit tests. BUG=321112, 48007 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=245198

Patch Set 1 #

Total comments: 7

Patch Set 2 : Tweaks in GetSearchEnginesXMLData #

Total comments: 5

Patch Set 3 : Curly braces around multi-line if #

Patch Set 4 : Build path up explicitly from .app #

Total comments: 5

Patch Set 5 : Build path using base::FilePath functionality #

Patch Set 6 : Compilation fix #

Patch Set 7 : Revert enabling browser tests on Mac #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -2 lines) Patch
M chrome/common/importer/firefox_importer_utils.cc View 1 2 3 4 3 chunks +43 lines, -0 lines 0 comments Download
M chrome/utility/importer/firefox_importer.cc View 1 2 3 4 5 2 chunks +18 lines, -2 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
mpawlowski
Less changes needed than in the previous attempt :)
7 years ago (2013-12-17 11:05:41 UTC) #1
jeremy
Thanks for digging into this! https://codereview.chromium.org/117123002/diff/1/chrome/browser/importer/firefox_importer_browsertest.cc File chrome/browser/importer/firefox_importer_browsertest.cc (right): https://codereview.chromium.org/117123002/diff/1/chrome/browser/importer/firefox_importer_browsertest.cc#newcode239 chrome/browser/importer/firefox_importer_browsertest.cc:239: data_path = data_path.AppendASCII("firefox3_nss_mac"); I ...
7 years ago (2013-12-17 11:48:08 UTC) #2
mpawlowski
https://codereview.chromium.org/117123002/diff/1/chrome/browser/importer/firefox_importer_browsertest.cc File chrome/browser/importer/firefox_importer_browsertest.cc (right): https://codereview.chromium.org/117123002/diff/1/chrome/browser/importer/firefox_importer_browsertest.cc#newcode239 chrome/browser/importer/firefox_importer_browsertest.cc:239: data_path = data_path.AppendASCII("firefox3_nss_mac"); On 2013/12/17 11:48:09, jeremy wrote: > ...
7 years ago (2013-12-17 12:31:25 UTC) #3
Ilya Sherman
https://codereview.chromium.org/117123002/diff/20001/chrome/common/importer/firefox_importer_utils.cc File chrome/common/importer/firefox_importer_utils.cc (right): https://codereview.chromium.org/117123002/diff/20001/chrome/common/importer/firefox_importer_utils.cc#newcode118 chrome/common/importer/firefox_importer_utils.cc:118: } else if (key == "LastPlatformDir") { Two questions: ...
7 years ago (2013-12-17 23:04:14 UTC) #4
mpawlowski
https://codereview.chromium.org/117123002/diff/20001/chrome/common/importer/firefox_importer_utils.cc File chrome/common/importer/firefox_importer_utils.cc (right): https://codereview.chromium.org/117123002/diff/20001/chrome/common/importer/firefox_importer_utils.cc#newcode118 chrome/common/importer/firefox_importer_utils.cc:118: } else if (key == "LastPlatformDir") { On 2013/12/17 ...
7 years ago (2013-12-18 08:50:29 UTC) #5
Ilya Sherman
Thanks! LGTM for my drive-by. Please also wait for Jeremy's LG in case he has ...
7 years ago (2013-12-18 20:04:20 UTC) #6
jeremy
https://codereview.chromium.org/117123002/diff/20001/chrome/common/importer/firefox_importer_utils.cc File chrome/common/importer/firefox_importer_utils.cc (right): https://codereview.chromium.org/117123002/diff/20001/chrome/common/importer/firefox_importer_utils.cc#newcode118 chrome/common/importer/firefox_importer_utils.cc:118: } else if (key == "LastPlatformDir") { I understand ...
7 years ago (2013-12-18 20:16:08 UTC) #7
mpawlowski
On 2013/12/18 20:16:08, jeremy wrote: > https://codereview.chromium.org/117123002/diff/20001/chrome/common/importer/firefox_importer_utils.cc > File chrome/common/importer/firefox_importer_utils.cc (right): > > https://codereview.chromium.org/117123002/diff/20001/chrome/common/importer/firefox_importer_utils.cc#newcode118 > ...
7 years ago (2013-12-19 08:27:03 UTC) #8
jeremy
On 2013/12/19 08:27:03, mpawlowski wrote: > As I've said, LastPlatformDir is (from what I can ...
7 years ago (2013-12-19 09:04:07 UTC) #9
mpawlowski
Just a heads-up, the requested changes have been submitted and await reviewing.
6 years, 11 months ago (2014-01-07 08:57:03 UTC) #10
jeremy
CL looks like it's missing FF dlls? https://codereview.chromium.org/117123002/diff/60001/chrome/common/importer/firefox_importer_utils.cc File chrome/common/importer/firefox_importer_utils.cc (right): https://codereview.chromium.org/117123002/diff/60001/chrome/common/importer/firefox_importer_utils.cc#newcode109 chrome/common/importer/firefox_importer_utils.cc:109: std::string& line ...
6 years, 11 months ago (2014-01-07 12:37:27 UTC) #11
mpawlowski
On 2014/01/07 12:37:27, jeremy wrote: > CL looks like it's missing FF dlls? They were ...
6 years, 11 months ago (2014-01-07 12:43:41 UTC) #12
mpawlowski
bump?
6 years, 11 months ago (2014-01-14 09:53:57 UTC) #13
jeremy
LGTM
6 years, 11 months ago (2014-01-14 10:05:30 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mpawlowski@opera.com/117123002/130001
6 years, 11 months ago (2014-01-14 10:18:27 UTC) #15
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=245959
6 years, 11 months ago (2014-01-14 10:44:55 UTC) #16
mpawlowski
On 2014/01/14 10:44:55, I haz the power (commit-bot) wrote: > Retried try job too often ...
6 years, 11 months ago (2014-01-14 12:23:25 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mpawlowski@opera.com/117123002/390001
6 years, 11 months ago (2014-01-14 12:55:49 UTC) #18
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=211450
6 years, 11 months ago (2014-01-14 14:46:49 UTC) #19
mpawlowski
I've looked at why the Mac browser tests fail and apparently they were disabled for ...
6 years, 11 months ago (2014-01-15 09:43:42 UTC) #20
jeremy
IMHO land this patch as is with the tests disabled and then add the firefox ...
6 years, 11 months ago (2014-01-15 09:54:28 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mpawlowski@opera.com/117123002/600001
6 years, 11 months ago (2014-01-15 12:56:10 UTC) #22
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=211996
6 years, 11 months ago (2014-01-15 17:35:55 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mpawlowski@opera.com/117123002/600001
6 years, 11 months ago (2014-01-16 08:19:22 UTC) #24
commit-bot: I haz the power
6 years, 11 months ago (2014-01-16 15:47:11 UTC) #25
Message was sent while issue was closed.
Change committed as 245198

Powered by Google App Engine
This is Rietveld 408576698