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

Unified Diff: content/public/common/url_constants.cc

Issue 11819050: Revert 175890: actually, looks like we want this to also help move chromeos webui pages out of src/… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 11 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
« no previous file with comments | « content/public/common/url_constants.h ('k') | content/renderer/render_view_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/url_constants.cc
===================================================================
--- content/public/common/url_constants.cc (revision 175970)
+++ content/public/common/url_constants.cc (working copy)
@@ -5,6 +5,7 @@
#include "content/public/common/url_constants.h"
#include "content/common/savable_url_schemes.h"
+#include "googleurl/src/gurl.h"
namespace chrome {
@@ -66,4 +67,13 @@
return GetSavableSchemesInternal();
}
+bool HasWebUIScheme(const GURL& url) {
+ return
+#if !defined(OS_IOS)
+ url.SchemeIs(chrome::kChromeDevToolsScheme) ||
+ url.SchemeIs(chrome::kChromeInternalScheme) ||
+#endif
+ url.SchemeIs(chrome::kChromeUIScheme);
+}
+
} // namespace content
« no previous file with comments | « content/public/common/url_constants.h ('k') | content/renderer/render_view_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698