Index: chrome/browser/ui/browser_navigator.cc |
diff --git a/chrome/browser/ui/browser_navigator.cc b/chrome/browser/ui/browser_navigator.cc |
index 54edd144c7823c7e45588c0e5ad516685f562ace..2dfb99839a03c98af75972d35840375b2322ff61 100644 |
--- a/chrome/browser/ui/browser_navigator.cc |
+++ b/chrome/browser/ui/browser_navigator.cc |
@@ -178,6 +178,7 @@ void NormalizeDisposition(browser::NavigateParams* params) { |
if (params->browser->profile()->IsOffTheRecord() && |
params->disposition == OFF_THE_RECORD) { |
params->disposition = NEW_FOREGROUND_TAB; |
+ params->show_window = true; |
} |
// Disposition trumps add types. ADD_SELECTED is a default, so we need to |
@@ -185,6 +186,8 @@ void NormalizeDisposition(browser::NavigateParams* params) { |
// background. |
if (params->disposition == NEW_BACKGROUND_TAB) |
params->tabstrip_add_types &= ~TabStripModel::ADD_SELECTED; |
+ else if (params->disposition == NEW_FOREGROUND_TAB) |
Evan Stade
2010/11/09 20:29:23
maybe NEW_FOREGROUND_TAB can be added to the dispo
sadrul
2010/11/09 20:50:54
I thought about doing a fallthrough switch-case on
Evan Stade
2010/11/09 20:56:18
what's wrong with showing the window for NEW_FOREG
sadrul
2010/11/09 21:06:39
[snip]
sadrul
2010/11/10 05:07:57
I have gone ahead and made this change. This essen
|
+ params->tabstrip_add_types |= TabStripModel::ADD_SELECTED; |
// Code that wants to open a new window typically expects it to be shown |
// automatically. |