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

Side by Side Diff: components/autofill/browser/autocheckout_manager.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) 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 "components/autofill/browser/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 "components/autofill/browser/autofill_country.h"
11 #include "chrome/browser/autofill/autofill_field.h" 11 #include "components/autofill/browser/autofill_field.h"
12 #include "chrome/browser/autofill/autofill_manager.h" 12 #include "components/autofill/browser/autofill_manager.h"
13 #include "chrome/browser/autofill/autofill_profile.h" 13 #include "components/autofill/browser/autofill_profile.h"
14 #include "chrome/browser/autofill/credit_card.h" 14 #include "components/autofill/browser/credit_card.h"
15 #include "chrome/browser/autofill/field_types.h" 15 #include "components/autofill/browser/field_types.h"
16 #include "chrome/browser/autofill/form_structure.h" 16 #include "components/autofill/browser/form_structure.h"
17 #include "components/autofill/common/autocheckout_status.h" 17 #include "components/autofill/common/autocheckout_status.h"
18 #include "components/autofill/common/autofill_messages.h" 18 #include "components/autofill/common/autofill_messages.h"
19 #include "components/autofill/common/form_data.h" 19 #include "components/autofill/common/form_data.h"
20 #include "components/autofill/common/form_field_data.h" 20 #include "components/autofill/common/form_field_data.h"
21 #include "components/autofill/common/web_element_descriptor.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"
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « components/autofill/browser/autocheckout_manager.h ('k') | components/autofill/browser/autocheckout_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698