Commit 48c42193 authored by calamity@chromium.org's avatar calamity@chromium.org

Remove toolbar from extension windows in streamlined hosted apps mode.

Previously, extension windows would have the chrome toolbar. This CL
prevents child app windows from getting a toolbar in streamlined
hosted apps mode which fixes this issue.

BUG=318607

Review URL: https://codereview.chromium.org/112623003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243757 0039d316-1c4b-4281-b951-d872f2087c98
parent 9730c054
...@@ -2163,9 +2163,12 @@ bool Browser::SupportsWindowFeatureImpl(WindowFeature feature, ...@@ -2163,9 +2163,12 @@ bool Browser::SupportsWindowFeatureImpl(WindowFeature feature,
if (is_type_tabbed()) if (is_type_tabbed())
features |= FEATURE_TOOLBAR; features |= FEATURE_TOOLBAR;
if (!is_app() || CommandLine::ForCurrentProcess()->HasSwitch( if (!is_app() || ((app_type() == APP_TYPE_HOST ||
switches::kEnableStreamlinedHostedApps)) app_name() == DevToolsWindow::kDevToolsApp) &&
CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableStreamlinedHostedApps))) {
features |= FEATURE_LOCATIONBAR; features |= FEATURE_LOCATIONBAR;
}
} }
return !!(features & feature); return !!(features & feature);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment