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

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

Issue 18501013: Move most importer code to chrome/utility/importer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: another gyp attempt Created 7 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 side-by-side diff with in-line comments
Download patch
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
deleted file mode 100644
index 10171fdc310e1aa0e8a8a143b6141bcbd4a62dd0..0000000000000000000000000000000000000000
--- a/chrome/browser/importer/firefox_importer_utils_mac.mm
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include <Cocoa/Cocoa.h>
-#include <sys/param.h>
-
-#include "chrome/browser/importer/firefox_importer_utils.h"
-
-#include "base/file_util.h"
-#include "base/mac/foundation_util.h"
-#include "base/path_service.h"
-
-base::FilePath GetProfilesINI() {
- base::FilePath app_data_path;
- if (!PathService::Get(base::DIR_APP_DATA, &app_data_path)) {
- return base::FilePath();
- }
- base::FilePath ini_file =
- app_data_path.Append("Firefox").Append("profiles.ini");
- if (!base::PathExists(ini_file)) {
- return base::FilePath();
- }
- return ini_file;
-}
-
-base::FilePath GetFirefoxDylibPath() {
- CFURLRef appURL = nil;
- if (LSFindApplicationForInfo(kLSUnknownCreator,
- CFSTR("org.mozilla.firefox"),
- NULL,
- NULL,
- &appURL) != noErr) {
- return base::FilePath();
- }
- NSBundle *ff_bundle =
- [NSBundle bundleWithPath:[base::mac::CFToNSCast(appURL) path]];
- CFRelease(appURL);
- NSString *ff_library_path =
- [[ff_bundle executablePath] stringByDeletingLastPathComponent];
- char buf[MAXPATHLEN];
- if (![ff_library_path getFileSystemRepresentation:buf maxLength:sizeof(buf)])
- return base::FilePath();
- return base::FilePath(buf);
-}
« no previous file with comments | « chrome/browser/importer/firefox_importer_utils_linux.cc ('k') | chrome/browser/importer/firefox_importer_utils_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698