| Index: chrome/browser/ui/browser_commands.cc
|
| diff --git a/chrome/browser/ui/browser_commands.cc b/chrome/browser/ui/browser_commands.cc
|
| index ff551e12b86ef59c226d6fce79a916aedca2e295..b8de0e38626db81b0e299152de97eca6a7bd7da4 100644
|
| --- a/chrome/browser/ui/browser_commands.cc
|
| +++ b/chrome/browser/ui/browser_commands.cc
|
| @@ -188,8 +188,11 @@ WebContents* GetTabAndRevertIfNecessary(Browser* browser,
|
| case NEW_FOREGROUND_TAB:
|
| case NEW_BACKGROUND_TAB: {
|
| WebContents* new_tab = current_tab->Clone();
|
| - if (disposition == NEW_BACKGROUND_TAB)
|
| - new_tab->WasHidden();
|
| + if (disposition == NEW_BACKGROUND_TAB) {
|
| + // TODO(tapted): WebContents::Clone() should be able to take a value for
|
| + // CreateParams::initially_hidden. Currently, it always uses |false|.
|
| + new_tab->MarkBackgrounded();
|
| + }
|
| browser->tab_strip_model()->AddWebContents(
|
| new_tab, -1, ui::PAGE_TRANSITION_LINK,
|
| (disposition == NEW_FOREGROUND_TAB) ?
|
|
|