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

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

Issue 12543010: Establish components/autofill and move some files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 9 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
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 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/password_form_fill_data.h" 5 #include "components/autofill/common/password_form_fill_data.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/common/form_field_data.h" 8 #include "components/autofill/common/form_field_data.h"
9 9
10 PasswordFormFillData::PasswordFormFillData() : wait_for_username(false) { 10 PasswordFormFillData::PasswordFormFillData() : wait_for_username(false) {
11 } 11 }
12 12
13 PasswordFormFillData::~PasswordFormFillData() { 13 PasswordFormFillData::~PasswordFormFillData() {
14 } 14 }
15 15
16 void InitPasswordFormFillData( 16 void InitPasswordFormFillData(
17 const content::PasswordForm& form_on_page, 17 const content::PasswordForm& form_on_page,
18 const content::PasswordFormMap& matches, 18 const content::PasswordFormMap& matches,
(...skipping 17 matching lines...) Expand all
36 result->basic_data.fields.push_back(password_field); 36 result->basic_data.fields.push_back(password_field);
37 result->wait_for_username = wait_for_username_before_autofill; 37 result->wait_for_username = wait_for_username_before_autofill;
38 38
39 // Copy additional username/value pairs. 39 // Copy additional username/value pairs.
40 content::PasswordFormMap::const_iterator iter; 40 content::PasswordFormMap::const_iterator iter;
41 for (iter = matches.begin(); iter != matches.end(); iter++) { 41 for (iter = matches.begin(); iter != matches.end(); iter++) {
42 if (iter->second != preferred_match) 42 if (iter->second != preferred_match)
43 result->additional_logins[iter->first] = iter->second->password_value; 43 result->additional_logins[iter->first] = iter->second->password_value;
44 } 44 }
45 } 45 }
OLDNEW
« no previous file with comments | « components/autofill/common/password_form_fill_data.h ('k') | components/autofill/common/web_element_descriptor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698