summaryrefslogtreecommitdiffstats
path: root/chrome/browser/external_tab_container.cc
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-02 22:30:35 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-02 22:30:35 +0000
commitfba16f51d79a27b275cd858d9e888c1ace518972 (patch)
tree80c29e105c45af8a186a805c9d03ef97a648811c /chrome/browser/external_tab_container.cc
parent2e417c8257e0007ef3fb6929a507268d0450bd4a (diff)
downloadchromium_src-fba16f51d79a27b275cd858d9e888c1ace518972.zip
chromium_src-fba16f51d79a27b275cd858d9e888c1ace518972.tar.gz
chromium_src-fba16f51d79a27b275cd858d9e888c1ace518972.tar.bz2
Only create one downloads tab per window. If there is already a Downloads
tab, then switch to it instead of creating new one. Introduce FOCUS_SINGLETON_TAB disposition. patch by Mohamed Mansour <http://codereview.chromium.org/50003/show> Review URL: http://codereview.chromium.org/60062 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13045 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/external_tab_container.cc')
-rw-r--r--chrome/browser/external_tab_container.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/external_tab_container.cc b/chrome/browser/external_tab_container.cc
index 538ed445..9ac5706 100644
--- a/chrome/browser/external_tab_container.cc
+++ b/chrome/browser/external_tab_container.cc
@@ -191,6 +191,7 @@ void ExternalTabContainer::OpenURLFromTab(TabContents* source,
PageTransition::Type transition) {
switch (disposition) {
case CURRENT_TAB:
+ case SINGLETON_TAB:
case NEW_FOREGROUND_TAB:
case NEW_BACKGROUND_TAB:
case NEW_WINDOW: