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 "components/autofill/browser/autofill_download_url.h" | 5 #include "components/autofill/browser/autofill_download_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/core/common/autofill_switches.h" |
11 #include "googleurl/src/gurl.h" | 11 #include "googleurl/src/gurl.h" |
12 | 12 |
13 namespace autofill { | 13 namespace autofill { |
14 namespace { | 14 namespace { |
15 | 15 |
16 const char kDefaultAutofillServiceUrl[] = | 16 const char kDefaultAutofillServiceUrl[] = |
17 "https://clients1.google.com/tbproxy/af/"; | 17 "https://clients1.google.com/tbproxy/af/"; |
18 | 18 |
19 #if defined(GOOGLE_CHROME_BUILD) | 19 #if defined(GOOGLE_CHROME_BUILD) |
20 const char kClientName[] = "Google Chrome"; | 20 const char kClientName[] = "Google Chrome"; |
(...skipping 17 matching lines...) Expand all Loading... |
38 std::string baseAutofillServiceUrl = GetBaseAutofillUrl(); | 38 std::string baseAutofillServiceUrl = GetBaseAutofillUrl(); |
39 return GURL(baseAutofillServiceUrl + "query?client=" + kClientName); | 39 return GURL(baseAutofillServiceUrl + "query?client=" + kClientName); |
40 } | 40 } |
41 | 41 |
42 GURL GetAutofillUploadUrl() { | 42 GURL GetAutofillUploadUrl() { |
43 std::string baseAutofillServiceUrl = GetBaseAutofillUrl(); | 43 std::string baseAutofillServiceUrl = GetBaseAutofillUrl(); |
44 return GURL(baseAutofillServiceUrl + "upload?client=" + kClientName); | 44 return GURL(baseAutofillServiceUrl + "upload?client=" + kClientName); |
45 } | 45 } |
46 | 46 |
47 } // namespace autofill | 47 } // namespace autofill |
OLD | NEW |