Commit ff8071e5 authored by Eric Roman's avatar Eric Roman Committed by Commit Bot

Delete a TODO in NetExportFileWriter from old mobile versions.

Change-Id: Id233077100e80c251fc1987f5ace8abd1c5ecc74
Reviewed-on: https://chromium-review.googlesource.com/571958Reviewed-by: default avatarMatt Menke <mmenke@chromium.org>
Commit-Queue: Eric Roman <eroman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#486897}
parent 57cb1fa7
...@@ -38,11 +38,6 @@ namespace { ...@@ -38,11 +38,6 @@ namespace {
const base::FilePath::CharType kLogRelativePath[] = const base::FilePath::CharType kLogRelativePath[] =
FILE_PATH_LITERAL("net-export/chrome-net-export-log.json"); FILE_PATH_LITERAL("net-export/chrome-net-export-log.json");
// Old path used by net-export. Used to delete old files.
// TODO(mmenke): Should remove at some point. Added in M46.
const base::FilePath::CharType kOldLogRelativePath[] =
FILE_PATH_LITERAL("chrome-net-export-log.json");
// Contains file-related initialization tasks for NetExportFileWriter. // Contains file-related initialization tasks for NetExportFileWriter.
NetExportFileWriter::DefaultLogPathResults SetUpDefaultLogPath( NetExportFileWriter::DefaultLogPathResults SetUpDefaultLogPath(
const NetExportFileWriter::DirectoryGetter& default_log_base_dir_getter) { const NetExportFileWriter::DirectoryGetter& default_log_base_dir_getter) {
...@@ -54,9 +49,6 @@ NetExportFileWriter::DefaultLogPathResults SetUpDefaultLogPath( ...@@ -54,9 +49,6 @@ NetExportFileWriter::DefaultLogPathResults SetUpDefaultLogPath(
if (!default_log_base_dir_getter.Run(&default_base_dir)) if (!default_log_base_dir_getter.Run(&default_base_dir))
return results; return results;
// Delete log file at old location, if present.
base::DeleteFile(default_base_dir.Append(kOldLogRelativePath), false);
results.default_log_path = default_base_dir.Append(kLogRelativePath); results.default_log_path = default_base_dir.Append(kLogRelativePath);
if (!base::CreateDirectoryAndGetError(results.default_log_path.DirName(), if (!base::CreateDirectoryAndGetError(results.default_log_path.DirName(),
nullptr)) nullptr))
......
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