| Index: chrome/browser/ui/sync/browser_synced_window_delegate.cc
|
| diff --git a/chrome/browser/ui/sync/browser_synced_window_delegate.cc b/chrome/browser/ui/sync/browser_synced_window_delegate.cc
|
| index e464726ff4f79c78bd6d5a905a17e604648a8773..c580634dbbc04eaae2d467220ccfe1305726f524 100644
|
| --- a/chrome/browser/ui/sync/browser_synced_window_delegate.cc
|
| +++ b/chrome/browser/ui/sync/browser_synced_window_delegate.cc
|
| @@ -47,8 +47,7 @@ BrowserSyncedWindowDelegate::~BrowserSyncedWindowDelegate() {}
|
| bool BrowserSyncedWindowDelegate::IsTabPinned(
|
| const browser_sync::SyncedTabDelegate* tab) const {
|
| for (int i = 0; i < browser_->tab_count(); i++) {
|
| - browser_sync::SyncedTabDelegate* current =
|
| - chrome::GetTabContentsAt(browser_, i)->synced_tab_delegate();
|
| + browser_sync::SyncedTabDelegate* current = GetTabAt(i);
|
| if (tab == current)
|
| return browser_->tab_strip_model()->IsTabPinned(i);
|
| }
|
| @@ -58,7 +57,8 @@ bool BrowserSyncedWindowDelegate::IsTabPinned(
|
|
|
| browser_sync::SyncedTabDelegate* BrowserSyncedWindowDelegate::GetTabAt(
|
| int index) const {
|
| - return chrome::GetTabContentsAt(browser_, index)->synced_tab_delegate();
|
| + return TabContentsSyncedTabDelegate::FromWebContents(
|
| + chrome::GetWebContentsAt(browser_, index));
|
| }
|
|
|
| SessionID::id_type BrowserSyncedWindowDelegate::GetTabIdAt(int index) const {
|
|
|