OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/webui/options/autofill_options_handler.h" | 5 #include "chrome/browser/ui/webui/options/autofill_options_handler.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/string16.h" | 10 #include "base/string16.h" |
11 #include "base/string_number_conversions.h" | 11 #include "base/string_number_conversions.h" |
12 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
13 #include "base/values.h" | 13 #include "base/values.h" |
14 #include "chrome/browser/autofill/autofill_country.h" | 14 #include "chrome/browser/autofill/autofill_country.h" |
15 #include "chrome/browser/autofill/autofill_profile.h" | 15 #include "chrome/browser/autofill/autofill_profile.h" |
16 #include "chrome/browser/autofill/credit_card.h" | 16 #include "chrome/browser/autofill/credit_card.h" |
| 17 #include "chrome/browser/autofill/personal_data_manager.h" |
17 #include "chrome/browser/autofill/phone_number_i18n.h" | 18 #include "chrome/browser/autofill/phone_number_i18n.h" |
18 #include "chrome/browser/profiles/profile.h" | 19 #include "chrome/browser/profiles/profile.h" |
19 #include "chrome/browser/ui/webui/web_ui_util.h" | 20 #include "chrome/browser/ui/webui/web_ui_util.h" |
20 #include "chrome/common/guid.h" | 21 #include "chrome/common/guid.h" |
21 #include "grit/generated_resources.h" | 22 #include "grit/generated_resources.h" |
22 #include "grit/webkit_resources.h" | 23 #include "grit/webkit_resources.h" |
23 #include "ui/base/l10n/l10n_util.h" | 24 #include "ui/base/l10n/l10n_util.h" |
24 | 25 |
25 namespace { | 26 namespace { |
26 | 27 |
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
536 void AutofillOptionsHandler::ValidateFaxNumbers(const ListValue* args) { | 537 void AutofillOptionsHandler::ValidateFaxNumbers(const ListValue* args) { |
537 if (!personal_data_->IsDataLoaded()) | 538 if (!personal_data_->IsDataLoaded()) |
538 return; | 539 return; |
539 | 540 |
540 ListValue* list_value = NULL; | 541 ListValue* list_value = NULL; |
541 ValidatePhoneArguments(args, &list_value); | 542 ValidatePhoneArguments(args, &list_value); |
542 | 543 |
543 web_ui_->CallJavascriptFunction( | 544 web_ui_->CallJavascriptFunction( |
544 "AutofillEditAddressOverlay.setValidatedFaxNumbers", *list_value); | 545 "AutofillEditAddressOverlay.setValidatedFaxNumbers", *list_value); |
545 } | 546 } |
OLD | NEW |