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

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

Issue 474483002: Revert 289312 "Move StringToUpperASCII and LowerCaseEqualsASCII ..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 4 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: trunk/src/components/autofill/content/browser/wallet/wallet_client.cc
===================================================================
--- trunk/src/components/autofill/content/browser/wallet/wallet_client.cc (revision 289319)
+++ trunk/src/components/autofill/content/browser/wallet/wallet_client.cc (working copy)
@@ -66,21 +66,21 @@
WalletClient::ErrorType StringToErrorType(const std::string& error_type) {
std::string trimmed;
base::TrimWhitespaceASCII(error_type, base::TRIM_ALL, &trimmed);
- if (base::LowerCaseEqualsASCII(trimmed, "buyer_account_error"))
+ if (LowerCaseEqualsASCII(trimmed, "buyer_account_error"))
return WalletClient::BUYER_ACCOUNT_ERROR;
- if (base::LowerCaseEqualsASCII(trimmed, "unsupported_merchant"))
+ if (LowerCaseEqualsASCII(trimmed, "unsupported_merchant"))
return WalletClient::UNSUPPORTED_MERCHANT;
- if (base::LowerCaseEqualsASCII(trimmed, "internal_error"))
+ if (LowerCaseEqualsASCII(trimmed, "internal_error"))
return WalletClient::INTERNAL_ERROR;
- if (base::LowerCaseEqualsASCII(trimmed, "invalid_params"))
+ if (LowerCaseEqualsASCII(trimmed, "invalid_params"))
return WalletClient::INVALID_PARAMS;
- if (base::LowerCaseEqualsASCII(trimmed, "service_unavailable"))
+ if (LowerCaseEqualsASCII(trimmed, "service_unavailable"))
return WalletClient::SERVICE_UNAVAILABLE;
- if (base::LowerCaseEqualsASCII(trimmed, "unsupported_api_version"))
+ if (LowerCaseEqualsASCII(trimmed, "unsupported_api_version"))
return WalletClient::UNSUPPORTED_API_VERSION;
- if (base::LowerCaseEqualsASCII(trimmed, "unsupported_user_agent"))
+ if (LowerCaseEqualsASCII(trimmed, "unsupported_user_agent"))
return WalletClient::UNSUPPORTED_USER_AGENT_OR_API_KEY;
- if (base::LowerCaseEqualsASCII(trimmed, "spending_limit_exceeded"))
+ if (LowerCaseEqualsASCII(trimmed, "spending_limit_exceeded"))
return WalletClient::SPENDING_LIMIT_EXCEEDED;
DVLOG(1) << "Unknown wallet error string: \"" << error_type << '"';
@@ -93,9 +93,9 @@
const std::string& message_type_for_buyer) {
std::string trimmed;
base::TrimWhitespaceASCII(message_type_for_buyer, base::TRIM_ALL, &trimmed);
- if (base::LowerCaseEqualsASCII(trimmed, "bla_country_not_supported"))
+ if (LowerCaseEqualsASCII(trimmed, "bla_country_not_supported"))
return WalletClient::BUYER_LEGAL_ADDRESS_NOT_SUPPORTED;
- if (base::LowerCaseEqualsASCII(trimmed, "buyer_kyc_error"))
+ if (LowerCaseEqualsASCII(trimmed, "buyer_kyc_error"))
return WalletClient::UNVERIFIED_KNOW_YOUR_CUSTOMER_STATUS;
return WalletClient::BUYER_ACCOUNT_ERROR;
@@ -642,7 +642,7 @@
std::string trimmed;
base::TrimWhitespaceASCII(auth_result, base::TRIM_ALL, &trimmed);
delegate_->OnDidAuthenticateInstrument(
- base::LowerCaseEqualsASCII(trimmed, "success"));
+ LowerCaseEqualsASCII(trimmed, "success"));
} else {
HandleMalformedResponse(type, scoped_request.get());
}

Powered by Google App Engine
This is Rietveld 408576698