diff options
author | victorhsieh@chromium.org <victorhsieh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-21 22:40:20 +0000 |
---|---|---|
committer | victorhsieh@chromium.org <victorhsieh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-21 22:40:20 +0000 |
commit | 37e2bad096c8784e3073cfbb69bf845464fce5e5 (patch) | |
tree | 93fcced20bd407afb74568a38a30e07e5dbd7b7f /base/platform_file_posix.cc | |
parent | 0b0927de42f344ad47d6db61b7e9588e7e90670f (diff) | |
download | chromium_src-37e2bad096c8784e3073cfbb69bf845464fce5e5.zip chromium_src-37e2bad096c8784e3073cfbb69bf845464fce5e5.tar.gz chromium_src-37e2bad096c8784e3073cfbb69bf845464fce5e5.tar.bz2 |
Disable UMA_HISTOGRAM in NaCl build
This is similiar to crrev.com/164566, which exclude metrics from NaCl
build.
TEST=compiled
BUG=229252
Review URL: https://chromiumcodereview.appspot.com/15514003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201377 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/platform_file_posix.cc')
-rw-r--r-- | base/platform_file_posix.cc | 2 |
1 files changed, 2 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; } } |