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

Unified Diff: chrome/browser/page_cycler/page_cycler.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
« no previous file with comments | « chrome/browser/net/url_fixer_upper.cc ('k') | chrome/browser/page_cycler/page_cycler_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/page_cycler/page_cycler.cc
diff --git a/chrome/browser/page_cycler/page_cycler.cc b/chrome/browser/page_cycler/page_cycler.cc
index 0d10e083c77fa3502b61193dc4b25b752ef11bb3..8ca9326eafec7988bb226f3c3f6dc36cd41b5316 100644
--- a/chrome/browser/page_cycler/page_cycler.cc
+++ b/chrome/browser/page_cycler/page_cycler.cc
@@ -92,7 +92,7 @@ void PageCycler::ReadURLsOnBackgroundThread() {
std::string file_contents;
std::vector<std::string> url_strings;
- CHECK(file_util::PathExists(urls_file_)) << urls_file_.value();
+ CHECK(base::PathExists(urls_file_)) << urls_file_.value();
file_util::ReadFileToString(urls_file_, &file_contents);
base::SplitStringAlongWhitespace(file_contents, &url_strings);
@@ -209,7 +209,7 @@ void PageCycler::WriteResultsOnBackgroundThread(const std::string& output) {
if (!output.empty()) {
CHECK(!stats_file_.empty());
- if (file_util::PathExists(stats_file_)) {
+ if (base::PathExists(stats_file_)) {
VLOG(1) << "PageCycler: Previous stats file found; appending.";
file_util::AppendToFile(stats_file_, output.c_str(), output.size());
} else {
@@ -220,7 +220,7 @@ void PageCycler::WriteResultsOnBackgroundThread(const std::string& output) {
if (!error_.empty()) {
file_util::WriteFile(errors_file_, UTF16ToUTF8(error_).c_str(),
error_.size());
- } else if (file_util::PathExists(errors_file_)) {
+ } else if (base::PathExists(errors_file_)) {
// If there is an old error file, delete it to avoid confusion.
base::Delete(errors_file_, false);
}
« no previous file with comments | « chrome/browser/net/url_fixer_upper.cc ('k') | chrome/browser/page_cycler/page_cycler_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698