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

Unified Diff: chrome/browser/sessions/session_backend.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/search_engines/template_url_parser_unittest.cc ('k') | chrome/browser/shell_integration.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sessions/session_backend.cc
diff --git a/chrome/browser/sessions/session_backend.cc b/chrome/browser/sessions/session_backend.cc
index 90e6a3871a6e26638576552c50e5bc220909d1a7..19431d8852c7f35f8da02ca7a023589faae87bcf 100644
--- a/chrome/browser/sessions/session_backend.cc
+++ b/chrome/browser/sessions/session_backend.cc
@@ -47,7 +47,7 @@ class SessionFileReader {
buffer_position_(0),
available_count_(0) {
file_.reset(new net::FileStream(NULL));
- if (file_util::PathExists(path))
+ if (base::PathExists(path))
file_->OpenSync(path,
base::PLATFORM_FILE_OPEN | base::PLATFORM_FILE_READ);
}
@@ -274,9 +274,9 @@ void SessionBackend::MoveCurrentSessionToLastSession() {
const base::FilePath current_session_path = GetCurrentSessionPath();
const base::FilePath last_session_path = GetLastSessionPath();
- if (file_util::PathExists(last_session_path))
+ if (base::PathExists(last_session_path))
base::Delete(last_session_path, false);
- if (file_util::PathExists(current_session_path)) {
+ if (base::PathExists(current_session_path)) {
int64 file_size;
if (file_util::GetFileSize(current_session_path, &file_size)) {
if (type_ == BaseSessionService::TAB_RESTORE) {
@@ -290,7 +290,7 @@ void SessionBackend::MoveCurrentSessionToLastSession() {
last_session_valid_ = base::Move(current_session_path, last_session_path);
}
- if (file_util::PathExists(current_session_path))
+ if (base::PathExists(current_session_path))
base::Delete(current_session_path, false);
// Create and open the file for the current session.
« no previous file with comments | « chrome/browser/search_engines/template_url_parser_unittest.cc ('k') | chrome/browser/shell_integration.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698