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

Unified Diff: components/autofill/core/browser/phone_field.cc

Issue 1859453002: components/autofill: scoped_ptr -> unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments addressed 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: components/autofill/core/browser/phone_field.cc
diff --git a/components/autofill/core/browser/phone_field.cc b/components/autofill/core/browser/phone_field.cc
index 0044fcc9fa2b8197713f0256d5e2eb4cc7b5f127..68135df1187b926860be79e0d6b3c6a3cf6bf98c 100644
--- a/components/autofill/core/browser/phone_field.cc
+++ b/components/autofill/core/browser/phone_field.cc
@@ -5,11 +5,12 @@
#include "components/autofill/core/browser/phone_field.h"
#include <string.h>
+
+#include <memory>
#include <utility>
#include "base/logging.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/strings/string16.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
@@ -129,7 +130,7 @@ const PhoneField::Parser PhoneField::kPhoneFieldGrammars[] = {
};
// static
-scoped_ptr<FormField> PhoneField::Parse(AutofillScanner* scanner) {
+std::unique_ptr<FormField> PhoneField::Parse(AutofillScanner* scanner) {
if (scanner->IsEnd())
return nullptr;
@@ -182,7 +183,7 @@ scoped_ptr<FormField> PhoneField::Parse(AutofillScanner* scanner) {
return nullptr;
}
- scoped_ptr<PhoneField> phone_field(new PhoneField);
+ std::unique_ptr<PhoneField> phone_field(new PhoneField);
for (int i = 0; i < FIELD_MAX; ++i)
phone_field->parsed_phone_fields_[i] = parsed_fields[i];
« no previous file with comments | « components/autofill/core/browser/phone_field.h ('k') | components/autofill/core/browser/phone_field_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698