Chromium Code Reviews| 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 |