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

Unified Diff: content/renderer/render_view_impl.cc

Issue 120593003: Move kFileScheme constant into content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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.cc ('k') | content/shell/browser/shell_content_browser_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index a0ea58d9ac50d107aebfa621289e35cfb4bb88b6..be301da3f21dda598e6c03d7cfeb2726186a3631 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -3266,14 +3266,14 @@ WebNavigationPolicy RenderViewImpl::DecidePolicyForNavigation(
(frame->isViewSourceModeEnabled() &&
type != blink::WebNavigationTypeReload);
- if (!should_fork && url.SchemeIs(chrome::kFileScheme)) {
+ if (!should_fork && url.SchemeIs(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(chrome::kFileScheme);
+ should_fork = !source_url.SchemeIs(kFileScheme);
}
if (!should_fork) {
« no previous file with comments | « content/public/common/url_constants.cc ('k') | content/shell/browser/shell_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698