Commit cd2efb7b authored by jonross's avatar jonross Committed by Commit bot

Revert of Enable ScreenOrientation on ChromeOS

Revert of Enable ScreenOrientation on ChromeOS (patchset #1 id:1 of https://codereview.chromium.org/797093005/)

Reason for revert:
This feature was not approved for release in M-41. Re-disabling it by default.

Original issue's description:
> Enable ScreenOrientation on ChromeOS
>
> Remove the flag blocking ScreenOrientation to enable it by default.
>
> TBR=oshima@chromium.org
> BUG=396760
>
> Committed: https://crrev.com/90cab9cb698467c3a8f0e4bc1020003f7e98d74f
> Cr-Commit-Position: refs/heads/master@{#309086}

TBR=oshima@chromium.org
BUG=396760

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

Cr-Commit-Position: refs/heads/master@{#310206}
parent 699c53eb
......@@ -119,7 +119,9 @@ void ScreenOrientationDelegate::Lock(
bool ScreenOrientationDelegate::ScreenOrientationProviderSupported() {
return Shell::GetInstance()
->maximize_mode_controller()
->IsMaximizeModeWindowManagerEnabled();
->IsMaximizeModeWindowManagerEnabled() &&
base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kAshEnableTouchViewTesting);
}
void ScreenOrientationDelegate::Unlock(content::WebContents* web_contents) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment