diff options
-rw-r--r-- | base/platform_file_posix.cc | 2 | ||||
-rw-r--r-- | base/platform_file_win.cc | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/base/platform_file_posix.cc b/base/platform_file_posix.cc index c5a8fa3..beae804 100644 --- a/base/platform_file_posix.cc +++ b/base/platform_file_posix.cc @@ -327,8 +327,10 @@ PlatformFileError ErrnoToPlatformFileError(int saved_errno) { case ENOTDIR: return PLATFORM_FILE_ERROR_NOT_A_DIRECTORY; default: +#if !defined(OS_NACL) // NaCl build has no metrics code. UMA_HISTOGRAM_SPARSE_SLOWLY("PlatformFile.UnknownErrors.Posix", saved_errno); +#endif return PLATFORM_FILE_ERROR_FAILED; } } diff --git a/base/platform_file_win.cc b/base/platform_file_win.cc index cdc06bd..da1da5b 100644 --- a/base/platform_file_win.cc +++ b/base/platform_file_win.cc @@ -286,8 +286,10 @@ PlatformFileError LastErrorToPlatformFileError(DWORD last_error) { case ERROR_DISK_CORRUPT: return PLATFORM_FILE_ERROR_IO; default: +#if !defined(OS_NACL) // NaCl build has no metrics code. UMA_HISTOGRAM_SPARSE_SLOWLY("PlatformFile.UnknownErrors.Windows", last_error); +#endif return PLATFORM_FILE_ERROR_FAILED; } } |