Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1192)

Unified Diff: media/base/vector_math_perftest.cc

Issue 1906423005: Replace scoped_ptr with std::unique_ptr in //media/base. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptr-media-base: . Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: media/base/vector_math_perftest.cc
diff --git a/media/base/vector_math_perftest.cc b/media/base/vector_math_perftest.cc
index bc70e1e677ba929531d528d1075a2f327c7ecab1..59b259dc2dd51a605b2598e7c416ae9f1a51cc6e 100644
--- a/media/base/vector_math_perftest.cc
+++ b/media/base/vector_math_perftest.cc
@@ -2,9 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <memory>
+
#include "base/macros.h"
#include "base/memory/aligned_memory.h"
-#include "base/memory/scoped_ptr.h"
#include "base/time/time.h"
#include "build/build_config.h"
#include "media/base/vector_math.h"
@@ -75,8 +76,8 @@ class VectorMathPerfTest : public testing::Test {
}
protected:
- scoped_ptr<float, base::AlignedFreeDeleter> input_vector_;
- scoped_ptr<float, base::AlignedFreeDeleter> output_vector_;
+ std::unique_ptr<float, base::AlignedFreeDeleter> input_vector_;
+ std::unique_ptr<float, base::AlignedFreeDeleter> output_vector_;
DISALLOW_COPY_AND_ASSIGN(VectorMathPerfTest);
};

Powered by Google App Engine
This is Rietveld 408576698