| Index: base/message_loop.cc
|
| ===================================================================
|
| --- base/message_loop.cc (revision 80220)
|
| +++ base/message_loop.cc (working copy)
|
| @@ -122,6 +122,7 @@
|
| : type_(type),
|
| nestable_tasks_allowed_(true),
|
| exception_restoration_(false),
|
| + message_histogram_(NULL),
|
| state_(NULL),
|
| #ifdef OS_WIN
|
| os_modal_loop_(false),
|
| @@ -531,7 +532,7 @@
|
| // on each thread.
|
|
|
| void MessageLoop::StartHistogrammer() {
|
| - if (enable_histogrammer_ && !message_histogram_.get()
|
| + if (enable_histogrammer_ && !message_histogram_
|
| && base::StatisticsRecorder::IsActive()) {
|
| DCHECK(!thread_name_.empty());
|
| message_histogram_ = base::LinearHistogram::FactoryGet(
|
| @@ -544,7 +545,7 @@
|
| }
|
|
|
| void MessageLoop::HistogramEvent(int event) {
|
| - if (message_histogram_.get())
|
| + if (message_histogram_)
|
| message_histogram_->Add(event);
|
| }
|
|
|
|
|