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

Unified Diff: chrome_frame/chrome_active_document.cc

Issue 15950011: content: Move kViewSourceScheme constant into content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « chrome/renderer/extensions/user_script_slave.cc ('k') | chrome_frame/chrome_frame_activex_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/chrome_active_document.cc
diff --git a/chrome_frame/chrome_active_document.cc b/chrome_frame/chrome_active_document.cc
index 699e6532b3330728bf831c2e4630edf546e8a170..c1736fdea192255da17132cb8ea02a0d39d4a59b 100644
--- a/chrome_frame/chrome_active_document.cc
+++ b/chrome_frame/chrome_active_document.cc
@@ -271,7 +271,7 @@ STDMETHODIMP ChromeActiveDocument::Load(BOOL fully_avalable,
// For gcf: URLs allow only about and view-source schemes to pass through for
// further inspection.
bool is_safe_scheme = cf_url.gurl().SchemeIs(chrome::kAboutScheme) ||
- cf_url.gurl().SchemeIs(chrome::kViewSourceScheme);
+ cf_url.gurl().SchemeIs(content::kViewSourceScheme);
if (cf_url.is_chrome_protocol() && !is_safe_scheme &&
!GetConfigBool(false, kAllowUnsafeURLs)) {
DLOG(ERROR) << __FUNCTION__ << " gcf: not allowed:" << url;
@@ -872,7 +872,7 @@ void ChromeActiveDocument::OnFindInPage() {
void ChromeActiveDocument::OnViewSource() {
DCHECK(navigation_info_->url.is_valid());
- HostNavigate(GURL(chrome::kViewSourceScheme + std::string(":") +
+ HostNavigate(GURL(content::kViewSourceScheme + std::string(":") +
navigation_info_->url.spec()), GURL(), NEW_WINDOW);
}
« no previous file with comments | « chrome/renderer/extensions/user_script_slave.cc ('k') | chrome_frame/chrome_frame_activex_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698