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 #include <utility> | 10 #include <utility> |
11 | 11 |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/bind_helpers.h" | 13 #include "base/bind_helpers.h" |
14 #include "base/i18n/case_conversion.h" | 14 #include "base/i18n/case_conversion.h" |
15 #include "base/i18n/rtl.h" | 15 #include "base/i18n/rtl.h" |
16 #include "base/location.h" | 16 #include "base/location.h" |
17 #include "base/logging.h" | 17 #include "base/logging.h" |
18 #include "base/macros.h" | 18 #include "base/macros.h" |
19 #include "base/prefs/pref_registry_simple.h" | |
20 #include "base/prefs/pref_service.h" | |
21 #include "base/prefs/scoped_user_pref_update.h" | |
22 #include "base/rand_util.h" | 19 #include "base/rand_util.h" |
23 #include "base/single_thread_task_runner.h" | 20 #include "base/single_thread_task_runner.h" |
24 #include "base/strings/string_number_conversions.h" | 21 #include "base/strings/string_number_conversions.h" |
25 #include "base/strings/string_split.h" | 22 #include "base/strings/string_split.h" |
26 #include "base/strings/stringprintf.h" | 23 #include "base/strings/stringprintf.h" |
27 #include "base/strings/utf_string_conversions.h" | 24 #include "base/strings/utf_string_conversions.h" |
28 #include "base/thread_task_runner_handle.h" | 25 #include "base/thread_task_runner_handle.h" |
29 #include "base/time/time.h" | 26 #include "base/time/time.h" |
30 #include "chrome/browser/autofill/personal_data_manager_factory.h" | 27 #include "chrome/browser/autofill/personal_data_manager_factory.h" |
31 #include "chrome/browser/autofill/risk_util.h" | 28 #include "chrome/browser/autofill/risk_util.h" |
(...skipping 22 matching lines...) Expand all Loading... |
54 #include "components/autofill/core/browser/country_names.h" | 51 #include "components/autofill/core/browser/country_names.h" |
55 #include "components/autofill/core/browser/detail_input.h" | 52 #include "components/autofill/core/browser/detail_input.h" |
56 #include "components/autofill/core/browser/field_types.h" | 53 #include "components/autofill/core/browser/field_types.h" |
57 #include "components/autofill/core/browser/personal_data_manager.h" | 54 #include "components/autofill/core/browser/personal_data_manager.h" |
58 #include "components/autofill/core/browser/phone_number_i18n.h" | 55 #include "components/autofill/core/browser/phone_number_i18n.h" |
59 #include "components/autofill/core/browser/server_field_types_util.h" | 56 #include "components/autofill/core/browser/server_field_types_util.h" |
60 #include "components/autofill/core/browser/validation.h" | 57 #include "components/autofill/core/browser/validation.h" |
61 #include "components/autofill/core/common/autofill_pref_names.h" | 58 #include "components/autofill/core/common/autofill_pref_names.h" |
62 #include "components/autofill/core/common/form_data.h" | 59 #include "components/autofill/core/common/form_data.h" |
63 #include "components/pref_registry/pref_registry_syncable.h" | 60 #include "components/pref_registry/pref_registry_syncable.h" |
| 61 #include "components/prefs/pref_registry_simple.h" |
| 62 #include "components/prefs/pref_service.h" |
| 63 #include "components/prefs/scoped_user_pref_update.h" |
64 #include "content/public/browser/browser_thread.h" | 64 #include "content/public/browser/browser_thread.h" |
65 #include "content/public/browser/geolocation_provider.h" | 65 #include "content/public/browser/geolocation_provider.h" |
66 #include "content/public/browser/navigation_controller.h" | 66 #include "content/public/browser/navigation_controller.h" |
67 #include "content/public/browser/navigation_details.h" | 67 #include "content/public/browser/navigation_details.h" |
68 #include "content/public/browser/navigation_entry.h" | 68 #include "content/public/browser/navigation_entry.h" |
69 #include "content/public/browser/notification_service.h" | 69 #include "content/public/browser/notification_service.h" |
70 #include "content/public/browser/notification_types.h" | 70 #include "content/public/browser/notification_types.h" |
71 #include "content/public/browser/render_view_host.h" | 71 #include "content/public/browser/render_view_host.h" |
72 #include "content/public/browser/web_contents.h" | 72 #include "content/public/browser/web_contents.h" |
73 #include "content/public/common/url_constants.h" | 73 #include "content/public/common/url_constants.h" |
(...skipping 2234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2308 } | 2308 } |
2309 | 2309 |
2310 void AutofillDialogControllerImpl::OnSubmitButtonDelayEnd() { | 2310 void AutofillDialogControllerImpl::OnSubmitButtonDelayEnd() { |
2311 if (!view_) | 2311 if (!view_) |
2312 return; | 2312 return; |
2313 ScopedViewUpdates updates(view_.get()); | 2313 ScopedViewUpdates updates(view_.get()); |
2314 view_->UpdateButtonStrip(); | 2314 view_->UpdateButtonStrip(); |
2315 } | 2315 } |
2316 | 2316 |
2317 } // namespace autofill | 2317 } // namespace autofill |
OLD | NEW |