Use the force_software_compositing flag in the Widget::InitParams structure instead of the TYPE_MENU window type, to determine if we should use a top level window.

For more context please refer to the following change https://codereview.chromium.org/1380973003. This appears to have caused perf regressions on non Aero bots. The
only thing which pops out here is that the above change caused the omnibox and status window to be non top level
windows.

Retain the WS_EX_COMPOSITED style for software composited translucent windows when Aero is off. This ensures that the window paints correctly.

BUG=540521
TEST=Run chrome with the --disable-dwm-composition switch. Type in the omnibox. It should look good.

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

Cr-Commit-Position: refs/heads/master@{#368673}
2 files changed