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

Unified Diff: components/autofill/content/browser/wallet/wallet_client.cc

Issue 183853011: Move TrimWhitespace to the base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: components/autofill/content/browser/wallet/wallet_client.cc
diff --git a/components/autofill/content/browser/wallet/wallet_client.cc b/components/autofill/content/browser/wallet/wallet_client.cc
index f0606f07c16500350393ecf7d5edeb5d2d0bcb0a..3c3c48ee42d757c6654138c811e58bb68acc9fc3 100644
--- a/components/autofill/content/browser/wallet/wallet_client.cc
+++ b/components/autofill/content/browser/wallet/wallet_client.cc
@@ -65,9 +65,7 @@ std::string RiskCapabilityToString(
WalletClient::ErrorType StringToErrorType(const std::string& error_type) {
std::string trimmed;
- TrimWhitespaceASCII(error_type,
- TRIM_ALL,
- &trimmed);
+ base::TrimWhitespaceASCII(error_type, base::TRIM_ALL, &trimmed);
if (LowerCaseEqualsASCII(trimmed, "buyer_account_error"))
return WalletClient::BUYER_ACCOUNT_ERROR;
if (LowerCaseEqualsASCII(trimmed, "unsupported_merchant"))
@@ -92,9 +90,7 @@ WalletClient::ErrorType StringToErrorType(const std::string& error_type) {
WalletClient::ErrorType BuyerErrorStringToErrorType(
const std::string& message_type_for_buyer) {
std::string trimmed;
- TrimWhitespaceASCII(message_type_for_buyer,
- TRIM_ALL,
- &trimmed);
+ base::TrimWhitespaceASCII(message_type_for_buyer, base::TRIM_ALL, &trimmed);
if (LowerCaseEqualsASCII(trimmed, "bla_country_not_supported"))
return WalletClient::BUYER_LEGAL_ADDRESS_NOT_SUPPORTED;
if (LowerCaseEqualsASCII(trimmed, "buyer_kyc_error"))
@@ -632,9 +628,7 @@ void WalletClient::OnURLFetchComplete(
std::string auth_result;
if (response_dict->GetString(kAuthResultKey, &auth_result)) {
std::string trimmed;
- TrimWhitespaceASCII(auth_result,
- TRIM_ALL,
- &trimmed);
+ base::TrimWhitespaceASCII(auth_result, base::TRIM_ALL, &trimmed);
delegate_->OnDidAuthenticateInstrument(
LowerCaseEqualsASCII(trimmed, "success"));
} else {
« no previous file with comments | « components/autofill/content/browser/wallet/required_action.cc ('k') | components/autofill/content/renderer/autofill_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698