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

Unified Diff: chrome/renderer/content_settings_observer.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 | « chrome/common/net/url_fixer_upper.cc ('k') | chrome/renderer/extensions/dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/content_settings_observer.cc
diff --git a/chrome/renderer/content_settings_observer.cc b/chrome/renderer/content_settings_observer.cc
index 0507e537df7f8cc6092777de5a06ca92047a96f4..62b62381acada6fad49132b3fde003c1355f604f 100644
--- a/chrome/renderer/content_settings_observer.cc
+++ b/chrome/renderer/content_settings_observer.cc
@@ -663,8 +663,8 @@ bool ContentSettingsObserver::IsWhitelistedForContentSettings(
// If the scheme is file:, an empty file name indicates a directory listing,
// which requires JavaScript to function properly.
- if (EqualsASCII(origin.protocol(), chrome::kFileScheme)) {
- return document_url.SchemeIs(chrome::kFileScheme) &&
+ if (EqualsASCII(origin.protocol(), content::kFileScheme)) {
+ return document_url.SchemeIs(content::kFileScheme) &&
document_url.ExtractFileName().empty();
}
« no previous file with comments | « chrome/common/net/url_fixer_upper.cc ('k') | chrome/renderer/extensions/dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698