Index: chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc |
diff --git a/chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc b/chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc |
index 87a0b739ea4e59ce00bdd854f957f62166d4e10c..f530490d1c77f5a7f9cc94ec73579cc4b2c3a123 100644 |
--- a/chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc |
+++ b/chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc |
@@ -31,6 +31,10 @@ |
#include "ui/shell_dialogs/shell_dialogs_delegate.h" |
#endif |
+#if defined(OS_WIN) |
+#include "base/win/windows_version.h" |
+#endif |
+ |
#if !defined(OS_CHROMEOS) |
class ScreenTypeDelegateWin : public gfx::ScreenTypeDelegate { |
public: |
@@ -49,6 +53,10 @@ class ShellDialogsDelegateWin : public ui::ShellDialogsDelegate { |
public: |
ShellDialogsDelegateWin() {} |
virtual bool IsWindowInMetro(gfx::NativeWindow window) OVERRIDE { |
+#if defined(OS_WIN) |
+ if (base::win::GetVersion() < base::win::VERSION_WIN8) |
+ return false; |
+#endif |
return chrome::IsNativeViewInAsh(window); |
} |
private: |