Index: chrome/browser/browser.cc |
=================================================================== |
--- chrome/browser/browser.cc (revision 30661) |
+++ chrome/browser/browser.cc (working copy) |
@@ -1616,7 +1616,8 @@ |
} else { |
Browser* browser = NULL; |
if (type_ & TYPE_APP) { |
- browser = Browser::CreateForApp(app_name_, profile_, type_ & TYPE_POPUP); |
+ browser = Browser::CreateForApp(app_name_, profile_, |
+ !!(type_ & TYPE_POPUP)); |
} else if (type_ == TYPE_POPUP) { |
browser = Browser::CreateForPopup(profile_); |
} |
@@ -1973,7 +1974,7 @@ |
bool Browser::IsPopup(TabContents* source) { |
// A non-tabbed BROWSER is an unconstrained popup. |
- return (type() & TYPE_POPUP); |
+ return !!(type() & TYPE_POPUP); |
} |
void Browser::ToolbarSizeChanged(TabContents* source, bool is_animating) { |