Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(261)

Unified Diff: chrome/browser/browser_navigator.cc

Issue 4534002: Fix showing some foreground tabs. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Merge with trunk. Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/browser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_navigator.cc
diff --git a/chrome/browser/browser_navigator.cc b/chrome/browser/browser_navigator.cc
index 54edd144c7823c7e45588c0e5ad516685f562ace..17cd7011d38d18f558bae5a1cbe4d97e5acfa0ae 100644
--- a/chrome/browser/browser_navigator.cc
+++ b/chrome/browser/browser_navigator.cc
@@ -185,6 +185,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)
+ params->tabstrip_add_types |= TabStripModel::ADD_SELECTED;
// Code that wants to open a new window typically expects it to be shown
// automatically.
« no previous file with comments | « no previous file | chrome/browser/ui/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698