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

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: Rebase and address some style nits. 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..c32bd2f72534852023713562a618e47b3577910d 100644
--- a/chrome/common/search_urls.cc
+++ b/chrome/common/search_urls.cc
@@ -5,6 +5,7 @@
#include "chrome/common/search_urls.h"
#include "content/public/common/url_constants.h"
+#include "net/base/url_constants.h"
#include "url/gurl.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(net::kHttpsScheme) &&
+ other_url.SchemeIs(net::kHttpScheme)));
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698