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

Unified Diff: trunk/src/chrome/browser/ui/tabs/tab_strip_model_utils.cc

Issue 252693007: Revert 266653 "[Mac] Allow fullscreen transitions while constrai..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 8 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 | « trunk/src/chrome/browser/ui/tabs/tab_strip_model_utils.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/chrome/browser/ui/tabs/tab_strip_model_utils.cc
===================================================================
--- trunk/src/chrome/browser/ui/tabs/tab_strip_model_utils.cc (revision 266682)
+++ trunk/src/chrome/browser/ui/tabs/tab_strip_model_utils.cc (working copy)
@@ -10,6 +10,16 @@
namespace chrome {
+int IndexOfFirstBlockedTab(const TabStripModel* model) {
+ DCHECK(model);
+ for (int i = 0; i < model->count(); ++i) {
+ if (model->IsTabBlocked(i))
+ return i;
+ }
+ // No blocked tabs.
+ return model->count();
+}
+
void GetOpenUrls(const TabStripModel& tabs,
const history::TopSites& top_sites,
std::set<std::string>* urls) {
« no previous file with comments | « trunk/src/chrome/browser/ui/tabs/tab_strip_model_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698