| 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 "components/autofill/core/browser/phone_number_i18n.h" | 5 #include "components/autofill/core/browser/phone_number_i18n.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
| 11 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
| 12 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
| 13 #include "components/autofill/core/browser/autofill_country.h" | 13 #include "components/autofill/core/browser/autofill_country.h" |
| 14 #include "third_party/libphonenumber/src/phonenumber_api.h" | 14 #include "third_party/libphonenumber/phonenumber_api.h" |
| 15 | 15 |
| 16 using i18n::phonenumbers::PhoneNumber; | 16 using i18n::phonenumbers::PhoneNumber; |
| 17 using i18n::phonenumbers::PhoneNumberUtil; | 17 using i18n::phonenumbers::PhoneNumberUtil; |
| 18 | 18 |
| 19 namespace autofill { | 19 namespace autofill { |
| 20 | 20 |
| 21 namespace { | 21 namespace { |
| 22 | 22 |
| 23 std::string SanitizeRegion(const std::string& region, | 23 std::string SanitizeRegion(const std::string& region, |
| 24 const std::string& app_locale) { | 24 const std::string& app_locale) { |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 number_ = other.number_; | 307 number_ = other.number_; |
| 308 | 308 |
| 309 formatted_number_ = other.formatted_number_; | 309 formatted_number_ = other.formatted_number_; |
| 310 whole_number_ = other.whole_number_; | 310 whole_number_ = other.whole_number_; |
| 311 | 311 |
| 312 return *this; | 312 return *this; |
| 313 } | 313 } |
| 314 | 314 |
| 315 } // namespace i18n | 315 } // namespace i18n |
| 316 } // namespace autofill | 316 } // namespace autofill |
| OLD | NEW |