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

Unified Diff: chrome/browser/ui/sync/browser_synced_window_delegate.cc

Issue 9121064: Cleanup: Remove more uses of Browser::tabstrip_model(). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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
« no previous file with comments | « chrome/browser/ui/gtk/browser_window_gtk.cc ('k') | chrome/browser/ui/views/frame/browser_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/sync/browser_synced_window_delegate.cc
===================================================================
--- chrome/browser/ui/sync/browser_synced_window_delegate.cc (revision 120097)
+++ chrome/browser/ui/sync/browser_synced_window_delegate.cc (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -44,11 +44,11 @@
bool BrowserSyncedWindowDelegate::IsTabPinned(
const browser_sync::SyncedTabDelegate* tab) const {
- for (int i = 0; i < browser_->tabstrip_model()->count(); i++) {
+ for (int i = 0; i < browser_->tab_count(); i++) {
browser_sync::SyncedTabDelegate* current =
- browser_->tabstrip_model()->GetTabContentsAt(i)->synced_tab_delegate();
+ browser_->GetTabContentsWrapperAt(i)->synced_tab_delegate();
if (tab == current)
- return browser_->tabstrip_model()->IsTabPinned(i);
+ return browser_->IsTabPinned(i);
}
NOTREACHED();
return false;
« no previous file with comments | « chrome/browser/ui/gtk/browser_window_gtk.cc ('k') | chrome/browser/ui/views/frame/browser_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698