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

Unified Diff: chrome/common/search_urls.cc

Issue 254763005: Move some content url constants to /url. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add some missing files. Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/search_urls.cc
diff --git a/chrome/common/search_urls.cc b/chrome/common/search_urls.cc
index 98568429e5d2334348244c46976c1254fdfc6bc8..0c88d148934970c21f255cbc1296c58f57a3faff 100644
--- a/chrome/common/search_urls.cc
+++ b/chrome/common/search_urls.cc
@@ -6,6 +6,7 @@
#include "content/public/common/url_constants.h"
#include "url/gurl.h"
+#include "url/url_constants.h"
namespace search {
@@ -14,8 +15,8 @@ bool MatchesOrigin(const GURL& my_url, const GURL& other_url) {
return my_url.host() == other_url.host() &&
my_url.port() == other_url.port() &&
(my_url.scheme() == other_url.scheme() ||
- (my_url.SchemeIs(content::kHttpsScheme) &&
- other_url.SchemeIs(content::kHttpScheme)));
+ (my_url.SchemeIs(url::kHttpsScheme) &&
+ other_url.SchemeIs(url::kHttpScheme)));
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698