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

Unified Diff: chrome/browser/importer/firefox_importer_utils_mac.mm

Issue 174259: Recommit "Bring up Firefox Password Import Unittest on OS X." (Closed)
Patch Set: Created 11 years, 4 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 | « chrome/browser/importer/firefox_importer_utils.h ('k') | chrome/browser/importer/nss_decryptor_mac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/importer/firefox_importer_utils_mac.mm
diff --git a/chrome/browser/importer/firefox_importer_utils_mac.mm b/chrome/browser/importer/firefox_importer_utils_mac.mm
index 5fd24b006a5e32ae10a90647590df553aaaad3a0..bea6b71e7a38bef72d80e8136e06917dc0676685 100644
--- a/chrome/browser/importer/firefox_importer_utils_mac.mm
+++ b/chrome/browser/importer/firefox_importer_utils_mac.mm
@@ -23,9 +23,27 @@ FilePath GetProfilesINI() {
ini_file = FilePath([profiles_ini fileSystemRepresentation]);
}
}
-
+
if (file_util::PathExists(ini_file))
return ini_file;
return FilePath();
}
+
+FilePath GetFirefoxDylibPath() {
+ CFURLRef appURL = nil;
+ if (LSFindApplicationForInfo(kLSUnknownCreator,
+ CFSTR("org.mozilla.firefox"),
+ NULL,
+ NULL,
+ &appURL) != noErr) {
+ return FilePath();
+ }
+ NSBundle *ff_bundle = [NSBundle
+ bundleWithPath:[reinterpret_cast<const NSURL*>(appURL) path]];
+ CFRelease(appURL);
+ NSString *ff_library_path = [[ff_bundle executablePath]
+ stringByDeletingLastPathComponent];
+
+ return FilePath([ff_library_path fileSystemRepresentation]);
+}
« no previous file with comments | « chrome/browser/importer/firefox_importer_utils.h ('k') | chrome/browser/importer/nss_decryptor_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698