| 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/autofill/phone_number_i18n.h" | 5 #include "components/autofill/browser/phone_number_i18n.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
| 10 #include "base/stringprintf.h" | 10 #include "base/stringprintf.h" |
| 11 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
| 12 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
| 13 #include "chrome/browser/autofill/autofill_country.h" | 13 #include "components/autofill/browser/autofill_country.h" |
| 14 #include "third_party/libphonenumber/src/phonenumber_api.h" | 14 #include "third_party/libphonenumber/src/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 { | 19 namespace { |
| 20 | 20 |
| 21 std::string SanitizeRegion(const std::string& region) { | 21 std::string SanitizeRegion(const std::string& region) { |
| 22 if (region.length() == 2) | 22 if (region.length() == 2) |
| 23 return region; | 23 return region; |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 city_code_ = other.city_code_; | 287 city_code_ = other.city_code_; |
| 288 number_ = other.number_; | 288 number_ = other.number_; |
| 289 | 289 |
| 290 formatted_number_ = other.formatted_number_; | 290 formatted_number_ = other.formatted_number_; |
| 291 whole_number_ = other.whole_number_; | 291 whole_number_ = other.whole_number_; |
| 292 | 292 |
| 293 return *this; | 293 return *this; |
| 294 } | 294 } |
| 295 | 295 |
| 296 } // namespace autofill_i18n | 296 } // namespace autofill_i18n |
| OLD | NEW |