Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(702)

Unified Diff: chrome/browser/ui/browser_navigator.cc

Issue 6296011: Fix for regression: Any window of type APP should create APP_POPUP windows. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Add BrowserNavigatorTest.Disposition_NewPopupFromAppPopup Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/browser_navigator_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_navigator.cc
diff --git a/chrome/browser/ui/browser_navigator.cc b/chrome/browser/ui/browser_navigator.cc
index 3c082d8f3cc861c835e248abb210b035a474ac42..4b25ab0f0f867e3c48c1fc936aa3f439c9f719cc 100644
--- a/chrome/browser/ui/browser_navigator.cc
+++ b/chrome/browser/ui/browser_navigator.cc
@@ -161,9 +161,8 @@ Browser* GetBrowserForDisposition(browser::NavigateParams* params) {
// Make a new popup window. Coerce app-style if |params->browser| or the
// |source| represents an app.
Browser::Type type = Browser::TYPE_POPUP;
- if ((params->browser && params->browser->type() == Browser::TYPE_APP) ||
- (params->source_contents &&
- params->source_contents->is_app())) {
+ if ((params->browser && (params->browser->type() & Browser::TYPE_APP)) ||
+ (params->source_contents && params->source_contents->is_app())) {
type = Browser::TYPE_APP_POPUP;
}
if (profile) {
« no previous file with comments | « no previous file | chrome/browser/ui/browser_navigator_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698