Chromium Code Reviews
DescriptionMake TestingProfile delete failures explicitly CHECK-fail.
TestingProfile currently crashes due to an IO-allowed assert failure if
the clean-up call to base::DeleteFile fails for some reason. This CL
explicitly CHECKs the result of Delete, rather than ignoring the result
and proceeding through to a difficult-to-debug assert later on.
BUG=717648
Patch Set 1 #Patch Set 2 : Only call delete if valid (i.e., path not empty). #Patch Set 3 : Still need to call Delete when the directory has already been deleted. #Patch Set 4 : TEMP: Added logging for TestingProfile::Delete and base::DeleteFile on Windows. #Patch Set 5 : TEMP: Deliberately crash tests on ~ScopedTempDir, to see logs. #
Messages
Total messages: 20 (10 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||