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

Unified Diff: chrome/browser/ui/browser_navigator.cc

Issue 11419276: Remove tabstrip wrappers in browser_tabstrip. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: gtk Created 8 years 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 | « chrome/browser/ui/browser_focus_uitest.cc ('k') | chrome/browser/ui/browser_tabstrip.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_navigator.cc
diff --git a/chrome/browser/ui/browser_navigator.cc b/chrome/browser/ui/browser_navigator.cc
index 08138467f8f49ed884c1388d4cfc6f9e2793054f..248b8411072b82dc49234a424eaac6473b018cf4 100644
--- a/chrome/browser/ui/browser_navigator.cc
+++ b/chrome/browser/ui/browser_navigator.cc
@@ -560,8 +560,10 @@ void Navigate(NavigateParams* params) {
}
// If the singleton tab isn't already selected, select it.
- if (params->source_contents != params->target_contents)
- chrome::ActivateTabAt(params->browser, singleton_index, user_initiated);
+ if (params->source_contents != params->target_contents) {
+ params->browser->tab_strip_model()->ActivateTabAt(singleton_index,
+ user_initiated);
+ }
}
if (params->disposition != CURRENT_TAB) {
« no previous file with comments | « chrome/browser/ui/browser_focus_uitest.cc ('k') | chrome/browser/ui/browser_tabstrip.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698