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

Unified Diff: chrome/browser/ui/views/tabs/browser_tab_strip_controller.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/views/tabs/browser_tab_strip_controller.cc
===================================================================
--- chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc (revision 145001)
+++ chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc (working copy)
@@ -12,6 +12,7 @@
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
+#include "chrome/browser/ui/browser_tabstrip.h"
#include "chrome/browser/ui/search/search.h"
#include "chrome/browser/ui/search/search_delegate.h"
#include "chrome/browser/ui/search/search_model.h"
@@ -447,7 +448,7 @@
// repainting of tab's background.
int active_index = GetActiveIndex();
DCHECK_NE(active_index, -1);
- SetTabDataAt(browser_->GetTabContentsAt(active_index), active_index);
+ SetTabDataAt(chrome::GetTabContentsAt(browser_, active_index), active_index);
}
////////////////////////////////////////////////////////////////////////////////
@@ -459,7 +460,7 @@
// background.
int active_index = GetActiveIndex();
DCHECK_NE(active_index, -1);
- SetTabDataAt(browser_->GetTabContentsAt(active_index), active_index);
+ SetTabDataAt(chrome::GetTabContentsAt(browser_, active_index), active_index);
}
void BrowserTabStripController::OnToolbarBackgroundAnimatorCanceled(
@@ -477,8 +478,8 @@
GetActiveIndex();
if (index == -1)
return;
- SetTabDataAt(tab_contents ? tab_contents : browser_->GetTabContentsAt(index),
- index);
+ SetTabDataAt(tab_contents ? tab_contents :
+ chrome::GetTabContentsAt(browser_, index), index);
}
////////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « chrome/browser/ui/views/tab_contents/render_view_context_menu_win.cc ('k') | chrome/browser/ui/views/toolbar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698