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

Unified Diff: chrome/browser/autocomplete/zero_suggest_provider.cc

Issue 254763005: Move some content url constants to /url. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Initial patches. 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/browser/autocomplete/zero_suggest_provider.cc
diff --git a/chrome/browser/autocomplete/zero_suggest_provider.cc b/chrome/browser/autocomplete/zero_suggest_provider.cc
index 0a888820f24ec752cb23d84445fa52abf902d38e..72c2840430ee8ff96655e3b31b756e47f3ba9ed4 100644
--- a/chrome/browser/autocomplete/zero_suggest_provider.cc
+++ b/chrome/browser/autocomplete/zero_suggest_provider.cc
@@ -36,6 +36,7 @@
#include "net/base/escape.h"
#include "net/base/load_flags.h"
#include "net/base/net_util.h"
+#include "net/base/url_constants.h"
#include "net/http/http_request_headers.h"
#include "net/url_request/url_fetcher.h"
#include "net/url_request/url_request_status.h"
@@ -385,8 +386,8 @@ bool ZeroSuggestProvider::CanShowZeroSuggestWithoutSendingURL(
// with other schemes (e.g. chrome://). That may require improvements to
// the formatting of the verbatim result returned by MatchForCurrentURL().
if (!current_page_url.is_valid() ||
- ((current_page_url.scheme() != content::kHttpScheme) &&
- (current_page_url.scheme() != content::kHttpsScheme)))
+ ((current_page_url.scheme() != net::kHttpScheme) &&
+ (current_page_url.scheme() != net::kHttpsScheme)))
return false;
return true;

Powered by Google App Engine
This is Rietveld 408576698