diff options
Diffstat (limited to 'ceee/ie/common')
-rw-r--r-- | ceee/ie/common/metrics_util.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ceee/ie/common/metrics_util.h b/ceee/ie/common/metrics_util.h index 861a1b4..8af9034 100644 --- a/ceee/ie/common/metrics_util.h +++ b/ceee/ie/common/metrics_util.h @@ -35,10 +35,9 @@ class ScopedTimer { } ~ScopedTimer() { if (broker_rpc_) { - base::win::ScopedBstr name(CA2W(name_.c_str()).m_psz); base::TimeDelta delta = base::TimeTicks::Now() - start_; - if (!broker_rpc_->SendUmaHistogramTimes( - name, static_cast<int>(delta.InMilliseconds()))) { + if (FAILED(broker_rpc_->SendUmaHistogramTimes( + name_.c_str(), static_cast<int>(delta.InMilliseconds())))) { NOTREACHED() << "An error happened during RPC."; } } |