| OLD | NEW | 
|    1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |    1 // Copyright (c) 2013 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/autofill/autocheckout_manager.h" |    5 #include "chrome/browser/autofill/autocheckout_manager.h" | 
|    6  |    6  | 
|    7 #include "base/basictypes.h" |    7 #include "base/basictypes.h" | 
|    8 #include "base/bind.h" |    8 #include "base/bind.h" | 
|    9 #include "base/utf_string_conversions.h" |    9 #include "base/utf_string_conversions.h" | 
|   10 #include "chrome/browser/autofill/autofill_country.h" |   10 #include "chrome/browser/autofill/autofill_country.h" | 
|   11 #include "chrome/browser/autofill/autofill_field.h" |   11 #include "chrome/browser/autofill/autofill_field.h" | 
|   12 #include "chrome/browser/autofill/autofill_manager.h" |   12 #include "chrome/browser/autofill/autofill_manager.h" | 
|   13 #include "chrome/browser/autofill/autofill_profile.h" |   13 #include "chrome/browser/autofill/autofill_profile.h" | 
|   14 #include "chrome/browser/autofill/credit_card.h" |   14 #include "chrome/browser/autofill/credit_card.h" | 
|   15 #include "chrome/browser/autofill/field_types.h" |   15 #include "chrome/browser/autofill/field_types.h" | 
|   16 #include "chrome/browser/autofill/form_structure.h" |   16 #include "chrome/browser/autofill/form_structure.h" | 
|   17 #include "chrome/common/autofill/autocheckout_status.h" |   17 #include "components/autofill/common/autocheckout_status.h" | 
|   18 #include "chrome/common/autofill/web_element_descriptor.h" |   18 #include "components/autofill/common/autofill_messages.h" | 
|   19 #include "chrome/common/autofill_messages.h" |   19 #include "components/autofill/common/form_data.h" | 
|   20 #include "chrome/common/form_data.h" |   20 #include "components/autofill/common/form_field_data.h" | 
|   21 #include "chrome/common/form_field_data.h" |   21 #include "components/autofill/common/web_element_descriptor.h" | 
|   22 #include "content/public/browser/render_view_host.h" |   22 #include "content/public/browser/render_view_host.h" | 
|   23 #include "content/public/browser/web_contents.h" |   23 #include "content/public/browser/web_contents.h" | 
|   24 #include "content/public/common/ssl_status.h" |   24 #include "content/public/common/ssl_status.h" | 
|   25 #include "googleurl/src/gurl.h" |   25 #include "googleurl/src/gurl.h" | 
|   26 #include "ui/gfx/rect.h" |   26 #include "ui/gfx/rect.h" | 
|   27  |   27  | 
|   28 using content::RenderViewHost; |   28 using content::RenderViewHost; | 
|   29 using content::SSLStatus; |   29 using content::SSLStatus; | 
|   30 using content::WebContents; |   30 using content::WebContents; | 
|   31  |   31  | 
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  276  |  276  | 
|  277   // TODO(ramankk): Handle variants in a better fashion, need to distinguish |  277   // TODO(ramankk): Handle variants in a better fashion, need to distinguish | 
|  278   // between shipping and billing address. |  278   // between shipping and billing address. | 
|  279   if (AutofillType(type).group() == AutofillType::CREDIT_CARD) |  279   if (AutofillType(type).group() == AutofillType::CREDIT_CARD) | 
|  280     credit_card_->FillFormField(field, 0, field_to_fill); |  280     credit_card_->FillFormField(field, 0, field_to_fill); | 
|  281   else |  281   else | 
|  282     profile_->FillFormField(field, 0, field_to_fill); |  282     profile_->FillFormField(field, 0, field_to_fill); | 
|  283 } |  283 } | 
|  284  |  284  | 
|  285 }  // namespace autofill |  285 }  // namespace autofill | 
| OLD | NEW |