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

Side by Side Diff: chrome/browser/autofill/form_group.cc

Issue 6317016: Change UTF8ToUTF16 to accept const StringPiece&. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 9 years, 10 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
« no previous file with comments | « base/utf_string_conversions.cc ('k') | chrome/browser/extensions/default_apps.cc » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 <algorithm>
6
5 #include "chrome/browser/autofill/form_group.h" 7 #include "chrome/browser/autofill/form_group.h"
6 8
7 string16 FormGroup::GetPreviewText(const AutoFillType& type) const { 9 string16 FormGroup::GetPreviewText(const AutoFillType& type) const {
8 return GetFieldText(type); 10 return GetFieldText(type);
9 } 11 }
10 12
11 const string16 FormGroup::Label() const { return string16(); } 13 const string16 FormGroup::Label() const { return string16(); }
12 14
13 bool FormGroup::operator!=(const FormGroup& form_group) const { 15 bool FormGroup::operator!=(const FormGroup& form_group) const {
14 FieldTypeSet a, b, symmetric_difference; 16 FieldTypeSet a, b, symmetric_difference;
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 81
80 void FormGroup::OverwriteWith(const FormGroup& form_group) { 82 void FormGroup::OverwriteWith(const FormGroup& form_group) {
81 FieldTypeSet a;; 83 FieldTypeSet a;;
82 form_group.GetAvailableFieldTypes(&a); 84 form_group.GetAvailableFieldTypes(&a);
83 85
84 for (FieldTypeSet::const_iterator iter = a.begin(); iter != a.end(); ++iter) { 86 for (FieldTypeSet::const_iterator iter = a.begin(); iter != a.end(); ++iter) {
85 AutoFillType type(*iter); 87 AutoFillType type(*iter);
86 SetInfo(type, form_group.GetFieldText(type)); 88 SetInfo(type, form_group.GetFieldText(type));
87 } 89 }
88 } 90 }
OLDNEW
« no previous file with comments | « base/utf_string_conversions.cc ('k') | chrome/browser/extensions/default_apps.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698