Fixed a crash while opening the file open/save dialogs on Windows 7 ASH.
commitb7f1a20215d4085fe00559f9f2759d9224786c5a
authorananta <ananta@chromium.org>
Fri, 29 Aug 2014 00:27:01 +0000 (28 17:27 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 29 Aug 2014 00:28:35 +0000 (29 00:28 +0000)
tree97b847fe6f5a14997a8ad23ecbd7bb21141c97e2
parentfe58512f2c6dfff6207948c849e2220219642987
Fixed a crash while opening the file open/save dialogs on Windows 7 ASH.

The operations would get routed to the viewer process under the assumption that it was Windows 8
which would eventually crash while trying to open the metro dialogs which don't work on Windows 7.

Fix is to return false from the ShellDialogsDelegateWin::IsWindowInMetro function for anything below
Windows 8.

BUG=356475

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

Cr-Commit-Position: refs/heads/master@{#292520}
chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc