| OLD | NEW |
| 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/autofill_dialog_controller_impl.h" | 5 #include "chrome/browser/ui/autofill/autofill_dialog_controller_impl.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 #include "chrome/browser/profiles/profile.h" | 30 #include "chrome/browser/profiles/profile.h" |
| 31 #include "chrome/browser/ui/autofill/autofill_dialog_view.h" | 31 #include "chrome/browser/ui/autofill/autofill_dialog_view.h" |
| 32 #include "chrome/browser/ui/autofill/data_model_wrapper.h" | 32 #include "chrome/browser/ui/autofill/data_model_wrapper.h" |
| 33 #include "chrome/browser/ui/base_window.h" | 33 #include "chrome/browser/ui/base_window.h" |
| 34 #include "chrome/browser/ui/browser.h" | 34 #include "chrome/browser/ui/browser.h" |
| 35 #include "chrome/browser/ui/browser_finder.h" | 35 #include "chrome/browser/ui/browser_finder.h" |
| 36 #include "chrome/browser/ui/browser_window.h" | 36 #include "chrome/browser/ui/browser_window.h" |
| 37 #include "chrome/browser/ui/extensions/native_app_window.h" | 37 #include "chrome/browser/ui/extensions/native_app_window.h" |
| 38 #include "chrome/browser/ui/extensions/shell_window.h" | 38 #include "chrome/browser/ui/extensions/shell_window.h" |
| 39 #include "chrome/common/chrome_version_info.h" | 39 #include "chrome/common/chrome_version_info.h" |
| 40 #include "chrome/common/form_data.h" | |
| 41 #include "chrome/common/pref_names.h" | 40 #include "chrome/common/pref_names.h" |
| 41 #include "components/autofill/common/form_data.h" |
| 42 #include "components/user_prefs/pref_registry_syncable.h" | 42 #include "components/user_prefs/pref_registry_syncable.h" |
| 43 #include "content/public/browser/navigation_controller.h" | 43 #include "content/public/browser/navigation_controller.h" |
| 44 #include "content/public/browser/navigation_details.h" | 44 #include "content/public/browser/navigation_details.h" |
| 45 #include "content/public/browser/navigation_entry.h" | 45 #include "content/public/browser/navigation_entry.h" |
| 46 #include "content/public/browser/notification_service.h" | 46 #include "content/public/browser/notification_service.h" |
| 47 #include "content/public/browser/notification_types.h" | 47 #include "content/public/browser/notification_types.h" |
| 48 #include "content/public/browser/web_contents.h" | 48 #include "content/public/browser/web_contents.h" |
| 49 #include "content/public/browser/web_contents_view.h" | 49 #include "content/public/browser/web_contents_view.h" |
| 50 #include "content/public/common/url_constants.h" | 50 #include "content/public/common/url_constants.h" |
| 51 #include "grit/chromium_strings.h" | 51 #include "grit/chromium_strings.h" |
| (...skipping 1374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1426 // If the user is editing or inputting data, ask the view. | 1426 // If the user is editing or inputting data, ask the view. |
| 1427 if (item_key.empty() || section_editing_state_[SECTION_SHIPPING]) | 1427 if (item_key.empty() || section_editing_state_[SECTION_SHIPPING]) |
| 1428 return view_->UseBillingForShipping(); | 1428 return view_->UseBillingForShipping(); |
| 1429 | 1429 |
| 1430 // Otherwise, the checkbox should be hidden so its state is irrelevant. | 1430 // Otherwise, the checkbox should be hidden so its state is irrelevant. |
| 1431 // Always use the shipping suggestion model. | 1431 // Always use the shipping suggestion model. |
| 1432 return false; | 1432 return false; |
| 1433 } | 1433 } |
| 1434 | 1434 |
| 1435 } // namespace autofill | 1435 } // namespace autofill |
| OLD | NEW |