summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser.cc
diff options
context:
space:
mode:
authortc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-03 17:58:42 +0000
committertc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-03 17:58:42 +0000
commit782229f223ab84ec688c10f13504275d89451612 (patch)
tree09569b8e8ea09bf9608efd643d97ee745ead4f73 /chrome/browser/browser.cc
parent06f926ef567e9a6d4b29e00e1c8457bd7182bc99 (diff)
downloadchromium_src-782229f223ab84ec688c10f13504275d89451612.zip
chromium_src-782229f223ab84ec688c10f13504275d89451612.tar.gz
chromium_src-782229f223ab84ec688c10f13504275d89451612.tar.bz2
window_ is null during BrowserWindow creation. Assume full screen
is false. TBR=pkasting Review URL: http://codereview.chromium.org/39023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10805 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser.cc')
-rw-r--r--chrome/browser/browser.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc
index a087bad..b0aeed3 100644
--- a/chrome/browser/browser.cc
+++ b/chrome/browser/browser.cc
@@ -982,7 +982,7 @@ bool Browser::SupportsWindowFeature(WindowFeature feature) const {
unsigned int features = FEATURE_INFOBAR | FEATURE_DOWNLOADSHELF;
if (type() == TYPE_NORMAL)
features |= FEATURE_BOOKMARKBAR;
- if (!window_->IsFullscreen()) {
+ if (!window_ || !window_->IsFullscreen()) {
if (type() == TYPE_NORMAL)
features |= FEATURE_TABSTRIP | FEATURE_TOOLBAR;
else