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

Unified Diff: content/browser/browser_url_handler_impl.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: content/browser/browser_url_handler_impl.cc
diff --git a/content/browser/browser_url_handler_impl.cc b/content/browser/browser_url_handler_impl.cc
index e5d1026e92d84061def886059e71e231dae637e0..f5ba01e703b1ba5954d4e28bcdf293a7e5663192 100644
--- a/content/browser/browser_url_handler_impl.cc
+++ b/content/browser/browser_url_handler_impl.cc
@@ -11,6 +11,7 @@
#include "content/browser/webui/web_ui_impl.h"
#include "content/public/browser/content_browser_client.h"
#include "content/public/common/url_constants.h"
+#include "net/base/url_constants.h"
#include "url/gurl.h"
namespace content {
@@ -24,14 +25,9 @@ static bool HandleViewSource(GURL* url, BrowserContext* browser_context) {
// Bug 26129: limit view-source to view the content and not any
// other kind of 'active' url scheme like 'javascript' or 'data'.
static const char* const default_allowed_sub_schemes[] = {
- kHttpScheme,
- kHttpsScheme,
- kFtpScheme,
- kChromeDevToolsScheme,
- kChromeUIScheme,
- kFileScheme,
- kFileSystemScheme
- };
+ net::kHttpScheme, net::kHttpsScheme, kFtpScheme,
+ kChromeDevToolsScheme, kChromeUIScheme, kFileScheme,
+ kFileSystemScheme};
// Merge all the schemes for which view-source is allowed by default, with
// the WebUI schemes defined by the ContentBrowserClient.

Powered by Google App Engine
This is Rietveld 408576698