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

Unified Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 325443002: Move about://-related constants from //content to //url (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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/renderer_host/render_process_host_impl.cc
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
index 98e45d6a13a3609dcd123f443c7b52a23bcfe362..74c725ae76e0fc57a3922d5cc815817d609bd309 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -1626,15 +1626,15 @@ void RenderProcessHostImpl::FilterURL(RenderProcessHost* rph,
// This is because the browser treats navigation to an empty GURL as a
// navigation to the home page. This is often a privileged page
// (chrome://newtab/) which is exactly what we don't want.
- *url = GURL(kAboutBlankURL);
+ *url = GURL(url::kAboutBlankURL);
RecordAction(base::UserMetricsAction("FilterURLTermiate_Invalid"));
return;
}
- if (url->SchemeIs(kAboutScheme)) {
+ if (url->SchemeIs(url::kAboutScheme)) {
// The renderer treats all URLs in the about: scheme as being about:blank.
// Canonicalize about: URLs to about:blank.
- *url = GURL(kAboutBlankURL);
+ *url = GURL(url::kAboutBlankURL);
RecordAction(base::UserMetricsAction("FilterURLTermiate_About"));
}
@@ -1648,7 +1648,7 @@ void RenderProcessHostImpl::FilterURL(RenderProcessHost* rph,
// URL. This prevents us from storing the blocked URL and becoming confused
// later.
VLOG(1) << "Blocked URL " << url->spec();
- *url = GURL(kAboutBlankURL);
+ *url = GURL(url::kAboutBlankURL);
RecordAction(base::UserMetricsAction("FilterURLTermiate_Blocked"));
}
}

Powered by Google App Engine
This is Rietveld 408576698