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

Unified Diff: content/browser/browser_url_handler_impl.cc

Issue 15950011: content: Move kViewSourceScheme constant into content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 | « chrome_frame/utils.cc ('k') | content/browser/child_process_security_policy_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 126e48554fbb73035c6cf755d24c08734f5eab50..ba3112427f92f7b0d5dea9b1dbf0659e854175a0 100644
--- a/content/browser/browser_url_handler_impl.cc
+++ b/content/browser/browser_url_handler_impl.cc
@@ -15,7 +15,7 @@ namespace content {
// Handles rewriting view-source URLs for what we'll actually load.
static bool HandleViewSource(GURL* url,
BrowserContext* browser_context) {
- if (url->SchemeIs(chrome::kViewSourceScheme)) {
+ if (url->SchemeIs(kViewSourceScheme)) {
// Load the inner URL instead.
*url = GURL(url->path());
@@ -48,12 +48,12 @@ static bool HandleViewSource(GURL* url,
// Turns a non view-source URL into the corresponding view-source URL.
static bool ReverseViewSource(GURL* url, BrowserContext* browser_context) {
// No action necessary if the URL is already view-source:
- if (url->SchemeIs(chrome::kViewSourceScheme))
+ if (url->SchemeIs(kViewSourceScheme))
return false;
url_canon::Replacements<char> repl;
- repl.SetScheme(chrome::kViewSourceScheme,
- url_parse::Component(0, strlen(chrome::kViewSourceScheme)));
+ repl.SetScheme(kViewSourceScheme,
+ url_parse::Component(0, strlen(kViewSourceScheme)));
repl.SetPath(url->spec().c_str(),
url_parse::Component(0, url->spec().size()));
*url = url->ReplaceComponents(repl);
« no previous file with comments | « chrome_frame/utils.cc ('k') | content/browser/child_process_security_policy_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698