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

Side by Side Diff: chrome/common/form_data.cc

Issue 11348273: [autofill] Fill in values on a successful run of interactive autocomplete. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: jhawkins@ review Created 8 years 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
« no previous file with comments | « chrome/common/form_data.h ('k') | chrome/renderer/autofill/autofill_agent.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 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 #include "chrome/common/form_data.h" 5 #include "chrome/common/form_data.h"
6 6
7 #include "base/string_util.h" 7 #include "base/string_util.h"
8 8
9 FormData::FormData() 9 FormData::FormData()
10 : user_submitted(false) { 10 : user_submitted(false) {
(...skipping 12 matching lines...) Expand all
23 } 23 }
24 24
25 bool FormData::operator==(const FormData& form) const { 25 bool FormData::operator==(const FormData& form) const {
26 return (name == form.name && 26 return (name == form.name &&
27 StringToLowerASCII(method) == StringToLowerASCII(form.method) && 27 StringToLowerASCII(method) == StringToLowerASCII(form.method) &&
28 origin == form.origin && 28 origin == form.origin &&
29 action == form.action && 29 action == form.action &&
30 user_submitted == form.user_submitted && 30 user_submitted == form.user_submitted &&
31 fields == form.fields); 31 fields == form.fields);
32 } 32 }
33
34 bool FormData::operator!=(const FormData& form) const {
35 return !operator==(form);
36 }
OLDNEW
« no previous file with comments | « chrome/common/form_data.h ('k') | chrome/renderer/autofill/autofill_agent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698