summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autofill/form_structure.cc
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-30 15:46:03 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-30 15:46:03 +0000
commit3cb676a1c13680f2b6695f871d857e2dd060fa8c (patch)
treeedb4a79fa006b4887e1f48d3fd9e7886e8c8a89b /chrome/browser/autofill/form_structure.cc
parent96e839e18c3b0b89599273e5dea23a4efffadbb5 (diff)
downloadchromium_src-3cb676a1c13680f2b6695f871d857e2dd060fa8c.zip
chromium_src-3cb676a1c13680f2b6695f871d857e2dd060fa8c.tar.gz
chromium_src-3cb676a1c13680f2b6695f871d857e2dd060fa8c.tar.bz2
base: Remove dereference structure operator (i.e ->) from ScopedVector.
BUG=128663 R=brettw@chromium.org,willchan@chromium.org Review URL: https://chromiumcodereview.appspot.com/10669038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@145073 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autofill/form_structure.cc')
-rw-r--r--chrome/browser/autofill/form_structure.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/chrome/browser/autofill/form_structure.cc b/chrome/browser/autofill/form_structure.cc
index 1c8b7c9..5f19ed6 100644
--- a/chrome/browser/autofill/form_structure.cc
+++ b/chrome/browser/autofill/form_structure.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -886,8 +886,8 @@ void FormStructure::ParseAutocompletetypeAttributes(bool* found_attribute,
bool* found_sections) {
*found_attribute = false;
*found_sections = false;
- for (std::vector<AutofillField*>::iterator field = fields_->begin();
- field != fields_->end(); ++field) {
+ for (std::vector<AutofillField*>::iterator field = fields_.begin();
+ field != fields_.end(); ++field) {
if ((*field)->autocomplete_type.empty())
continue;
@@ -917,14 +917,14 @@ void FormStructure::IdentifySections(bool has_author_specified_sections) {
if (!has_author_specified_sections) {
// Name sections after the first field in the section.
- string16 current_section = fields_->front()->unique_name();
+ string16 current_section = fields_.front()->unique_name();
// Keep track of the types we've seen in this section.
std::set<AutofillFieldType> seen_types;
AutofillFieldType previous_type = UNKNOWN_TYPE;
- for (std::vector<AutofillField*>::iterator field = fields_->begin();
- field != fields_->end(); ++field) {
+ for (std::vector<AutofillField*>::iterator field = fields_.begin();
+ field != fields_.end(); ++field) {
const AutofillFieldType current_type =
AutofillType::GetEquivalentFieldType((*field)->type());
@@ -963,8 +963,8 @@ void FormStructure::IdentifySections(bool has_author_specified_sections) {
// Ensure that credit card and address fields are in separate sections.
// This simplifies the section-aware logic in autofill_manager.cc.
- for (std::vector<AutofillField*>::iterator field = fields_->begin();
- field != fields_->end(); ++field) {
+ for (std::vector<AutofillField*>::iterator field = fields_.begin();
+ field != fields_.end(); ++field) {
AutofillType::FieldTypeGroup field_type_group =
AutofillType((*field)->type()).group();
if (field_type_group == AutofillType::CREDIT_CARD)