Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(535)

Side by Side Diff: components/autofill/core/browser/phone_number_i18n.cc

Issue 1674373003: [libphonenumber] Change DEPS to track new github mirror, uprev library (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: README file Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« DEPS ('K') | « DEPS ('k') | components/autofill/core/browser/phone_number_i18n_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698