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

Side by Side Diff: components/autofill/common/form_data.cc

Issue 16879006: In components/autofill, move common/ to core/common/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to fix conflict Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "components/autofill/common/form_data.h"
6
7 #include "base/strings/string_util.h"
8
9 namespace autofill {
10
11 FormData::FormData()
12 : user_submitted(false) {
13 }
14
15 FormData::FormData(const FormData& data)
16 : name(data.name),
17 method(data.method),
18 origin(data.origin),
19 action(data.action),
20 user_submitted(data.user_submitted),
21 fields(data.fields),
22 ssl_status(data.ssl_status) {
23 }
24
25 FormData::~FormData() {
26 }
27
28 bool FormData::operator==(const FormData& form) const {
29 return (name == form.name &&
30 StringToLowerASCII(method) == StringToLowerASCII(form.method) &&
31 origin == form.origin &&
32 action == form.action &&
33 user_submitted == form.user_submitted &&
34 fields == form.fields &&
35 ssl_status.Equals(form.ssl_status));
36 }
37
38 bool FormData::operator!=(const FormData& form) const {
39 return !operator==(form);
40 }
41
42 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/common/form_data.h ('k') | components/autofill/common/form_data_predictions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698