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

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

Issue 11791003: Change the behavior of --wallet-service-url. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 7 years, 12 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 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
« no previous file with comments | « chrome/browser/autofill/wallet/wallet_service_url.h ('k') | chrome/browser/autofill/wallet/wallet_service_url_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698