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

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: 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/credit_card.h" 10 #include "components/autofill/browser/credit_card.h"
11 #include "chrome/browser/autofill/form_group.h" 11 #include "components/autofill/browser/form_group.h"
12 #include "chrome/browser/autofill/form_structure.h" 12 #include "components/autofill/browser/form_structure.h"
13 #include "chrome/browser/autofill/wallet/wallet_address.h" 13 #include "components/autofill/browser/wallet/wallet_address.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_items.h" 15 #include "components/autofill/browser/wallet/wallet_items.h"
16 #include "ui/base/resource/resource_bundle.h" 16 #include "ui/base/resource/resource_bundle.h"
17 #include "ui/gfx/image/image.h" 17 #include "ui/gfx/image/image.h"
18 18
19 namespace autofill { 19 namespace autofill {
20 20
21 DataModelWrapper::~DataModelWrapper() {} 21 DataModelWrapper::~DataModelWrapper() {}
22 22
23 string16 DataModelWrapper::GetDisplayText() { 23 string16 DataModelWrapper::GetDisplayText() {
24 string16 comma = ASCIIToUTF16(", "); 24 string16 comma = ASCIIToUTF16(", ");
25 string16 label = GetInfo(NAME_FULL) + comma + GetInfo(ADDRESS_HOME_LINE1); 25 string16 label = GetInfo(NAME_FULL) + comma + GetInfo(ADDRESS_HOME_LINE1);
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 // just type + last 4 digits? 160 // just type + last 4 digits?
161 string16 line1 = instrument_->descriptive_name(); 161 string16 line1 = instrument_->descriptive_name();
162 return line1 + ASCIIToUTF16("\n") + DataModelWrapper::GetDisplayText(); 162 return line1 + ASCIIToUTF16("\n") + DataModelWrapper::GetDisplayText();
163 } 163 }
164 164
165 void WalletInstrumentWrapper::FillFormField(AutofillField* field) { 165 void WalletInstrumentWrapper::FillFormField(AutofillField* field) {
166 field->value = GetInfo(field->type()); 166 field->value = GetInfo(field->type());
167 } 167 }
168 168
169 } // namespace autofill 169 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698