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 f94d90d266e81a419b6c4accf734373a9ef06f14..811d9379f3c5257bfcd09a6a6e158af8a65ac56d 100644 |
--- a/chrome/browser/autofill/wallet/wallet_service_url.cc |
+++ b/chrome/browser/autofill/wallet/wallet_service_url.cc |
@@ -12,8 +12,7 @@ |
namespace { |
-const char kDefaultWalletServiceUrl[] = |
- "https://wallet.google.com/online/v2/wallet/autocheckout/"; |
+const char kDefaultWalletServiceUrl[] = "https://wallet.google.com/online/v2/"; |
const char kDefaultWalletSecureServiceUrl[] = |
"https://wallet.google.com/online-secure/temporarydata/cvv?s7e=cvv"; |
@@ -26,33 +25,44 @@ GURL GetBaseWalletUrl() { |
GURL(kDefaultWalletServiceUrl); |
} |
+GURL GetBaseAutocheckoutUrl() { |
+ return GetBaseWalletUrl().Resolve("wallet/autocheckout/"); |
+} |
+ |
} // anonymous namespace |
+namespace wallet { |
+ |
// TODO(ahutter): This shouldn't live in this class. See |
// http://crbug.com/164281. |
-const char wallet::kApiKey[] = "abcdefg"; |
+const char kApiKey[] = "abcdefg"; |
+ |
+GURL GetGetWalletItemsUrl() { |
+ return GetBaseWalletUrl().Resolve( |
+ "wallet/autocheckout/getWalletItemsJwtless"); |
+} |
-GURL wallet::GetGetWalletItemsUrl() { |
- return GetBaseWalletUrl().Resolve("getWalletItemsJwtless"); |
+GURL GetGetFullWalletUrl() { |
+ return GetBaseAutocheckoutUrl().Resolve("getFullWalletJwtless"); |
} |
-GURL wallet::GetGetFullWalletUrl() { |
- return GetBaseWalletUrl().Resolve("getFullWalletJwtless"); |
+GURL GetAcceptLegalDocumentsUrl() { |
+ return GetBaseAutocheckoutUrl().Resolve("acceptLegalDocuments"); |
} |
-GURL wallet::GetAcceptLegalDocumentsUrl() { |
- return GetBaseWalletUrl().Resolve("acceptLegalDocuments"); |
+GURL GetSendStatusUrl() { |
+ return GetBaseAutocheckoutUrl().Resolve("reportStatus"); |
} |
-GURL wallet::GetSendStatusUrl() { |
- return GetBaseWalletUrl().Resolve("reportStatus"); |
+GURL GetSaveToWalletUrl() { |
+ return GetBaseAutocheckoutUrl().Resolve("saveToWallet"); |
} |
-GURL wallet::GetSaveToWalletUrl() { |
- return GetBaseWalletUrl().Resolve("saveToWallet"); |
+GURL GetPassiveAuthUrl() { |
+ return GetBaseWalletUrl().Resolve("passiveauth"); |
} |
-GURL wallet::GetSecureUrl() { |
+GURL GetSecureUrl() { |
const CommandLine& command_line = *CommandLine::ForCurrentProcess(); |
std::string wallet_secure_url = |
command_line.GetSwitchValueASCII(switches::kWalletSecureServiceUrl); |
@@ -60,3 +70,4 @@ GURL wallet::GetSecureUrl() { |
GURL(kDefaultWalletSecureServiceUrl); |
} |
+} // namespace wallet |