OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/autofill/wallet/wallet_service_url.h" | 5 #include "components/autofill/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 "components/autofill/common/autofill_switches.h" | 10 #include "components/autofill/common/autofill_switches.h" |
11 #include "google_apis/gaia/gaia_urls.h" | 11 #include "google_apis/gaia/gaia_urls.h" |
12 #include "googleurl/src/gurl.h" | 12 #include "googleurl/src/gurl.h" |
13 #include "net/base/url_util.h" | 13 #include "net/base/url_util.h" |
14 | 14 |
15 namespace { | 15 namespace { |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 | 98 |
99 bool IsSignInContinueUrl(const GURL& url) { | 99 bool IsSignInContinueUrl(const GURL& url) { |
100 GURL final_url = wallet::GetSignInContinueUrl(); | 100 GURL final_url = wallet::GetSignInContinueUrl(); |
101 return url.SchemeIsSecure() && | 101 return url.SchemeIsSecure() && |
102 url.host() == final_url.host() && | 102 url.host() == final_url.host() && |
103 url.path() == final_url.path(); | 103 url.path() == final_url.path(); |
104 } | 104 } |
105 | 105 |
106 } // namespace wallet | 106 } // namespace wallet |
107 } // namespace autofill | 107 } // namespace autofill |
OLD | NEW |