const char kProdWalletServiceUrl[] = "https://wallet.google.com/";
-// TODO(ahutter): Remove this once production is ready.
const char kSandboxWalletServiceUrl[] =
"https://wallet-web.sandbox.google.com/";
-// TODO(ahutter): Remove this once production is ready.
const char kSandboxWalletSecureServiceUrl[] =
"https://wallet-web.sandbox.google.com/";
GURL GetBaseEncryptedFrontendUrl(size_t user_index) {
const CommandLine& command_line = *CommandLine::ForCurrentProcess();
- // TODO(ahutter): Stop checking these switches once we switch over to prod.
GURL base_url = IsWalletProductionEnabled() ||
command_line.HasSwitch(switches::kWalletServiceUrl) ?
GetWalletHostUrl() : GetBaseSecureUrl();
*user_index = 0;
std::string query_str = url.query();
- url_parse::Component query(0, query_str.length());
- url_parse::Component key, value;
+ url::Component query(0, query_str.length());
+ url::Component key, value;
const char kUserIndexKey[] = "authuser";
- while (url_parse::ExtractQueryKeyValue(query_str.c_str(), &query, &key,
- &value)) {
+ while (url::ExtractQueryKeyValue(query_str.c_str(), &query, &key, &value)) {
if (key.is_nonempty() &&
query_str.substr(key.begin, key.len) == kUserIndexKey) {
base::StringToSizeT(query_str.substr(value.begin, value.len), user_index);