Index: chrome/browser/ui/toolbar/wrench_menu_model.cc |
diff --git a/chrome/browser/ui/toolbar/wrench_menu_model.cc b/chrome/browser/ui/toolbar/wrench_menu_model.cc |
index e713bca7a86fc34e0357806db15d9232841aa9e7..6d46988b29e48564e079aeab9496366d217e2dd7 100644 |
--- a/chrome/browser/ui/toolbar/wrench_menu_model.cc |
+++ b/chrome/browser/ui/toolbar/wrench_menu_model.cc |
@@ -65,6 +65,7 @@ |
#include "chrome/browser/enumerate_modules_model_win.h" |
#include "chrome/browser/ui/metro_pin_tab_helper_win.h" |
#include "content/public/browser/gpu_data_manager.h" |
+#include "ui/gfx/win/dpi.h" |
#include "win8/util/win8_util.h" |
#endif |
@@ -538,7 +539,10 @@ void WrenchMenuModel::Build(bool is_new_menu) { |
#if defined(USE_AURA) |
if (base::win::GetVersion() >= base::win::VERSION_WIN8 && |
- content::GpuDataManager::GetInstance()->CanUseGpuBrowserCompositor()) { |
+ content::GpuDataManager::GetInstance()->CanUseGpuBrowserCompositor() && |
+ gfx::win::GetUndocumentedDPIScale() == 1.0f && |
+ gfx::GetDPIScale() == 1.0 && |
+ gfx::GetModernUIScale() == 1.0f) { |
girard
2013/11/20 18:36:06
GetUndocumentedDPIScale will identify users that a
|
if (browser_->host_desktop_type() == chrome::HOST_DESKTOP_TYPE_ASH) { |
// Metro mode, add the 'Relaunch Chrome in desktop mode'. |
AddSeparator(ui::NORMAL_SEPARATOR); |