Remove base/metrics/* code from NaCl IPC proxy build.
This makes the IPC IRT nexes quite a bit smaller.
BUG=116317
TEST=compiles
Review URL: https://chromiumcodereview.appspot.com/11313014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164566 0039d316-1c4b-4281-b951-d872f2087c98
CrOS-Libchrome-Original-Commit: 7097185f53ec945566735336f79bdd4ff68982b9
diff --git a/base/message_loop.cc b/base/message_loop.cc
index 21108eb..4c82ebc 100644
--- a/base/message_loop.cc
+++ b/base/message_loop.cc
@@ -620,6 +620,7 @@
// on each thread.
void MessageLoop::StartHistogrammer() {
+#if !defined(OS_NACL) // NaCl build has no metrics code.
if (enable_histogrammer_ && !message_histogram_
&& base::StatisticsRecorder::IsActive()) {
DCHECK(!thread_name_.empty());
@@ -630,11 +631,14 @@
message_histogram_->kHexRangePrintingFlag);
message_histogram_->SetRangeDescriptions(event_descriptions_);
}
+#endif
}
void MessageLoop::HistogramEvent(int event) {
+#if !defined(OS_NACL)
if (message_histogram_)
message_histogram_->Add(event);
+#endif
}
bool MessageLoop::DoWork() {