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

Side by Side Diff: components/autofill/content/browser/wallet/wallet_service_url.cc

Issue 545303002: Remove obsolete Wallet endpoint. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/autofill/content/browser/wallet/wallet_service_url.h" 5 #include "components/autofill/content/browser/wallet/wallet_service_url.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/format_macros.h" 10 #include "base/format_macros.h"
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 120
121 GURL GetAcceptLegalDocumentsUrl(size_t user_index) { 121 GURL GetAcceptLegalDocumentsUrl(size_t user_index) {
122 return GetBaseAutocheckoutUrl(user_index).Resolve("acceptLegalDocument"); 122 return GetBaseAutocheckoutUrl(user_index).Resolve("acceptLegalDocument");
123 } 123 }
124 124
125 GURL GetAuthenticateInstrumentUrl(size_t user_index) { 125 GURL GetAuthenticateInstrumentUrl(size_t user_index) {
126 return GetBaseEncryptedFrontendUrl(user_index) 126 return GetBaseEncryptedFrontendUrl(user_index)
127 .Resolve("authenticateInstrument?s7e=cvn"); 127 .Resolve("authenticateInstrument?s7e=cvn");
128 } 128 }
129 129
130 GURL GetSendStatusUrl(size_t user_index) {
131 return GetBaseAutocheckoutUrl(user_index).Resolve("reportStatus");
132 }
133
134 GURL GetSaveToWalletNoEscrowUrl(size_t user_index) { 130 GURL GetSaveToWalletNoEscrowUrl(size_t user_index) {
135 return GetBaseAutocheckoutUrl(user_index).Resolve("saveToWallet"); 131 return GetBaseAutocheckoutUrl(user_index).Resolve("saveToWallet");
136 } 132 }
137 133
138 GURL GetSaveToWalletUrl(size_t user_index) { 134 GURL GetSaveToWalletUrl(size_t user_index) {
139 return GetBaseEncryptedFrontendUrl(user_index) 135 return GetBaseEncryptedFrontendUrl(user_index)
140 .Resolve("saveToWallet?s7e=card_number%3Bcvn"); 136 .Resolve("saveToWallet?s7e=card_number%3Bcvn");
141 } 137 }
142 138
143 GURL GetPassiveAuthUrl(size_t user_index) { 139 GURL GetPassiveAuthUrl(size_t user_index) {
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 false) || 193 false) ||
198 IsSignInContinueUrl(url, &unused); 194 IsSignInContinueUrl(url, &unused);
199 } 195 }
200 196
201 bool IsUsingProd() { 197 bool IsUsingProd() {
202 return GetWalletHostUrl() == GURL(kProdWalletServiceUrl); 198 return GetWalletHostUrl() == GURL(kProdWalletServiceUrl);
203 } 199 }
204 200
205 } // namespace wallet 201 } // namespace wallet
206 } // namespace autofill 202 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698