Commit 14c696ec authored by Lei Zhang's avatar Lei Zhang Committed by Commit Bot

Remove deprecated base::DeleteFile() use in sessions code.

They got added in https://crrev.com/787824

Bug: 1009837
Change-Id: Icd572904d3f9acde45a7220503f7b04a2a6b1019
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2310970Reviewed-by: default avatarScott Violet <sky@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#790612}
parent 0c8a66d4
...@@ -198,7 +198,7 @@ void SnapshottingCommandStorageBackend::DeleteLastSessionFiles() { ...@@ -198,7 +198,7 @@ void SnapshottingCommandStorageBackend::DeleteLastSessionFiles() {
GetSessionFiles()) { GetSessionFiles()) {
if (session.path != path() && if (session.path != path() &&
(!last_session_info_ || session.path != last_session_info_->path)) { (!last_session_info_ || session.path != last_session_info_->path)) {
base::DeleteFile(session.path, false); base::DeleteFile(session.path);
} }
} }
...@@ -207,12 +207,12 @@ void SnapshottingCommandStorageBackend::DeleteLastSessionFiles() { ...@@ -207,12 +207,12 @@ void SnapshottingCommandStorageBackend::DeleteLastSessionFiles() {
GetLegacySessionPath(type_, base_dir_, true); GetLegacySessionPath(type_, base_dir_, true);
if (last_session_info_ && current_session_path != last_session_info_->path && if (last_session_info_ && current_session_path != last_session_info_->path &&
base::PathExists(current_session_path)) base::PathExists(current_session_path))
base::DeleteFile(current_session_path, false); base::DeleteFile(current_session_path);
base::FilePath last_session_path = base::FilePath last_session_path =
GetLegacySessionPath(type_, base_dir_, false); GetLegacySessionPath(type_, base_dir_, false);
if (base::PathExists(last_session_path)) if (base::PathExists(last_session_path))
base::DeleteFile(last_session_path, false); base::DeleteFile(last_session_path);
} }
std::vector<SnapshottingCommandStorageBackend::SessionInfo> std::vector<SnapshottingCommandStorageBackend::SessionInfo>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment