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

Unified Diff: content/public/browser/web_contents_delegate.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 | « content/browser/web_contents/navigation_entry_impl.cc ('k') | content/public/common/url_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/web_contents_delegate.cc
diff --git a/content/public/browser/web_contents_delegate.cc b/content/public/browser/web_contents_delegate.cc
index 61508611bf04e27c72733b702d4fee3e1211e1a2..60263284c1abda3ad2ede05291b3bc0771d82308 100644
--- a/content/public/browser/web_contents_delegate.cc
+++ b/content/public/browser/web_contents_delegate.cc
@@ -87,8 +87,7 @@ void WebContentsDelegate::ViewSourceForTab(WebContents* source,
// Fall back implementation based entirely on the view-source scheme.
// It suffers from http://crbug.com/523 and that is why browser overrides
// it with proper implementation.
- GURL url = GURL(chrome::kViewSourceScheme + std::string(":") +
- page_url.spec());
+ GURL url = GURL(kViewSourceScheme + std::string(":") + page_url.spec());
OpenURLFromTab(source, OpenURLParams(url, Referrer(),
NEW_FOREGROUND_TAB,
PAGE_TRANSITION_LINK, false));
@@ -98,8 +97,7 @@ void WebContentsDelegate::ViewSourceForFrame(WebContents* source,
const GURL& frame_url,
const PageState& page_state) {
// Same as ViewSourceForTab, but for given subframe.
- GURL url = GURL(chrome::kViewSourceScheme + std::string(":") +
- frame_url.spec());
+ GURL url = GURL(kViewSourceScheme + std::string(":") + frame_url.spec());
OpenURLFromTab(source, OpenURLParams(url, Referrer(),
NEW_FOREGROUND_TAB,
PAGE_TRANSITION_LINK, false));
« no previous file with comments | « content/browser/web_contents/navigation_entry_impl.cc ('k') | content/public/common/url_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698