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

Unified Diff: components/autofill/core/browser/form_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
« no previous file with comments | « components/autofill/core/browser/form_field.h ('k') | components/autofill/core/browser/form_structure.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/core/browser/form_field.cc
diff --git a/components/autofill/core/browser/form_field.cc b/components/autofill/core/browser/form_field.cc
index 84caf069b9aa55a77f102ca4b0fd2b9fc059bff2..b7646c8ca7940ef2957b995fa6dc454ae0c274bc 100644
--- a/components/autofill/core/browser/form_field.cc
+++ b/components/autofill/core/browser/form_field.cc
@@ -7,11 +7,11 @@
#include <algorithm>
#include <cstddef>
#include <iterator>
+#include <memory>
#include <string>
#include <utility>
#include "base/logging.h"
-#include "base/memory/scoped_ptr.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
@@ -174,7 +174,7 @@ void FormField::ParseFormFieldsPass(ParseFunction parse,
FieldCandidatesMap* field_candidates) {
AutofillScanner scanner(fields);
while (!scanner.IsEnd()) {
- scoped_ptr<FormField> form_field(parse(&scanner));
+ std::unique_ptr<FormField> form_field(parse(&scanner));
if (form_field == nullptr) {
scanner.Advance();
} else {
« no previous file with comments | « components/autofill/core/browser/form_field.h ('k') | components/autofill/core/browser/form_structure.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698