summaryrefslogtreecommitdiffstats
path: root/base/file_util_win.cc
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-05 03:22:38 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-05 03:22:38 +0000
commit354002bbf04a83faec5a14ed0ea3c3c7e77c2791 (patch)
tree4f0ed39d1dc6926fbb2c6fcc40d7c2dd52997370 /base/file_util_win.cc
parentfd1fbb75f1d2b75b8ba29f98fd4489677e664952 (diff)
downloadchromium_src-354002bbf04a83faec5a14ed0ea3c3c7e77c2791.zip
chromium_src-354002bbf04a83faec5a14ed0ea3c3c7e77c2791.tar.gz
chromium_src-354002bbf04a83faec5a14ed0ea3c3c7e77c2791.tar.bz2
Add some more desperate logging attempting to understand crasher.
BUG=108724 TBR=yoz@chromium.org Review URL: https://chromiumcodereview.appspot.com/9309089 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120502 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util_win.cc')
-rw-r--r--base/file_util_win.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/base/file_util_win.cc b/base/file_util_win.cc
index eb72afb..4723b96 100644
--- a/base/file_util_win.cc
+++ b/base/file_util_win.cc
@@ -101,6 +101,8 @@ bool Delete(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};
@@ -109,7 +111,11 @@ bool Delete(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