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

Side by Side Diff: chrome/browser/ui/autofill/data_model_wrapper.cc

Issue 12434004: Move remaining Autofill code to //components/autofill. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix long lines 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/browser/ui/autofill/data_model_wrapper.h" 5 #include "chrome/browser/ui/autofill/data_model_wrapper.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "chrome/browser/autofill/autofill_country.h" 9 #include "components/autofill/browser/autofill_country.h"
10 #include "chrome/browser/autofill/autofill_profile.h" 10 #include "components/autofill/browser/autofill_profile.h"
11 #include "chrome/browser/autofill/credit_card.h" 11 #include "components/autofill/browser/credit_card.h"
12 #include "chrome/browser/autofill/form_group.h" 12 #include "components/autofill/browser/form_group.h"
13 #include "chrome/browser/autofill/form_structure.h" 13 #include "components/autofill/browser/form_structure.h"
14 #include "chrome/browser/autofill/wallet/wallet_address.h" 14 #include "components/autofill/browser/wallet/wallet_address.h"
15 #include "chrome/browser/autofill/wallet/wallet_address.h" 15 #include "components/autofill/browser/wallet/wallet_address.h"
16 #include "chrome/browser/autofill/wallet/wallet_items.h" 16 #include "components/autofill/browser/wallet/wallet_items.h"
17 #include "ui/base/resource/resource_bundle.h" 17 #include "ui/base/resource/resource_bundle.h"
18 #include "ui/gfx/image/image.h" 18 #include "ui/gfx/image/image.h"
19 19
20 namespace autofill { 20 namespace autofill {
21 21
22 DataModelWrapper::~DataModelWrapper() {} 22 DataModelWrapper::~DataModelWrapper() {}
23 23
24 string16 DataModelWrapper::GetDisplayText() { 24 string16 DataModelWrapper::GetDisplayText() {
25 string16 comma = ASCIIToUTF16(", "); 25 string16 comma = ASCIIToUTF16(", ");
26 string16 label = GetInfo(NAME_FULL) + comma + GetInfo(ADDRESS_HOME_LINE1); 26 string16 label = GetInfo(NAME_FULL) + comma + GetInfo(ADDRESS_HOME_LINE1);
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 // just type + last 4 digits? 178 // just type + last 4 digits?
179 string16 line1 = instrument_->descriptive_name(); 179 string16 line1 = instrument_->descriptive_name();
180 return line1 + ASCIIToUTF16("\n") + DataModelWrapper::GetDisplayText(); 180 return line1 + ASCIIToUTF16("\n") + DataModelWrapper::GetDisplayText();
181 } 181 }
182 182
183 void WalletInstrumentWrapper::FillFormField(AutofillField* field) { 183 void WalletInstrumentWrapper::FillFormField(AutofillField* field) {
184 field->value = GetInfo(field->type()); 184 field->value = GetInfo(field->type());
185 } 185 }
186 186
187 } // namespace autofill 187 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/browser/ui/autofill/data_model_wrapper.h ('k') | chrome/browser/ui/autofill/tab_autofill_manager_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698