OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "third_party/libaddressinput/chromium/addressinput_util.h" | 5 #include "third_party/libaddressinput/chromium/addressinput_util.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <algorithm> | 9 #include <algorithm> |
8 | 10 |
9 #include "base/logging.h" | 11 #include "base/logging.h" |
10 #include "base/macros.h" | 12 #include "base/macros.h" |
11 #include "third_party/libaddressinput/src/cpp/include/libaddressinput/address_da
ta.h" | 13 #include "third_party/libaddressinput/src/cpp/include/libaddressinput/address_da
ta.h" |
12 #include "third_party/libaddressinput/src/cpp/include/libaddressinput/address_me
tadata.h" | 14 #include "third_party/libaddressinput/src/cpp/include/libaddressinput/address_me
tadata.h" |
13 | 15 |
14 namespace autofill { | 16 namespace autofill { |
15 namespace addressinput { | 17 namespace addressinput { |
16 | 18 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 if (address_to_check.IsFieldEmpty(field) && | 68 if (address_to_check.IsFieldEmpty(field) && |
67 IsFieldRequired(field, address_to_check.region_code) && | 69 IsFieldRequired(field, address_to_check.region_code) && |
68 !FilterExcludes(filter, field, MISSING_REQUIRED_FIELD)) { | 70 !FilterExcludes(filter, field, MISSING_REQUIRED_FIELD)) { |
69 problems->insert(std::make_pair(field, MISSING_REQUIRED_FIELD)); | 71 problems->insert(std::make_pair(field, MISSING_REQUIRED_FIELD)); |
70 } | 72 } |
71 } | 73 } |
72 } | 74 } |
73 | 75 |
74 } // namespace addressinput | 76 } // namespace addressinput |
75 } // namespace autofill | 77 } // namespace autofill |
OLD | NEW |