summaryrefslogtreecommitdiffstats
path: root/chrome_frame/chrome_active_document.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome_frame/chrome_active_document.cc')
-rw-r--r--chrome_frame/chrome_active_document.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/chrome_frame/chrome_active_document.cc b/chrome_frame/chrome_active_document.cc
index 2b8e222..faab456 100644
--- a/chrome_frame/chrome_active_document.cc
+++ b/chrome_frame/chrome_active_document.cc
@@ -782,9 +782,8 @@ void ChromeActiveDocument::OnFindInPage() {
void ChromeActiveDocument::OnViewSource() {
DCHECK(navigation_info_.url.is_valid());
- std::string url_to_open = "view-source:";
- url_to_open += navigation_info_.url.spec();
- HostNavigate(GURL(url_to_open), GURL(), NEW_WINDOW);
+ HostNavigate(GURL(chrome::kViewSourceScheme + std::string(":") +
+ navigation_info_.url.spec()), GURL(), NEW_WINDOW);
}
void ChromeActiveDocument::OnDetermineSecurityZone(const GUID* cmd_group_guid,