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

Unified Diff: components/payments/core/address_normalizer_impl.cc

Issue 2829903004: Reland: Normalize shipping address for merchant on Desktop. (Closed)
Patch Set: Make android code use the new impl Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: components/payments/core/address_normalizer_impl.cc
diff --git a/components/payments/core/address_normalizer.cc b/components/payments/core/address_normalizer_impl.cc
similarity index 92%
rename from components/payments/core/address_normalizer.cc
rename to components/payments/core/address_normalizer_impl.cc
index d432ff11e15db4ef13718c99c3fec1cf22d97269..12961bd99c61c35742f44eda79a906662c705a42 100644
--- a/components/payments/core/address_normalizer.cc
+++ b/components/payments/core/address_normalizer_impl.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "components/payments/core/address_normalizer.h"
+#include "components/payments/core/address_normalizer_impl.h"
#include <stddef.h>
#include <utility>
@@ -123,22 +123,22 @@ class AddressNormalizationRequest : public AddressNormalizer::Request {
} // namespace
-AddressNormalizer::AddressNormalizer(std::unique_ptr<Source> source,
- std::unique_ptr<Storage> storage)
+AddressNormalizerImpl::AddressNormalizerImpl(std::unique_ptr<Source> source,
+ std::unique_ptr<Storage> storage)
: address_validator_(std::move(source), std::move(storage), this) {}
-AddressNormalizer::~AddressNormalizer() {}
+AddressNormalizerImpl::~AddressNormalizerImpl() {}
-void AddressNormalizer::LoadRulesForRegion(const std::string& region_code) {
+void AddressNormalizerImpl::LoadRulesForRegion(const std::string& region_code) {
address_validator_.LoadRules(region_code);
}
-bool AddressNormalizer::AreRulesLoadedForRegion(
+bool AddressNormalizerImpl::AreRulesLoadedForRegion(
const std::string& region_code) {
return address_validator_.AreRulesLoadedForRegion(region_code);
}
-void AddressNormalizer::StartAddressNormalization(
+void AddressNormalizerImpl::StartAddressNormalization(
const AutofillProfile& profile,
const std::string& region_code,
int timeout_seconds,
@@ -173,7 +173,7 @@ void AddressNormalizer::StartAddressNormalization(
}
}
-void AddressNormalizer::OnAddressValidationRulesLoaded(
+void AddressNormalizerImpl::OnAddressValidationRulesLoaded(
const std::string& region_code,
bool success) {
// Check if an address normalization is pending.
« no previous file with comments | « components/payments/core/address_normalizer_impl.h ('k') | components/payments/core/address_normalizer_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698