summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfinnur@google.com <finnur@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-05 22:35:54 +0000
committerfinnur@google.com <finnur@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-05 22:35:54 +0000
commit749eea04dd5fd17761046e19c177735a8b9fa209 (patch)
tree6f6593cf698f2cde4d7c1ffcd7628fc7d39fa8a4
parent7ab71165aa4e44d7f3f8f925d5916e17c72fc63c (diff)
downloadchromium_src-749eea04dd5fd17761046e19c177735a8b9fa209.zip
chromium_src-749eea04dd5fd17761046e19c177735a8b9fa209.tar.gz
chromium_src-749eea04dd5fd17761046e19c177735a8b9fa209.tar.bz2
Checking in a patch from m0interactive, reviewed by pkasting. Quote:
Ctrl+U should show up view-source on Application shortcuts. According to pkasting in dev mailing list: "Ctrl-U for an application should do what the context menu option does: open a source tab in some normal window." Hence, made it a NEW_FOREGROUND_TAB for disposition BUG=http://crbug.com/5115 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7563 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/browser.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc
index 9d9d139..61ea2da 100644
--- a/chrome/browser/browser.cc
+++ b/chrome/browser/browser.cc
@@ -761,7 +761,7 @@ void Browser::ViewSource() {
NavigationEntry* entry = current_tab->controller()->GetLastCommittedEntry();
if (entry) {
GURL url("view-source:" + entry->url().spec());
- AddTabWithURL(url, GURL(), PageTransition::LINK, true, NULL);
+ OpenURL(url, GURL(), NEW_FOREGROUND_TAB, PageTransition::LINK);
}
}