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

Unified Diff: chrome/browser/ui/sync/browser_synced_window_delegate.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/sync/browser_synced_window_delegate.cc
===================================================================
--- chrome/browser/ui/sync/browser_synced_window_delegate.cc (revision 145001)
+++ chrome/browser/ui/sync/browser_synced_window_delegate.cc (working copy)
@@ -10,6 +10,7 @@
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/ui/browser_list.h"
+#include "chrome/browser/ui/browser_tabstrip.h"
#include "chrome/browser/ui/sync/tab_contents_synced_tab_delegate.h"
#include "chrome/browser/ui/tab_contents/tab_contents.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
@@ -47,9 +48,9 @@
const browser_sync::SyncedTabDelegate* tab) const {
for (int i = 0; i < browser_->tab_count(); i++) {
browser_sync::SyncedTabDelegate* current =
- browser_->GetTabContentsAt(i)->synced_tab_delegate();
+ chrome::GetTabContentsAt(browser_, i)->synced_tab_delegate();
if (tab == current)
- return browser_->IsTabPinned(i);
+ return browser_->tab_strip_model()->IsTabPinned(i);
}
NOTREACHED();
return false;
@@ -57,7 +58,7 @@
browser_sync::SyncedTabDelegate* BrowserSyncedWindowDelegate::GetTabAt(
int index) const {
- return browser_->GetTabContentsAt(index)->synced_tab_delegate();
+ return chrome::GetTabContentsAt(browser_, index)->synced_tab_delegate();
}
SessionID::id_type BrowserSyncedWindowDelegate::GetTabIdAt(int index) const {
« no previous file with comments | « chrome/browser/ui/startup/startup_browser_creator_impl.cc ('k') | chrome/browser/ui/tab_contents/tab_contents_iterator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698