Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Unified Diff: ash/content/display/screen_orientation_delegate_chromeos.cc

Issue 835883006: Revert of Enable ScreenOrientation on ChromeOS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698