| Index: chrome/browser/win/jumplist.cc
|
| diff --git a/chrome/browser/win/jumplist.cc b/chrome/browser/win/jumplist.cc
|
| index 6dad5579697389d68a137d050de08c7ae6b97199..834646bb42045542cecc744d7bb9d17e0f1a7bb5 100644
|
| --- a/chrome/browser/win/jumplist.cc
|
| +++ b/chrome/browser/win/jumplist.cc
|
| @@ -114,8 +114,11 @@ bool CreateIconFile(const gfx::ImageSkia& image_skia,
|
| }
|
|
|
| if (!IconUtil::CreateIconFileFromImageFamily(image_family, path,
|
| - IconUtil::NORMAL_WRITE))
|
| + IconUtil::NORMAL_WRITE)) {
|
| + // Delete the file created by CreateTemporaryFileInDir as it won't be used.
|
| + base::DeleteFile(path, false);
|
| return false;
|
| + }
|
|
|
| // Add this icon file to the list and return its absolute path.
|
| // The IShellLink::SetIcon() function needs the absolute path to an icon.
|
|
|