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

Unified Diff: extensions/renderer/script_context.cc

Issue 325443002: Move about://-related constants from //content to //url (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Android ifx 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
« no previous file with comments | « content/test/accessibility_browser_test_utils.cc ('k') | url/url_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/script_context.cc
diff --git a/extensions/renderer/script_context.cc b/extensions/renderer/script_context.cc
index 2a2e6f05f1cdd52e0407755da183c1d2cf31219f..b4eeefd007e3e998ff7716083a31b3613a62596c 100644
--- a/extensions/renderer/script_context.cc
+++ b/extensions/renderer/script_context.cc
@@ -172,7 +172,7 @@ GURL ScriptContext::GetEffectiveDocumentURL(const blink::WebFrame* frame,
// Common scenario. If |match_about_blank| is false (as is the case in most
// extensions), or if the frame is not an about:-page, just return
// |document_url| (supposedly the URL of the frame).
- if (!match_about_blank || !document_url.SchemeIs(content::kAboutScheme))
+ if (!match_about_blank || !document_url.SchemeIs(url::kAboutScheme))
return document_url;
// Non-sandboxed about:blank and about:srcdoc pages inherit their security
@@ -182,7 +182,7 @@ GURL ScriptContext::GetEffectiveDocumentURL(const blink::WebFrame* frame,
do {
parent = parent->parent() ? parent->parent() : parent->opener();
} while (parent != NULL &&
- GURL(parent->document().url()).SchemeIs(content::kAboutScheme));
+ GURL(parent->document().url()).SchemeIs(url::kAboutScheme));
if (parent) {
// Only return the parent URL if the frame can access it.
« no previous file with comments | « content/test/accessibility_browser_test_utils.cc ('k') | url/url_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698