| Index: chrome/test/base/testing_profile.cc
|
| diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc
|
| index c43d29fdee2dbfb04d59119c832b39124fcdedb7..d7855ee2c2ec9f6b54948ce19ccb24d75e310d2b 100644
|
| --- a/chrome/test/base/testing_profile.cc
|
| +++ b/chrome/test/base/testing_profile.cc
|
| @@ -566,7 +566,12 @@ TestingProfile::~TestingProfile() {
|
| }
|
|
|
| base::ThreadRestrictions::ScopedAllowIO allow_io;
|
| - ignore_result(temp_dir_.Delete());
|
| + if (!temp_dir_.Delete()) {
|
| + LOG(WARNING) << "Failed to delete temporary directory.";
|
| + // Make sure |temp_dir_| no longer owns the directory (so it does not try to
|
| + // delete it in a context where IO is not allowed).
|
| + ignore_result(temp_dir_.Take());
|
| + }
|
| }
|
|
|
| void TestingProfile::CreateFaviconService() {
|
|
|