Index: chrome/browser/ui/browser_tabstrip.cc |
diff --git a/chrome/browser/ui/browser_tabstrip.cc b/chrome/browser/ui/browser_tabstrip.cc |
index 93f4a7bb2bcb79de616c92ea4c94ff0b122f9f8a..995e0de1a4ecf609711db7b6108d8a513a4722cf 100644 |
--- a/chrome/browser/ui/browser_tabstrip.cc |
+++ b/chrome/browser/ui/browser_tabstrip.cc |
@@ -24,10 +24,9 @@ |
// WebContents, but we want to include the time it takes to create the |
// WebContents object too. |
base::TimeTicks new_tab_start_time = base::TimeTicks::Now(); |
- bool show_ntp = url.is_empty(); |
chrome::NavigateParams params(browser, |
- show_ntp ? GURL(chrome::kChromeUINewTabURL) : url, |
- show_ntp ? ui::PAGE_TRANSITION_AUTO_TOPLEVEL : ui::PAGE_TRANSITION_TYPED); |
+ url.is_empty() ? GURL(chrome::kChromeUINewTabURL) : url, |
+ ui::PAGE_TRANSITION_TYPED); |
params.disposition = foreground ? NEW_FOREGROUND_TAB : NEW_BACKGROUND_TAB; |
params.tabstrip_index = idx; |
chrome::Navigate(¶ms); |