chromeos: fix bug in ArcScreenCaptureSession with mash
In SingleProcessMash there are two aura::Envs. See design doc for details. This code was calling aura::Env::GetInstance() and expecting to get Ash's Env. In SingleProcessMash aura::Env::GetInstance() returns Chrome's aura::Env. The fix is to get the env from the window. I'm also renaming 'desktop_window_' to display_root_window_ to make it clearer that the window corresponds only to a display root. BUG=b:124258894 TEST=none Change-Id: I3b85610d72ada8adb674441e6e47d5ddd9d1b37f Reviewed-on: https://chromium-review.googlesource.com/c/1483351Reviewed-by:Xiyuan Xia <xiyuan@chromium.org> Commit-Queue: Scott Violet <sky@chromium.org> Cr-Commit-Position: refs/heads/master@{#634737}
Showing
Please register or sign in to comment