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 { |