Index: cc/debug/frame_rate_counter.cc |
diff --git a/cc/debug/frame_rate_counter.cc b/cc/debug/frame_rate_counter.cc |
index a6b4a44519bc6b8afc2684b8ca50322ac66cfa5e..928c27ce5f124ef3ad3b87ab67f0ae496de52e63 100644 |
--- a/cc/debug/frame_rate_counter.cc |
+++ b/cc/debug/frame_rate_counter.cc |
@@ -9,6 +9,7 @@ |
#include <algorithm> |
#include <limits> |
+#include "base/memory/ptr_util.h" |
#include "base/metrics/histogram.h" |
#include "cc/trees/proxy.h" |
@@ -33,8 +34,9 @@ static const double kFrameTooSlow = 1.5; |
static const double kDroppedFrameTime = 1.0 / 50.0; |
// static |
-scoped_ptr<FrameRateCounter> FrameRateCounter::Create(bool has_impl_thread) { |
- return make_scoped_ptr(new FrameRateCounter(has_impl_thread)); |
+std::unique_ptr<FrameRateCounter> FrameRateCounter::Create( |
+ bool has_impl_thread) { |
+ return base::WrapUnique(new FrameRateCounter(has_impl_thread)); |
} |
base::TimeDelta FrameRateCounter::RecentFrameInterval(size_t n) const { |