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

Unified Diff: device/nfc/nfc_ndef_record_utils_chromeos.cc

Issue 1874313002: Convert device 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 | « device/nfc/nfc_ndef_record_unittest.cc ('k') | device/nfc/nfc_tag_chromeos.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/nfc/nfc_ndef_record_utils_chromeos.cc
diff --git a/device/nfc/nfc_ndef_record_utils_chromeos.cc b/device/nfc/nfc_ndef_record_utils_chromeos.cc
index 466cf38b97156bcec7a3655051b9dadb10c16428..9b44ff83f388c3bbbf316cd858f6a2a2a264a559 100644
--- a/device/nfc/nfc_ndef_record_utils_chromeos.cc
+++ b/device/nfc/nfc_ndef_record_utils_chromeos.cc
@@ -4,8 +4,9 @@
#include "device/nfc/nfc_ndef_record_utils_chromeos.h"
+#include <memory>
+
#include "base/logging.h"
-#include "base/memory/scoped_ptr.h"
#include "device/nfc/nfc_ndef_record.h"
#include "third_party/cros_system_api/dbus/service_constants.h"
@@ -205,7 +206,7 @@ bool RecordPropertiesToNfcNdefRecord(
// differently, depending on whether the record type is "SmartPoster" or
// "Text".
{
- scoped_ptr<base::DictionaryValue> text_attributes(
+ std::unique_ptr<base::DictionaryValue> text_attributes(
new base::DictionaryValue());
if (!properties->representation.value().empty()) {
text_attributes->SetString(NfcNdefRecord::kFieldText,
« no previous file with comments | « device/nfc/nfc_ndef_record_unittest.cc ('k') | device/nfc/nfc_tag_chromeos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698