Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(861)

Side by Side Diff: chrome/browser/ui/app_list/search/common/webservice_search_provider.cc

Issue 254763005: Move some content url constants to /url. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resolve a merge conflict. Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/search_engines/template_url_service.cc ('k') | chrome/browser/ui/browser_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698