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

Unified Diff: content/renderer/render_frame_impl.cc

Issue 273193004: Move some content url constants to /url. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
Index: content/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index b93c8ed0d153210c08025355fd6c4e3a0d9ae3fe..25fcae6e41cfb3194866b9cf8b73b95ccc9d7b83 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -3200,14 +3200,14 @@ WebNavigationPolicy RenderFrameImpl::DecidePolicyForNavigation(
(frame->isViewSourceModeEnabled() &&
type != blink::WebNavigationTypeReload);
- if (!should_fork && url.SchemeIs(kFileScheme)) {
+ if (!should_fork && url.SchemeIs(url::kFileScheme)) {
// Fork non-file to file opens. Check the opener URL if this is the
// initial navigation in a newly opened window.
GURL source_url(old_url);
if (is_initial_navigation && source_url.is_empty() && frame->opener())
source_url = frame->opener()->top()->document().url();
DCHECK(!source_url.is_empty());
- should_fork = !source_url.SchemeIs(kFileScheme);
+ should_fork = !source_url.SchemeIs(url::kFileScheme);
}
if (!should_fork) {

Powered by Google App Engine
This is Rietveld 408576698