diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-15 22:13:30 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-15 22:13:30 +0000 |
commit | 30b0252c5534d65a19b1b98d2ae72fbbfe5a5952 (patch) | |
tree | c5c7299f7321596f19313060b1f7571e2de488db /chrome/browser/tabs | |
parent | 14addafac0e2fa24a3a0a2b08edef5158ebbc9eb (diff) | |
download | chromium_src-30b0252c5534d65a19b1b98d2ae72fbbfe5a5952.zip chromium_src-30b0252c5534d65a19b1b98d2ae72fbbfe5a5952.tar.gz chromium_src-30b0252c5534d65a19b1b98d2ae72fbbfe5a5952.tar.bz2 |
Implement the default tab opening behavior. Fix some linux build issues by adding missing includes.
Review URL: http://codereview.chromium.org/125145
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18444 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tabs')
-rw-r--r-- | chrome/browser/tabs/tab_strip_model.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/tabs/tab_strip_model.cc b/chrome/browser/tabs/tab_strip_model.cc index e5a509f..8f95eb2 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 |