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

Unified Diff: chrome/browser/tabs/tab_strip_model.cc

Issue 2877024: Nukes the nano tab style for views. I also consolidated code in (Closed)
Patch Set: Created 10 years, 5 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 | « no previous file | chrome/browser/views/tabs/base_tab.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tabs/tab_strip_model.cc
diff --git a/chrome/browser/tabs/tab_strip_model.cc b/chrome/browser/tabs/tab_strip_model.cc
index 711e00ec2bad07009e110e73bba2cfa63e8dc5b8..9fe21e64862968f74df14bb366e950beba4ad265 100644
--- a/chrome/browser/tabs/tab_strip_model.cc
+++ b/chrome/browser/tabs/tab_strip_model.cc
@@ -549,7 +549,7 @@ bool TabStripModel::IsTabBlocked(int index) const {
int TabStripModel::IndexOfFirstNonMiniTab() const {
for (size_t i = 0; i < contents_data_.size(); ++i) {
- if (!contents_data_[i]->contents->is_app() && !contents_data_[i]->pinned)
+ if (!IsMiniTab(static_cast<int>(i)))
return static_cast<int>(i);
}
// No mini-tabs.
« no previous file with comments | « no previous file | chrome/browser/views/tabs/base_tab.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698