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

Issue 160077: Linux: Fix NSSDecryptor to import Firefox passwords from the user database correctly. (Closed)

Created:
11 years, 5 months ago by willchan no longer on Chromium
Modified:
9 years, 7 months ago
Reviewers:
kuchhal, wtc
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Linux: Fix NSSDecryptor to decrypt Firefox passwords using correct user database. Note that we're deliberately leaving NSS user databases open until NSS shutdown since closing and reopening it does not work correctly (NSS bug). Also, enable the firefox_importer_unittest.cc for linux. Move out some tests to firefox_profile_unittest.cc. Fix lock file deletion in the posix implementation of FirefoxProfileLock. BUG=http://crbug.com/17490 TEST=Import bookmark and settings, verify that passwords are indeed imported. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=21792

Patch Set 1 #

Total comments: 10

Patch Set 2 : Address most of wtc's comments. #

Total comments: 2

Patch Set 3 : Undo change to firefox_profile_lock_posix.cc. Fix unittest. #

Patch Set 4 : Add back assertions guarded by #if. #

Patch Set 5 : Add comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+318 lines, -91 lines) Patch
M chrome/browser/importer/firefox_importer_unittest.cc View 1 2 chunks +0 lines, -78 lines 0 comments Download
M chrome/browser/importer/firefox_profile_lock.h View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/importer/firefox_profile_lock_unittest.cc View 1 2 3 4 2 chunks +89 lines, -0 lines 0 comments Download
M chrome/browser/importer/nss_decryptor.cc View 1 2 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/importer/nss_decryptor_linux.h View 1 3 chunks +11 lines, -1 line 0 comments Download
M chrome/browser/importer/nss_decryptor_linux.cc View 1 1 chunk +201 lines, -4 lines 0 comments Download
M chrome/browser/importer/nss_decryptor_mac.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/importer/nss_decryptor_win.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/chrome.gyp View 1 2 3 2 chunks +1 line, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
willchan no longer on Chromium
kuchhal: please review the FirefoxProfileLock related files wtc: Please review everything else.
11 years, 5 months ago (2009-07-24 00:45:00 UTC) #1
wtc
LGTM after fixing the following issues. Thanks a lot for fixing this bug and moving ...
11 years, 5 months ago (2009-07-24 19:01:45 UTC) #2
willchan no longer on Chromium
I've fixed all your comments except the FirefoxProfileLock ones. I admit I don't know what ...
11 years, 5 months ago (2009-07-24 19:45:04 UTC) #3
kuchhal
Yes we are not supposed to delete the original lock file where we only use ...
11 years, 5 months ago (2009-07-24 20:01:43 UTC) #4
wtc
LGTM on Patch Set 2. The remaining issue is the deletion of the fcntl lock ...
11 years, 5 months ago (2009-07-24 20:56:50 UTC) #5
willchan no longer on Chromium
I've undone the change to firefox_profile_lock_posix.cc and deleted the incorrect assertions in the test.
11 years, 5 months ago (2009-07-27 20:50:25 UTC) #6
wtc
LGTM. Thanks! http://codereview.chromium.org/160077/diff/1016/19 File chrome/browser/importer/firefox_profile_lock_unittest.cc (right): http://codereview.chromium.org/160077/diff/1016/19#newcode61 Line 61: EXPECT_FALSE(file_util::PathExists(lock_file_path)); Another option is to add ...
11 years, 5 months ago (2009-07-27 22:05:04 UTC) #7
willchan no longer on Chromium
http://codereview.chromium.org/160077/diff/1016/19 File chrome/browser/importer/firefox_profile_lock_unittest.cc (right): http://codereview.chromium.org/160077/diff/1016/19#newcode61 Line 61: EXPECT_FALSE(file_util::PathExists(lock_file_path)); On 2009/07/27 22:05:04, wtc wrote: > Another ...
11 years, 5 months ago (2009-07-28 01:07:49 UTC) #8
wtc
11 years, 5 months ago (2009-07-28 01:18:35 UTC) #9
LGTM.  Thanks!

Powered by Google App Engine
This is Rietveld 408576698