OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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/ui/autofill/autofill_dialog_controller_impl.h" | 5 #include "chrome/browser/ui/autofill/autofill_dialog_controller_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
| 11 #include "apps/native_app_window.h" |
11 #include "apps/shell_window.h" | 12 #include "apps/shell_window.h" |
12 #include "base/base64.h" | 13 #include "base/base64.h" |
13 #include "base/bind.h" | 14 #include "base/bind.h" |
14 #include "base/i18n/rtl.h" | 15 #include "base/i18n/rtl.h" |
15 #include "base/logging.h" | 16 #include "base/logging.h" |
16 #include "base/prefs/pref_service.h" | 17 #include "base/prefs/pref_service.h" |
17 #include "base/strings/string_number_conversions.h" | 18 #include "base/strings/string_number_conversions.h" |
18 #include "base/strings/string_split.h" | 19 #include "base/strings/string_split.h" |
19 #include "base/strings/string_util.h" | 20 #include "base/strings/string_util.h" |
20 #include "base/strings/utf_string_conversions.h" | 21 #include "base/strings/utf_string_conversions.h" |
21 #include "base/time/time.h" | 22 #include "base/time/time.h" |
22 #include "chrome/browser/autofill/personal_data_manager_factory.h" | 23 #include "chrome/browser/autofill/personal_data_manager_factory.h" |
23 #include "chrome/browser/browser_process.h" | 24 #include "chrome/browser/browser_process.h" |
24 #include "chrome/browser/extensions/shell_window_registry.h" | 25 #include "chrome/browser/extensions/shell_window_registry.h" |
25 #include "chrome/browser/prefs/scoped_user_pref_update.h" | 26 #include "chrome/browser/prefs/scoped_user_pref_update.h" |
26 #include "chrome/browser/profiles/profile.h" | 27 #include "chrome/browser/profiles/profile.h" |
27 #include "chrome/browser/ui/autofill/autofill_credit_card_bubble_controller.h" | 28 #include "chrome/browser/ui/autofill/autofill_credit_card_bubble_controller.h" |
28 #include "chrome/browser/ui/autofill/autofill_dialog_view.h" | 29 #include "chrome/browser/ui/autofill/autofill_dialog_view.h" |
29 #include "chrome/browser/ui/autofill/data_model_wrapper.h" | 30 #include "chrome/browser/ui/autofill/data_model_wrapper.h" |
30 #include "chrome/browser/ui/browser.h" | 31 #include "chrome/browser/ui/browser.h" |
31 #include "chrome/browser/ui/browser_finder.h" | 32 #include "chrome/browser/ui/browser_finder.h" |
32 #include "chrome/browser/ui/browser_navigator.h" | 33 #include "chrome/browser/ui/browser_navigator.h" |
33 #include "chrome/browser/ui/browser_window.h" | 34 #include "chrome/browser/ui/browser_window.h" |
34 #include "chrome/browser/ui/extensions/native_app_window.h" | |
35 #include "chrome/common/chrome_version_info.h" | 35 #include "chrome/common/chrome_version_info.h" |
36 #include "chrome/common/pref_names.h" | 36 #include "chrome/common/pref_names.h" |
37 #include "chrome/common/render_messages.h" | 37 #include "chrome/common/render_messages.h" |
38 #include "chrome/common/url_constants.h" | 38 #include "chrome/common/url_constants.h" |
39 #include "components/autofill/content/browser/risk/fingerprint.h" | 39 #include "components/autofill/content/browser/risk/fingerprint.h" |
40 #include "components/autofill/content/browser/risk/proto/fingerprint.pb.h" | 40 #include "components/autofill/content/browser/risk/proto/fingerprint.pb.h" |
41 #include "components/autofill/content/browser/wallet/form_field_error.h" | 41 #include "components/autofill/content/browser/wallet/form_field_error.h" |
42 #include "components/autofill/content/browser/wallet/full_wallet.h" | 42 #include "components/autofill/content/browser/wallet/full_wallet.h" |
43 #include "components/autofill/content/browser/wallet/instrument.h" | 43 #include "components/autofill/content/browser/wallet/instrument.h" |
44 #include "components/autofill/content/browser/wallet/wallet_address.h" | 44 #include "components/autofill/content/browser/wallet/wallet_address.h" |
(...skipping 3424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3469 view_->GetUserInput(SECTION_CC_BILLING, &output); | 3469 view_->GetUserInput(SECTION_CC_BILLING, &output); |
3470 CreditCard card; | 3470 CreditCard card; |
3471 GetBillingInfoFromOutputs(output, &card, NULL, NULL); | 3471 GetBillingInfoFromOutputs(output, &card, NULL, NULL); |
3472 backing_last_four = card.TypeAndLastFourDigits(); | 3472 backing_last_four = card.TypeAndLastFourDigits(); |
3473 } | 3473 } |
3474 AutofillCreditCardBubbleController::ShowGeneratedCardUI( | 3474 AutofillCreditCardBubbleController::ShowGeneratedCardUI( |
3475 web_contents(), backing_last_four, full_wallet_->TypeAndLastFourDigits()); | 3475 web_contents(), backing_last_four, full_wallet_->TypeAndLastFourDigits()); |
3476 } | 3476 } |
3477 | 3477 |
3478 } // namespace autofill | 3478 } // namespace autofill |
OLD | NEW |