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

Unified Diff: chrome/browser/tabs/tab_strip_model.cc

Issue 4327001: Open tab in the correct location from a tab's context menu. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tabs/tab_strip_model.cc
diff --git a/chrome/browser/tabs/tab_strip_model.cc b/chrome/browser/tabs/tab_strip_model.cc
index a3804b7966392f1cc3fa9dbf11f99fbd11aa66dd..80f048b7e56b1148b1eae730d071347d54d73a21 100644
--- a/chrome/browser/tabs/tab_strip_model.cc
+++ b/chrome/browser/tabs/tab_strip_model.cc
@@ -644,7 +644,7 @@ void TabStripModel::ExecuteContextMenuCommand(
case CommandNewTab:
UserMetrics::RecordAction(UserMetricsAction("TabContextMenu_NewTab"),
profile_);
- delegate()->AddBlankTab(true);
+ delegate()->AddBlankTabAt(context_index + 1, true);
sky 2010/11/02 22:39:17 I tend to think the right place for this fix is in
break;
case CommandReload:
UserMetrics::RecordAction(UserMetricsAction("TabContextMenu_Reload"),
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698