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

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

Issue 2952004: [Mac] Finish implementation of App Tabs. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
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
Index: chrome/browser/tabs/tab_strip_model.cc
===================================================================
--- chrome/browser/tabs/tab_strip_model.cc (revision 52312)
+++ chrome/browser/tabs/tab_strip_model.cc (working copy)
@@ -463,7 +463,8 @@
}
bool TabStripModel::IsAppTab(int index) const {
- return GetTabContentsAt(index)->is_app();
+ TabContents* contents = GetTabContentsAt(index);
+ return contents && contents->is_app();
}
bool TabStripModel::IsToolbarVisible(int index) const {
« chrome/browser/cocoa/toolbar_controller.h ('K') | « chrome/browser/tab_menu_model.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698