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

Unified Diff: chrome/browser/autofill/wallet/wallet_service_url.cc

Issue 11773037: Implementation of sensitive card information escrowing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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: chrome/browser/autofill/wallet/wallet_service_url.cc
diff --git a/chrome/browser/autofill/wallet/wallet_service_url.cc b/chrome/browser/autofill/wallet/wallet_service_url.cc
index 811d9379f3c5257bfcd09a6a6e158af8a65ac56d..500f4a25556aad19f653b3e55e0d1530672f8066 100644
--- a/chrome/browser/autofill/wallet/wallet_service_url.cc
+++ b/chrome/browser/autofill/wallet/wallet_service_url.cc
@@ -15,7 +15,7 @@ namespace {
const char kDefaultWalletServiceUrl[] = "https://wallet.google.com/online/v2/";
const char kDefaultWalletSecureServiceUrl[] =
- "https://wallet.google.com/online-secure/temporarydata/cvv?s7e=cvv";
+ "https://wallet.google.com/online-secure/temporarydata/";
GURL GetBaseWalletUrl() {
const CommandLine& command_line = *CommandLine::ForCurrentProcess();
@@ -29,6 +29,14 @@ GURL GetBaseAutocheckoutUrl() {
return GetBaseWalletUrl().Resolve("wallet/autocheckout/");
}
+GURL GetBaseSecureUrl() {
+ const CommandLine& command_line = *CommandLine::ForCurrentProcess();
+ std::string wallet_secure_url =
+ command_line.GetSwitchValueASCII(switches::kWalletSecureServiceUrl);
+ return !wallet_secure_url.empty() ? GURL(wallet_secure_url) :
+ GURL(kDefaultWalletSecureServiceUrl);
Raman Kakilate 2013/01/08 02:10:28 make const GURL ? instead of building one for ever
ahutter 2013/01/09 17:31:18 ack.
+}
+
} // anonymous namespace
namespace wallet {
@@ -62,12 +70,12 @@ GURL GetPassiveAuthUrl() {
return GetBaseWalletUrl().Resolve("passiveauth");
}
-GURL GetSecureUrl() {
- const CommandLine& command_line = *CommandLine::ForCurrentProcess();
- std::string wallet_secure_url =
- command_line.GetSwitchValueASCII(switches::kWalletSecureServiceUrl);
- return !wallet_secure_url.empty() ? GURL(wallet_secure_url) :
- GURL(kDefaultWalletSecureServiceUrl);
+GURL GetEncryptionUrl() {
+ return GetBaseSecureUrl().Resolve("cvv?s7e=cvv");
+}
+
+GURL GetEscrowUrl() {
+ return GetBaseSecureUrl().Resolve("dehEfe?s7e=cardNumber%3Bcvv");
}
} // namespace wallet

Powered by Google App Engine
This is Rietveld 408576698