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

Unified Diff: chrome/browser/importer/firefox3_importer.cc

Issue 18286004: Move PathExists to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/firefox3_importer.cc
diff --git a/chrome/browser/importer/firefox3_importer.cc b/chrome/browser/importer/firefox3_importer.cc
index d8cc90c1dcef05598f37b73635288d478c38cc7b..1cfdbce95a33d098cbcbf3e7ed2bc016e5109306 100644
--- a/chrome/browser/importer/firefox3_importer.cc
+++ b/chrome/browser/importer/firefox3_importer.cc
@@ -131,7 +131,7 @@ void Firefox3Importer::StartImport(
void Firefox3Importer::ImportHistory() {
base::FilePath file = source_path_.AppendASCII("places.sqlite");
- if (!file_util::PathExists(file))
+ if (!base::PathExists(file))
return;
sql::Connection db;
@@ -175,7 +175,7 @@ void Firefox3Importer::ImportHistory() {
void Firefox3Importer::ImportBookmarks() {
base::FilePath file = source_path_.AppendASCII("places.sqlite");
- if (!file_util::PathExists(file))
+ if (!base::PathExists(file))
return;
sql::Connection db;
@@ -333,13 +333,13 @@ void Firefox3Importer::ImportPasswords() {
std::vector<content::PasswordForm> forms;
base::FilePath source_path = source_path_;
base::FilePath file = source_path.AppendASCII("signons.sqlite");
- if (file_util::PathExists(file)) {
+ if (base::PathExists(file)) {
// Since Firefox 3.1, passwords are in signons.sqlite db.
decryptor.ReadAndParseSignons(file, &forms);
} else {
// Firefox 3.0 uses signons3.txt to store the passwords.
file = source_path.AppendASCII("signons3.txt");
- if (!file_util::PathExists(file))
+ if (!base::PathExists(file))
file = source_path.AppendASCII("signons2.txt");
std::string content;
@@ -371,7 +371,7 @@ void Firefox3Importer::ImportHomepage() {
void Firefox3Importer::GetSearchEnginesXMLData(
std::vector<std::string>* search_engine_data) {
base::FilePath file = source_path_.AppendASCII("search.sqlite");
- if (!file_util::PathExists(file))
+ if (!base::PathExists(file))
return;
sql::Connection db;
« no previous file with comments | « chrome/browser/history/url_index_private_data.cc ('k') | chrome/browser/importer/firefox_importer_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698