| OLD | NEW |
| 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/metrics/field_trial.h" | 10 #include "base/metrics/field_trial.h" |
| 11 #include "components/autofill/common/autofill_switches.h" | 11 #include "components/autofill/core/common/autofill_switches.h" |
| 12 #include "google_apis/gaia/gaia_urls.h" | 12 #include "google_apis/gaia/gaia_urls.h" |
| 13 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
| 14 #include "net/base/url_util.h" | 14 #include "net/base/url_util.h" |
| 15 | 15 |
| 16 namespace autofill { | 16 namespace autofill { |
| 17 namespace { | 17 namespace { |
| 18 | 18 |
| 19 const char kProdWalletServiceUrl[] = "https://wallet.google.com/"; | 19 const char kProdWalletServiceUrl[] = "https://wallet.google.com/"; |
| 20 | 20 |
| 21 // TODO(ahutter): Remove this once production is ready. | 21 // TODO(ahutter): Remove this once production is ready. |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 url.host() == final_url.host() && | 147 url.host() == final_url.host() && |
| 148 url.path() == final_url.path(); | 148 url.path() == final_url.path(); |
| 149 } | 149 } |
| 150 | 150 |
| 151 bool IsUsingProd() { | 151 bool IsUsingProd() { |
| 152 return GetWalletHostUrl() == GURL(kProdWalletServiceUrl); | 152 return GetWalletHostUrl() == GURL(kProdWalletServiceUrl); |
| 153 } | 153 } |
| 154 | 154 |
| 155 } // namespace wallet | 155 } // namespace wallet |
| 156 } // namespace autofill | 156 } // namespace autofill |
| OLD | NEW |