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 "chrome/browser/ui/app_list/search/common/webservice_search_provider.h" | 5 #include "chrome/browser/ui/app_list/search/common/webservice_search_provider.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 if (!query_as_url.username().empty() || | 83 if (!query_as_url.username().empty() || |
84 !query_as_url.port().empty() || | 84 !query_as_url.port().empty() || |
85 !query_as_url.query().empty() || | 85 !query_as_url.query().empty() || |
86 !query_as_url.ref().empty()) { | 86 !query_as_url.ref().empty()) { |
87 return true; | 87 return true; |
88 } | 88 } |
89 | 89 |
90 // Don't send anything for https except the hostname. Hostnames are OK | 90 // Don't send anything for https except the hostname. Hostnames are OK |
91 // because they are visible when the TCP connection is established, but the | 91 // because they are visible when the TCP connection is established, but the |
92 // specific path may reveal private information. | 92 // specific path may reveal private information. |
93 if (LowerCaseEqualsASCII(query_as_url.scheme(), content::kHttpsScheme) && | 93 if (LowerCaseEqualsASCII(query_as_url.scheme(), url::kHttpsScheme) && |
94 !query_as_url.path().empty() && query_as_url.path() != "/") { | 94 !query_as_url.path().empty() && query_as_url.path() != "/") { |
95 return true; | 95 return true; |
96 } | 96 } |
97 | 97 |
98 return false; | 98 return false; |
99 } | 99 } |
100 | 100 |
101 } // namespace app_list | 101 } // namespace app_list |
OLD | NEW |