Index: ash/content/display/screen_orientation_delegate_chromeos.cc |
diff --git a/ash/content/display/screen_orientation_delegate_chromeos.cc b/ash/content/display/screen_orientation_delegate_chromeos.cc |
index 06a084af16a9b755367f35d64ab46efda5e44ac4..10d2b9bcf3ca662cda0831a3d7e073ea6074b870 100644 |
--- a/ash/content/display/screen_orientation_delegate_chromeos.cc |
+++ b/ash/content/display/screen_orientation_delegate_chromeos.cc |
@@ -119,7 +119,9 @@ |
bool ScreenOrientationDelegate::ScreenOrientationProviderSupported() { |
return Shell::GetInstance() |
->maximize_mode_controller() |
- ->IsMaximizeModeWindowManagerEnabled(); |
+ ->IsMaximizeModeWindowManagerEnabled() && |
+ CommandLine::ForCurrentProcess()->HasSwitch( |
+ switches::kAshEnableTouchViewTesting); |
} |
void ScreenOrientationDelegate::Unlock(content::WebContents* web_contents) { |