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

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

Issue 12893007: Implementing VERIFY_CVV required action. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 8 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/ui/autofill/autofill_dialog_models.h" 9 #include "chrome/browser/ui/autofill/autofill_dialog_models.h"
10 #include "components/autofill/browser/autofill_country.h" 10 #include "components/autofill/browser/autofill_country.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 void DataModelWrapper::FillInputs(DetailInputs* inputs) { 54 void DataModelWrapper::FillInputs(DetailInputs* inputs) {
55 for (size_t i = 0; i < inputs->size(); ++i) { 55 for (size_t i = 0; i < inputs->size(); ++i) {
56 (*inputs)[i].initial_value = GetInfo((*inputs)[i].type); 56 (*inputs)[i].initial_value = GetInfo((*inputs)[i].type);
57 } 57 }
58 } 58 }
59 59
60 void DataModelWrapper::FillFormField(AutofillField* field) { 60 void DataModelWrapper::FillFormField(AutofillField* field) {
61 field->value = GetInfo(field->type()); 61 field->value = GetInfo(field->type());
62 } 62 }
63 63
64 DataModelWrapper::DataModelWrapper() {}
65
64 gfx::Image DataModelWrapper::GetIcon() { 66 gfx::Image DataModelWrapper::GetIcon() {
65 return gfx::Image(); 67 return gfx::Image();
66 } 68 }
67 69
68 // AutofillFormGroupWrapper 70 // AutofillFormGroupWrapper
69 71
70 AutofillFormGroupWrapper::AutofillFormGroupWrapper(const FormGroup* form_group, 72 AutofillFormGroupWrapper::AutofillFormGroupWrapper(const FormGroup* form_group,
71 size_t variant) 73 size_t variant)
72 : form_group_(form_group), 74 : form_group_(form_group),
73 variant_(variant) {} 75 variant_(variant) {}
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 DCHECK(full_wallet_); 203 DCHECK(full_wallet_);
202 } 204 }
203 205
204 FullWalletShippingWrapper::~FullWalletShippingWrapper() {} 206 FullWalletShippingWrapper::~FullWalletShippingWrapper() {}
205 207
206 string16 FullWalletShippingWrapper::GetInfo(AutofillFieldType type) { 208 string16 FullWalletShippingWrapper::GetInfo(AutofillFieldType type) {
207 return full_wallet_->shipping_address()->GetInfo(type); 209 return full_wallet_->shipping_address()->GetInfo(type);
208 } 210 }
209 211
210 } // namespace autofill 212 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/browser/ui/autofill/data_model_wrapper.h ('k') | chrome/browser/ui/views/autofill/autofill_dialog_views.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698