Commit e1bd4ca3 authored by Yury Khmel's avatar Yury Khmel Committed by Commit Bot

Revert "[Locked Fullscreen] Disable ARC while in locked fullscreen"

This reverts commit 36458f22.

Reason for revert: This CL leads to data loss.

Original change's description:
> [Locked Fullscreen] Disable ARC while in locked fullscreen
> 
> Locked fullscreen is supposed to be a secure mode where the user cannot do
> anything outside of the current browser window, but ARC apps can currently draw
> on top of it.  To fix this, we disable ARC when entering the mode, and we
> re-enable it upon exiting the mode.
> 
> Bug: 888611
> Change-Id: I84cda87a260a42108f1ef6c4767c174bc8b1fb61
> Reviewed-on: https://chromium-review.googlesource.com/c/1356813
> Reviewed-by: Karan Bhatia <karandeepb@chromium.org>
> Commit-Queue: Ivan Šandrk <isandrk@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#613254}

TBR=isandrk@chromium.org,karandeepb@chromium.org

Change-Id: I9e5ca84ba4e186cb43e3a186da9b659b03368145
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 888611
Reviewed-on: https://chromium-review.googlesource.com/c/1359813Reviewed-by: default avatarYury Khmel <khmel@chromium.org>
Commit-Queue: Yury Khmel <khmel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#613356}
parent 29eaef4b
......@@ -100,7 +100,6 @@
#include "ash/public/cpp/window_pin_type.h"
#include "ash/public/cpp/window_properties.h"
#include "ash/public/interfaces/window_pin_type.mojom.h"
#include "chrome/browser/chromeos/arc/arc_util.h"
#include "chrome/browser/ui/ash/chrome_screenshot_grabber.h"
#include "chrome/browser/ui/browser_command_controller.h"
#include "content/public/browser/devtools_agent_host.h"
......@@ -313,11 +312,6 @@ void SetLockedFullscreenState(Browser* browser, bool locked) {
// fullscreen (security concerns).
ui::Clipboard::GetForCurrentThread()->Clear(ui::CLIPBOARD_TYPE_COPY_PASTE);
content::DevToolsAgentHost::DetachAllClients();
// Disable ARC while in the locked fullscreen mode.
Profile* const profile = browser->profile();
if (arc::IsArcAllowedForProfile(profile))
arc::SetArcPlayStoreEnabledForProfile(profile, !locked);
}
#endif // defined(OS_CHROMEOS)
......
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