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

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

Issue 125145: Implement the default tab opening behavior. Fix some linux build issues by adding missing includes. (Closed)
Patch Set: Missing include Created 11 years, 6 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/tab_overview_controller.cc » ('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 e5a509f0542fdc5c790812baa7463375a1e8a6fa..8f95eb26b16e561ebfb3efd5910a69eeef7a7cd9 100644
--- a/chrome/browser/tabs/tab_strip_model.cc
+++ b/chrome/browser/tabs/tab_strip_model.cc
@@ -8,6 +8,7 @@
#include "base/stl_util-inl.h"
#include "base/string_util.h"
+#include "build/build_config.h"
#include "chrome/browser/metrics/user_metrics.h"
#include "chrome/browser/profile.h"
#include "chrome/browser/sessions/tab_restore_service.h"
@@ -341,8 +342,12 @@ void TabStripModel::AddTabContents(TabContents* contents,
contents, transition, foreground);
} else {
// For all other types, respect what was passed to us, normalizing -1s.
+#if defined(LINUX2)
+ index = 0;
+#else
if (index < 0)
index = count();
+#endif
}
// Tabs opened from links inherit the "group" attribute of the Tab from which
« no previous file with comments | « no previous file | chrome/browser/views/tabs/tab_overview_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698