Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2866)

Unified Diff: chrome/browser/win/jumplist_file_util.cc

Issue 2806873002: Fix UMA metric "WinJumplist.DirectoryStatusJumpListIconsOld" (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/win/jumplist_file_util.cc
diff --git a/chrome/browser/win/jumplist_file_util.cc b/chrome/browser/win/jumplist_file_util.cc
index 87b5d863c5ce1697e33b53a435f06f5413556a97..3cbb0aab9ad515bf84724b4af64e408935c37cca 100644
--- a/chrome/browser/win/jumplist_file_util.cc
+++ b/chrome/browser/win/jumplist_file_util.cc
@@ -115,7 +115,8 @@ void DeleteDirectoryAndLogResults(const base::FilePath& path,
FolderDeleteResult delete_status = DeleteDirectory(path, max_file_deleted);
UMA_HISTOGRAM_ENUMERATION("WinJumplist.DeleteStatusJumpListIconsOld",
delete_status, FolderDeleteResult::END);
- dir_status = base::IsDirectoryEmpty(path) ? EMPTY : NON_EMPTY;
+ if (base::DirectoryExists(path))
+ dir_status = base::IsDirectoryEmpty(path) ? EMPTY : NON_EMPTY;
}
UMA_HISTOGRAM_ENUMERATION("WinJumplist.DirectoryStatusJumpListIconsOld",
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698