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

Unified Diff: components/audio_modem/modem_impl.cc

Issue 1921973002: Convert //components/[a-e]* from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . 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
« no previous file with comments | « components/audio_modem/audio_recorder_unittest.cc ('k') | components/audio_modem/modem_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/audio_modem/modem_impl.cc
diff --git a/components/audio_modem/modem_impl.cc b/components/audio_modem/modem_impl.cc
index f67e98fa3841a7d2755f21caa536303dcb51356a..447250cad9322254ae692e1137e71662c2210dc7 100644
--- a/components/audio_modem/modem_impl.cc
+++ b/components/audio_modem/modem_impl.cc
@@ -8,13 +8,14 @@
#include <algorithm>
#include <limits>
+#include <memory>
#include <vector>
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/command_line.h"
#include "base/logging.h"
-#include "base/memory/scoped_ptr.h"
+#include "base/memory/ptr_util.h"
#include "base/run_loop.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
@@ -227,8 +228,8 @@ void ModemImpl::SetTokenParams(AudioType type, const TokenParameters& params) {
}
// static
-scoped_ptr<Modem> Modem::Create() {
- return make_scoped_ptr<Modem>(new ModemImpl);
+std::unique_ptr<Modem> Modem::Create() {
+ return base::WrapUnique<Modem>(new ModemImpl);
}
// Private functions.
« no previous file with comments | « components/audio_modem/audio_recorder_unittest.cc ('k') | components/audio_modem/modem_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698