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

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

Issue 10702029: Move tab functions off Browser into browser_tabstrip and browser_tabrestore. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 months 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
Index: chrome/browser/ui/tabs/tab_strip_model.cc
===================================================================
--- chrome/browser/ui/tabs/tab_strip_model.cc (revision 145001)
+++ chrome/browser/ui/tabs/tab_strip_model.cc (working copy)
@@ -380,17 +380,6 @@
return kNoTab;
}
-int TabStripModel::GetIndexOfController(
- const NavigationController* controller) const {
- int index = 0;
- TabContentsDataVector::const_iterator iter = contents_data_.begin();
- for (; iter != contents_data_.end(); ++iter, ++index) {
- if (&(*iter)->contents->web_contents()->GetController() == controller)
- return index;
- }
- return kNoTab;
-}
-
void TabStripModel::UpdateTabContentsStateAt(int index,
TabStripModelObserver::TabChangeType change_type) {
DCHECK(ContainsIndex(index));
« no previous file with comments | « chrome/browser/ui/tabs/tab_strip_model.h ('k') | chrome/browser/ui/tabs/tab_strip_model_order_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698