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

Unified Diff: chrome/browser/renderer_host/offline_resource_throttle.cc

Issue 254763005: Move some content url constants to /url. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update url/BUILD.gn 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/browser/renderer_host/offline_resource_throttle.cc
diff --git a/chrome/browser/renderer_host/offline_resource_throttle.cc b/chrome/browser/renderer_host/offline_resource_throttle.cc
index 598debdcf2e89bc28d3acf3121a50126b9d06cf1..9a7f36965b2391b037d5ccf06f78b4d2d5498ac8 100644
--- a/chrome/browser/renderer_host/offline_resource_throttle.cc
+++ b/chrome/browser/renderer_host/offline_resource_throttle.cc
@@ -24,6 +24,7 @@
#include "net/base/network_change_notifier.h"
#include "net/url_request/url_request.h"
#include "net/url_request/url_request_context.h"
+#include "url/url_constants.h"
#include "webkit/browser/appcache/appcache_service.h"
using content::BrowserThread;
@@ -119,8 +120,8 @@ void OfflineResourceThrottle::OnBlockingPageComplete(bool proceed) {
bool OfflineResourceThrottle::IsRemote(const GURL& url) const {
return !net::IsLocalhost(url.host()) && (url.SchemeIs(content::kFtpScheme) ||
- url.SchemeIs(content::kHttpScheme) ||
- url.SchemeIs(content::kHttpsScheme));
+ url.SchemeIs(url::kHttpScheme) ||
+ url.SchemeIs(url::kHttpsScheme));
}
bool OfflineResourceThrottle::ShouldShowOfflinePage(const GURL& url) const {

Powered by Google App Engine
This is Rietveld 408576698