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

Side by Side Diff: components/autofill/core/browser/email_field.h

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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_EMAIL_FIELD_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_EMAIL_FIELD_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_EMAIL_FIELD_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_EMAIL_FIELD_H_
7 7
8 #include <memory>
9
8 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
9 #include "base/macros.h" 11 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "components/autofill/core/browser/form_field.h" 12 #include "components/autofill/core/browser/form_field.h"
12 13
13 namespace autofill { 14 namespace autofill {
14 15
15 class EmailField : public FormField { 16 class EmailField : public FormField {
16 public: 17 public:
17 static scoped_ptr<FormField> Parse(AutofillScanner* scanner); 18 static std::unique_ptr<FormField> Parse(AutofillScanner* scanner);
18 19
19 protected: 20 protected:
20 void AddClassifications(FieldCandidatesMap* field_candidates) const override; 21 void AddClassifications(FieldCandidatesMap* field_candidates) const override;
21 22
22 private: 23 private:
23 explicit EmailField(const AutofillField* field); 24 explicit EmailField(const AutofillField* field);
24 25
25 const AutofillField* field_; 26 const AutofillField* field_;
26 27
27 DISALLOW_COPY_AND_ASSIGN(EmailField); 28 DISALLOW_COPY_AND_ASSIGN(EmailField);
28 }; 29 };
29 30
30 } // namespace autofill 31 } // namespace autofill
31 32
32 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_EMAIL_FIELD_H_ 33 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_EMAIL_FIELD_H_
OLDNEW
« no previous file with comments | « components/autofill/core/browser/crypto/rc4_decryptor.h ('k') | components/autofill/core/browser/email_field.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698