diff options
author | robertshield@chromium.org <robertshield@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-10 02:25:01 +0000 |
---|---|---|
committer | robertshield@chromium.org <robertshield@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-10 02:25:01 +0000 |
commit | 491482f8b02e00845280e49b9829b19a604ee218 (patch) | |
tree | b6ab6b3421cb3ec92fcd0be5082d249897a66c06 | |
parent | a7676ed4685e58131179743c08ef381eca023285 (diff) | |
download | chromium_src-491482f8b02e00845280e49b9829b19a604ee218.zip chromium_src-491482f8b02e00845280e49b9829b19a604ee218.tar.gz chromium_src-491482f8b02e00845280e49b9829b19a604ee218.tar.bz2 |
Remove file_util debugging cruft from crbug.com/108724
BUG=108724
TEST=NONE
Review URL: https://codereview.chromium.org/24235010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@227866 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | base/file_util.cc | 2 | ||||
-rw-r--r-- | base/file_util.h | 2 | ||||
-rw-r--r-- | base/file_util_win.cc | 6 |
3 files changed, 0 insertions, 10 deletions
diff --git a/base/file_util.cc b/base/file_util.cc index 308b150..5e9790e 100644 --- a/base/file_util.cc +++ b/base/file_util.cc @@ -32,8 +32,6 @@ static const int kMaxUniqueFiles = 100; } // namespace -bool g_bug108724_debug = false; - int64 ComputeDirectorySize(const FilePath& root_path) { int64 running_size = 0; FileEnumerator file_iter(root_path, true, FileEnumerator::FILES); diff --git a/base/file_util.h b/base/file_util.h index b4150f7..2950df1 100644 --- a/base/file_util.h +++ b/base/file_util.h @@ -40,8 +40,6 @@ namespace base { class Time; -extern bool g_bug108724_debug; - //----------------------------------------------------------------------------- // Functions that involve filesystem access or modification: diff --git a/base/file_util_win.cc b/base/file_util_win.cc index 39317a3..86c5eea 100644 --- a/base/file_util_win.cc +++ b/base/file_util_win.cc @@ -107,8 +107,6 @@ bool DeleteFile(const FilePath& path, bool recursive) { // into the rest of the buffer. wchar_t double_terminated_path[MAX_PATH + 1] = {0}; #pragma warning(suppress:4996) // don't complain about wcscpy deprecation - if (g_bug108724_debug) - LOG(WARNING) << "copying "; wcscpy(double_terminated_path, path.value().c_str()); SHFILEOPSTRUCT file_operation = {0}; @@ -117,11 +115,7 @@ bool DeleteFile(const FilePath& path, bool recursive) { file_operation.fFlags = FOF_NOERRORUI | FOF_SILENT | FOF_NOCONFIRMATION; if (!recursive) file_operation.fFlags |= FOF_NORECURSION | FOF_FILESONLY; - if (g_bug108724_debug) - LOG(WARNING) << "Performing shell operation"; int err = SHFileOperation(&file_operation); - if (g_bug108724_debug) - LOG(WARNING) << "Done: " << err; // Since we're passing flags to the operation telling it to be silent, // it's possible for the operation to be aborted/cancelled without err |