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

Side by Side Diff: chrome/browser/importer/firefox_importer_utils_mac.cc

Issue 159165: Split NSSDecryptor out into platform specific files.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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 unified diff | Download patch | Annotate | Revision Log
Property Changes:
Name: svn:eol-style
+ LF
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/importer/firefox_importer_utils.h" 5 #include "chrome/browser/importer/firefox_importer_utils.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/logging.h"
9 8
10 FilePath GetProfilesINI() { 9 FilePath GetProfilesINI() {
11 FilePath ini_file; 10 FilePath ini_file;
12 // ~/Library/Application Support/Firefox on OS X. 11 // ~/Library/Application Support/Firefox on OS X.
13 // This should be changed to NSSearchPathForDirectoriesInDomains(). 12 // This should be changed to NSSearchPathForDirectoriesInDomains().
14 // See bug http://code.google.com/p/chromium/issues/detail?id=15455 13 // See bug http://code.google.com/p/chromium/issues/detail?id=15455
15 const char *home = getenv("HOME"); 14 const char *home = getenv("HOME");
16 if (home && home[0]) { 15 if (home && home[0]) {
17 ini_file = FilePath(home).Append( 16 ini_file = FilePath(home).Append(
18 "Library/Application Support/Firefox/profiles.ini"); 17 "Library/Application Support/Firefox/profiles.ini");
19 } 18 }
20 if (file_util::PathExists(ini_file)) 19 if (file_util::PathExists(ini_file))
21 return ini_file; 20 return ini_file;
22 21
23 return FilePath(); 22 return FilePath();
24 } 23 }
25
26 // static
27 const wchar_t NSSDecryptor::kNSS3Library[] = L"libnss3.dylib";
28 const wchar_t NSSDecryptor::kSoftokn3Library[] = L"libsoftokn3.dylib";
29 const wchar_t NSSDecryptor::kPLDS4Library[] = L"libplds4.dylib";
30 const wchar_t NSSDecryptor::kNSPR4Library[] = L"libnspr4.dylib";
31
32 bool NSSDecryptor::Init(const std::wstring& dll_path,
33 const std::wstring& db_path) {
34 // TODO(port): Load the NSS libraries and call InitNSS()
35 // http://code.google.com/p/chromium/issues/detail?id=15455
36 NOTIMPLEMENTED();
37 return false;
38 }
OLDNEW
« no previous file with comments | « chrome/browser/importer/firefox_importer_utils_linux.cc ('k') | chrome/browser/importer/firefox_importer_utils_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698