summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorfinnur@google.com <finnur@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-23 05:34:56 +0000
committerfinnur@google.com <finnur@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-23 05:34:56 +0000
commitd13a9c5a7df330257114609d6c660432da5d3bde (patch)
tree112e2a0543f9845c69f6359e32f5780bf3ff4843 /chrome
parent7aa12bc2fb78971ff8ef65156eacd42a436bcaaa (diff)
downloadchromium_src-d13a9c5a7df330257114609d6c660432da5d3bde.zip
chromium_src-d13a9c5a7df330257114609d6c660432da5d3bde.tar.gz
chromium_src-d13a9c5a7df330257114609d6c660432da5d3bde.tar.bz2
Reverting my landing (of a patch by external contributer).
I jumped the gun, Peter raised additional issues after we both LGTM'ed (and I didn't notice those emails). TBR=pkasting Review URL: http://codereview.chromium.org/16234 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7412 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/browser.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc
index 5ef6264..9d9d139 100644
--- a/chrome/browser/browser.cc
+++ b/chrome/browser/browser.cc
@@ -761,10 +761,7 @@ void Browser::ViewSource() {
NavigationEntry* entry = current_tab->controller()->GetLastCommittedEntry();
if (entry) {
GURL url("view-source:" + entry->url().spec());
- if (type_ == TYPE_APP)
- OpenURL(url, GURL(), NEW_FOREGROUND_TAB, PageTransition::LINK);
- else
- AddTabWithURL(url, GURL(), PageTransition::LINK, true, NULL);
+ AddTabWithURL(url, GURL(), PageTransition::LINK, true, NULL);
}
}