Index: chrome/browser/ui/browser_navigator.cc |
diff --git a/chrome/browser/ui/browser_navigator.cc b/chrome/browser/ui/browser_navigator.cc |
index d9ed0d33189b11c7e23e88428e494c973721b7c3..4c6b399ec4594bccf42a81620cd471269cf5679c 100644 |
--- a/chrome/browser/ui/browser_navigator.cc |
+++ b/chrome/browser/ui/browser_navigator.cc |
@@ -640,13 +640,13 @@ void Navigate(NavigateParams* params) { |
bool IsURLAllowedInIncognito(const GURL& url, |
content::BrowserContext* browser_context) { |
- if (url.scheme() == chrome::kViewSourceScheme) { |
+ if (url.scheme() == content::kViewSourceScheme) { |
// A view-source URL is allowed in incognito mode only if the URL itself |
// is allowed in incognito mode. Remove the "view-source:" from the start |
// of the URL and validate the rest. |
std::string stripped_spec = url.spec(); |
- DCHECK_GT(stripped_spec.size(), strlen(kViewSourceScheme)); |
- stripped_spec.erase(0, strlen(kViewSourceScheme)+1); |
+ DCHECK_GT(stripped_spec.size(), strlen(content::kViewSourceScheme)); |
+ stripped_spec.erase(0, strlen(content::kViewSourceScheme) + 1); |
GURL stripped_url(stripped_spec); |
return stripped_url.is_valid() && |
IsURLAllowedInIncognito(stripped_url, browser_context); |