summaryrefslogtreecommitdiffstats
path: root/chrome/browser/importer/firefox2_importer.cc
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-10 03:41:45 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-10 03:41:45 +0000
commit650b2d5cdcab7d2c473c00d15b9f343f3a3405bb (patch)
tree1343ea25d7d6086ac1279e1e0e32562b3b9b3477 /chrome/browser/importer/firefox2_importer.cc
parent6f3638708ff440a2e80662ce49acc41cdad51ecd (diff)
downloadchromium_src-650b2d5cdcab7d2c473c00d15b9f343f3a3405bb.zip
chromium_src-650b2d5cdcab7d2c473c00d15b9f343f3a3405bb.tar.gz
chromium_src-650b2d5cdcab7d2c473c00d15b9f343f3a3405bb.tar.bz2
Merge branch 'master' into file_path_browser
version control markers Merge branch 'master' into file_path_browser remove version control Fix typo Merge branch 'master' into file_path_browser Conflicts: chrome/browser/intents/native_services_browsertest.cc chrome/browser/ui/intents/native_file_picker_service.cc Merge branch 'master' into file_path_browser Conflicts: chrome/browser/chromeos/drive/drive_file_system.cc chrome/browser/chromeos/drive/drive_file_system.h chrome/browser/chromeos/drive/drive_file_system_interface.h chrome/browser/chromeos/drive/drive_file_system_unittest.cc chrome/browser/chromeos/drive/file_system/drive_operations.cc chrome/browser/chromeos/login/wallpaper_manager.cc chrome/browser/chromeos/login/wallpaper_manager.h chrome/browser/chromeos/login/wallpaper_manager_browsertest.cc chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.cc chrome/browser/google_apis/gdata_wapi_operations.cc chrome/browser/google_apis/gdata_wapi_operations.h chrome/browser/google_apis/gdata_wapi_operations_unittest.cc chrome/browser/profiles/off_the_record_profile_impl.cc chrome/browser/profiles/off_the_record_profile_impl.h chrome/browser/profiles/profile_impl.cc chrome/browser/profiles/profile_impl.h chrome/browser/profiles/profile_impl_io_data.cc chrome/browser/profiles/profile_impl_io_data.h chrome/browser/sync_file_system/drive_file_sync_client_unittest.cc chrome/browser/ui/webui/options/manage_profile_handler.cc Long lines long lines some long lines. long lines long lines Beginning of lines. Rename FilePath -> base::FilePath in chrome/browser git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181638 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/importer/firefox2_importer.cc')
-rw-r--r--chrome/browser/importer/firefox2_importer.cc26
1 files changed, 13 insertions, 13 deletions
diff --git a/chrome/browser/importer/firefox2_importer.cc b/chrome/browser/importer/firefox2_importer.cc
index d524b64..8e88d23 100644
--- a/chrome/browser/importer/firefox2_importer.cc
+++ b/chrome/browser/importer/firefox2_importer.cc
@@ -90,9 +90,9 @@ void Firefox2Importer::StartImport(
}
// static
-void Firefox2Importer::LoadDefaultBookmarks(const FilePath& app_path,
+void Firefox2Importer::LoadDefaultBookmarks(const base::FilePath& app_path,
std::set<GURL> *urls) {
- FilePath file = app_path.AppendASCII("defaults")
+ base::FilePath file = app_path.AppendASCII("defaults")
.AppendASCII("profile")
.AppendASCII("bookmarks.html");
@@ -145,7 +145,7 @@ TemplateURL* Firefox2Importer::CreateTemplateURL(const string16& title,
// static
void Firefox2Importer::ImportBookmarksFile(
- const FilePath& file_path,
+ const base::FilePath& file_path,
const std::set<GURL>& default_urls,
Importer* importer,
std::vector<ProfileWriter::BookmarkEntry>* bookmarks,
@@ -299,7 +299,7 @@ void Firefox2Importer::ImportBookmarks() {
std::vector<ProfileWriter::BookmarkEntry> bookmarks, toolbar_bookmarks;
std::vector<TemplateURL*> template_urls;
std::vector<history::ImportedFaviconUsage> favicons;
- FilePath file = source_path_;
+ base::FilePath file = source_path_;
if (!parsing_bookmarks_html_file_)
file = file.AppendASCII("bookmarks.html");
@@ -331,7 +331,7 @@ void Firefox2Importer::ImportPasswords() {
// Firefox 2 uses signons2.txt to store the pssswords. If it doesn't
// exist, we try to find its older version.
- FilePath file = source_path_.AppendASCII("signons2.txt");
+ base::FilePath file = source_path_.AppendASCII("signons2.txt");
if (!file_util::PathExists(file)) {
file = source_path_.AppendASCII("signons.txt");
}
@@ -349,12 +349,12 @@ void Firefox2Importer::ImportPasswords() {
}
void Firefox2Importer::ImportHistory() {
- FilePath file = source_path_.AppendASCII("history.dat");
+ base::FilePath file = source_path_.AppendASCII("history.dat");
ImportHistoryFromFirefox2(file, bridge_);
}
void Firefox2Importer::ImportSearchEngines() {
- std::vector<FilePath> files;
+ std::vector<base::FilePath> files;
GetSearchEnginesXMLFiles(&files);
std::vector<TemplateURL*> search_engines;
@@ -371,15 +371,15 @@ void Firefox2Importer::ImportHomepage() {
}
void Firefox2Importer::GetSearchEnginesXMLFiles(
- std::vector<FilePath>* files) {
+ std::vector<base::FilePath>* files) {
// Search engines are contained in XML files in a searchplugins directory that
// can be found in 2 locations:
// - Firefox install dir (default search engines)
// - the profile dir (user added search engines)
- FilePath dir = app_path_.AppendASCII("searchplugins");
+ base::FilePath dir = app_path_.AppendASCII("searchplugins");
FindXMLFilesInDir(dir, files);
- FilePath profile_dir = source_path_.AppendASCII("searchplugins");
+ base::FilePath profile_dir = source_path_.AppendASCII("searchplugins");
FindXMLFilesInDir(profile_dir, files);
}
@@ -622,12 +622,12 @@ void Firefox2Importer::HTMLUnescape(string16* text) {
// static
void Firefox2Importer::FindXMLFilesInDir(
- const FilePath& dir,
- std::vector<FilePath>* xml_files) {
+ const base::FilePath& dir,
+ std::vector<base::FilePath>* xml_files) {
file_util::FileEnumerator file_enum(dir, false,
file_util::FileEnumerator::FILES,
FILE_PATH_LITERAL("*.xml"));
- FilePath file(file_enum.Next());
+ base::FilePath file(file_enum.Next());
while (!file.empty()) {
xml_files->push_back(file);
file = file_enum.Next();