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

Unified Diff: chromecast/base/cast_sys_info_android.cc

Issue 1875623002: Convert //chromecast 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 | « chromecast/base/bind_to_task_runner_unittest.cc ('k') | chromecast/base/cast_sys_info_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/base/cast_sys_info_android.cc
diff --git a/chromecast/base/cast_sys_info_android.cc b/chromecast/base/cast_sys_info_android.cc
index 0d85a06ad82386de3859394bab721ed3ebae132c..80eaf93389412e80da938155024a35b7b61a28aa 100644
--- a/chromecast/base/cast_sys_info_android.cc
+++ b/chromecast/base/cast_sys_info_android.cc
@@ -7,6 +7,7 @@
#include "base/android/build_info.h"
#include "base/android/jni_android.h"
#include "base/android/jni_string.h"
+#include "base/memory/ptr_util.h"
#include "base/strings/string_number_conversions.h"
#include "base/sys_info.h"
#include "chromecast/base/cast_sys_info_util.h"
@@ -25,8 +26,8 @@ bool CastSysInfoAndroid::RegisterJni(JNIEnv* env) {
}
// static
-scoped_ptr<CastSysInfo> CreateSysInfo() {
- return make_scoped_ptr(new CastSysInfoAndroid());
+std::unique_ptr<CastSysInfo> CreateSysInfo() {
+ return base::WrapUnique(new CastSysInfoAndroid());
}
CastSysInfoAndroid::CastSysInfoAndroid()
« no previous file with comments | « chromecast/base/bind_to_task_runner_unittest.cc ('k') | chromecast/base/cast_sys_info_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698