Index: base/message_loop.cc |
=================================================================== |
--- base/message_loop.cc (revision 164359) |
+++ base/message_loop.cc (working copy) |
@@ -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() { |