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

Unified Diff: chrome/utility/importer/nss_decryptor_win.cc

Issue 23799008: Fix import Firefox passwords on Windows (silent failure); plds4.dll and nspr4.dll no longer exist (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/utility/importer/nss_decryptor_win.cc
===================================================================
--- chrome/utility/importer/nss_decryptor_win.cc (revision 221155)
+++ chrome/utility/importer/nss_decryptor_win.cc (working copy)
@@ -87,6 +87,12 @@
HMODULE plds4_dll = GetModuleHandle(kPLDS4Library);
HMODULE nspr4_dll = GetModuleHandle(kNSPR4Library);
+ // On Firefox 22 and higher, NSPR is part of nss3.dll rather than separate
+ // DLLs.
wtc 2013/09/18 18:29:05 For future reference: In Firefox 22, the NSPR and
+ if (plds4_dll == NULL) {
+ plds4_dll = nss3_dll_;
+ nspr4_dll = nss3_dll_;
+ }
return InitNSS(db_path, plds4_dll, nspr4_dll);
}
@@ -106,12 +112,6 @@
bool NSSDecryptor::InitNSS(const base::FilePath& db_path,
base::NativeLibrary plds4_dll,
base::NativeLibrary nspr4_dll) {
- // NSPR DLLs are already loaded now.
- if (plds4_dll == NULL || nspr4_dll == NULL) {
- Free();
- return false;
- }
Ilya Sherman 2013/09/17 06:14:36 nit: Are you sure that this code is no longer nece
wtc 2013/09/18 00:03:47 Yes. This function (InitNSS) is only called on lin
-
// Gets the function address.
NSS_Init = (NSSInitFunc)
base::GetFunctionPointerFromNativeLibrary(nss3_dll_, "NSS_Init");
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698