summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/toolbar_view.cc
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-26 04:06:43 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-26 04:06:43 +0000
commitf075fe0a20acba35df51e93e635db8f0b0d89d7b (patch)
tree68cc0fe76b8897b1f6162f176f1ba62a227929e1 /chrome/browser/views/toolbar_view.cc
parent62cdc5bf2d94c02ef33ebff1ede7e0cde31c7285 (diff)
downloadchromium_src-f075fe0a20acba35df51e93e635db8f0b0d89d7b.zip
chromium_src-f075fe0a20acba35df51e93e635db8f0b0d89d7b.tar.gz
chromium_src-f075fe0a20acba35df51e93e635db8f0b0d89d7b.tar.bz2
Reland r45520. This adds a new browser type: EXTENSION_APP that
has a larger titlebar and a big icon, along with a tabstrip, but no titlebar. Review URL: http://codereview.chromium.org/1774003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45566 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/toolbar_view.cc')
-rw-r--r--chrome/browser/views/toolbar_view.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/views/toolbar_view.cc b/chrome/browser/views/toolbar_view.cc
index 43d4430..3b2ce98 100644
--- a/chrome/browser/views/toolbar_view.cc
+++ b/chrome/browser/views/toolbar_view.cc
@@ -75,7 +75,8 @@ ToolbarView::ToolbarView(Browser* browser)
browser_->command_updater()->AddCommandObserver(IDC_FORWARD, this);
browser_->command_updater()->AddCommandObserver(IDC_HOME, this);
browser_->command_updater()->AddCommandObserver(IDC_RELOAD, this);
- if (browser->type() == Browser::TYPE_NORMAL)
+
+ if (browser->SupportsWindowFeature(Browser::FEATURE_TABSTRIP))
display_mode_ = DISPLAYMODE_NORMAL;
else
display_mode_ = DISPLAYMODE_LOCATION;