summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tabs
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-14 20:20:09 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-14 20:20:09 +0000
commit5c0e648d6f4ea988be36e74cae045ba5f041e5cb (patch)
treef0fb62cf06be0ef7afa2b74babb0fe0ee7c1bc02 /chrome/browser/tabs
parent2e7054c0c76fe1c9a12de5925b7ad1a7aff94e45 (diff)
downloadchromium_src-5c0e648d6f4ea988be36e74cae045ba5f041e5cb.zip
chromium_src-5c0e648d6f4ea988be36e74cae045ba5f041e5cb.tar.gz
chromium_src-5c0e648d6f4ea988be36e74cae045ba5f041e5cb.tar.bz2
Wires up restoring pinned tabs for session and tab restore
services. And turns on pinned tabs by default on linux. BUG=16634 TEST=Currently this linux only. Try tab pinning and make sure it works. Review URL: http://codereview.chromium.org/149621 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20650 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tabs')
-rw-r--r--chrome/browser/tabs/tab_strip_model.cc11
-rw-r--r--chrome/browser/tabs/tab_strip_model.h3
2 files changed, 0 insertions, 14 deletions
diff --git a/chrome/browser/tabs/tab_strip_model.cc b/chrome/browser/tabs/tab_strip_model.cc
index 5f53a44..6712ec1 100644
--- a/chrome/browser/tabs/tab_strip_model.cc
+++ b/chrome/browser/tabs/tab_strip_model.cc
@@ -356,17 +356,6 @@ int TabStripModel::IndexOfFirstNonPinnedTab() const {
return count();
}
-// static
-bool TabStripModel::IsTabPinningEnabled() {
- static bool checked = false;
- static bool enabled = false;
- if (!checked) {
- enabled = CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableTabPinning);
- }
- return enabled;
-}
-
void TabStripModel::AddTabContents(TabContents* contents,
int index,
bool force_index,
diff --git a/chrome/browser/tabs/tab_strip_model.h b/chrome/browser/tabs/tab_strip_model.h
index 069d7f4..4f1d44b 100644
--- a/chrome/browser/tabs/tab_strip_model.h
+++ b/chrome/browser/tabs/tab_strip_model.h
@@ -415,9 +415,6 @@ class TabStripModel : public NotificationObserver {
// |count()| if all of the tabs are pinned, and 0 if no tabs are pinned.
int IndexOfFirstNonPinnedTab() const;
- // Returns true if pinned tabs are enabled in the UI.
- static bool IsTabPinningEnabled();
-
// Command level API /////////////////////////////////////////////////////////
// Adds a TabContents at the best position in the TabStripModel given the