| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/prefs/pref_service.h" | 12 #include "base/prefs/pref_service.h" |
| 13 #include "base/string_number_conversions.h" | 13 #include "base/string_number_conversions.h" |
| 14 #include "base/string_util.h" | 14 #include "base/string_util.h" |
| 15 #include "base/strings/string_split.h" | 15 #include "base/strings/string_split.h" |
| 16 #include "base/time.h" | 16 #include "base/time.h" |
| 17 #include "base/utf_string_conversions.h" | 17 #include "base/utf_string_conversions.h" |
| 18 #include "chrome/browser/autofill/autofill_country.h" | |
| 19 #include "chrome/browser/autofill/autofill_manager.h" | |
| 20 #include "chrome/browser/autofill/autofill_type.h" | |
| 21 #include "chrome/browser/autofill/personal_data_manager.h" | |
| 22 #include "chrome/browser/autofill/personal_data_manager_factory.h" | 18 #include "chrome/browser/autofill/personal_data_manager_factory.h" |
| 23 #include "chrome/browser/autofill/risk/fingerprint.h" | |
| 24 #include "chrome/browser/autofill/risk/proto/fingerprint.pb.h" | |
| 25 #include "chrome/browser/autofill/validation.h" | |
| 26 #include "chrome/browser/autofill/wallet/full_wallet.h" | |
| 27 #include "chrome/browser/autofill/wallet/wallet_items.h" | |
| 28 #include "chrome/browser/autofill/wallet/wallet_service_url.h" | |
| 29 #include "chrome/browser/browser_process.h" | 19 #include "chrome/browser/browser_process.h" |
| 30 #include "chrome/browser/extensions/shell_window_registry.h" | 20 #include "chrome/browser/extensions/shell_window_registry.h" |
| 31 #include "chrome/browser/profiles/profile.h" | 21 #include "chrome/browser/profiles/profile.h" |
| 32 #include "chrome/browser/ui/autofill/autofill_dialog_view.h" | 22 #include "chrome/browser/ui/autofill/autofill_dialog_view.h" |
| 33 #include "chrome/browser/ui/autofill/data_model_wrapper.h" | 23 #include "chrome/browser/ui/autofill/data_model_wrapper.h" |
| 34 #include "chrome/browser/ui/base_window.h" | 24 #include "chrome/browser/ui/base_window.h" |
| 35 #include "chrome/browser/ui/browser.h" | 25 #include "chrome/browser/ui/browser.h" |
| 36 #include "chrome/browser/ui/browser_finder.h" | 26 #include "chrome/browser/ui/browser_finder.h" |
| 37 #include "chrome/browser/ui/browser_window.h" | 27 #include "chrome/browser/ui/browser_window.h" |
| 38 #include "chrome/browser/ui/extensions/native_app_window.h" | 28 #include "chrome/browser/ui/extensions/native_app_window.h" |
| 39 #include "chrome/browser/ui/extensions/shell_window.h" | 29 #include "chrome/browser/ui/extensions/shell_window.h" |
| 40 #include "chrome/common/chrome_version_info.h" | 30 #include "chrome/common/chrome_version_info.h" |
| 41 #include "chrome/common/pref_names.h" | 31 #include "chrome/common/pref_names.h" |
| 32 #include "components/autofill/browser/autofill_country.h" |
| 33 #include "components/autofill/browser/autofill_manager.h" |
| 34 #include "components/autofill/browser/autofill_type.h" |
| 35 #include "components/autofill/browser/personal_data_manager.h" |
| 36 #include "components/autofill/browser/risk/fingerprint.h" |
| 37 #include "components/autofill/browser/risk/proto/fingerprint.pb.h" |
| 38 #include "components/autofill/browser/validation.h" |
| 39 #include "components/autofill/browser/wallet/full_wallet.h" |
| 40 #include "components/autofill/browser/wallet/wallet_items.h" |
| 41 #include "components/autofill/browser/wallet/wallet_service_url.h" |
| 42 #include "components/autofill/common/form_data.h" | 42 #include "components/autofill/common/form_data.h" |
| 43 #include "components/user_prefs/pref_registry_syncable.h" | 43 #include "components/user_prefs/pref_registry_syncable.h" |
| 44 #include "content/public/browser/navigation_controller.h" | 44 #include "content/public/browser/navigation_controller.h" |
| 45 #include "content/public/browser/navigation_details.h" | 45 #include "content/public/browser/navigation_details.h" |
| 46 #include "content/public/browser/navigation_entry.h" | 46 #include "content/public/browser/navigation_entry.h" |
| 47 #include "content/public/browser/notification_service.h" | 47 #include "content/public/browser/notification_service.h" |
| 48 #include "content/public/browser/notification_types.h" | 48 #include "content/public/browser/notification_types.h" |
| 49 #include "content/public/browser/web_contents.h" | 49 #include "content/public/browser/web_contents.h" |
| 50 #include "content/public/browser/web_contents_view.h" | 50 #include "content/public/browser/web_contents_view.h" |
| 51 #include "content/public/common/url_constants.h" | 51 #include "content/public/common/url_constants.h" |
| (...skipping 1404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1456 // If the user is editing or inputting data, ask the view. | 1456 // If the user is editing or inputting data, ask the view. |
| 1457 if (item_key.empty() || section_editing_state_[SECTION_SHIPPING]) | 1457 if (item_key.empty() || section_editing_state_[SECTION_SHIPPING]) |
| 1458 return view_->UseBillingForShipping(); | 1458 return view_->UseBillingForShipping(); |
| 1459 | 1459 |
| 1460 // Otherwise, the checkbox should be hidden so its state is irrelevant. | 1460 // Otherwise, the checkbox should be hidden so its state is irrelevant. |
| 1461 // Always use the shipping suggestion model. | 1461 // Always use the shipping suggestion model. |
| 1462 return false; | 1462 return false; |
| 1463 } | 1463 } |
| 1464 | 1464 |
| 1465 } // namespace autofill | 1465 } // namespace autofill |
| OLD | NEW |