| Index: chrome/browser/android/vr_shell/vr_shell.cc
|
| diff --git a/chrome/browser/android/vr_shell/vr_shell.cc b/chrome/browser/android/vr_shell/vr_shell.cc
|
| index c32e477f7b76dcd5eecf5d42f5a2828e2f32c90f..30fe0fdd11fea2b0d73552a6c9f157e4fb2317b4 100644
|
| --- a/chrome/browser/android/vr_shell/vr_shell.cc
|
| +++ b/chrome/browser/android/vr_shell/vr_shell.cc
|
| @@ -551,23 +551,17 @@ void VrShell::PollMediaAccessFlag() {
|
| ->GetMediaStreamCaptureIndicator();
|
| bool is_capturing_audio = indicator->IsCapturingAudio(web_contents_);
|
| if (is_capturing_audio != is_capturing_audio_)
|
| - PostToGlThreadWhenReady(base::Bind(&VrShellGl::SetAudioCapturingWarning,
|
| - gl_thread_->GetVrShellGl(),
|
| - is_capturing_audio));
|
| + ui_->SetAudioCapturingIndicator(is_capturing_audio);
|
| is_capturing_audio_ = is_capturing_audio;
|
|
|
| bool is_capturing_video = indicator->IsCapturingVideo(web_contents_);
|
| if (is_capturing_video != is_capturing_video_)
|
| - PostToGlThreadWhenReady(base::Bind(&VrShellGl::SetVideoCapturingWarning,
|
| - gl_thread_->GetVrShellGl(),
|
| - is_capturing_video));
|
| + ui_->SetVideoCapturingIndicator(is_capturing_video);
|
| is_capturing_video_ = is_capturing_video;
|
|
|
| bool is_capturing_screen = indicator->IsBeingMirrored(web_contents_);
|
| if (is_capturing_screen != is_capturing_screen_)
|
| - PostToGlThreadWhenReady(base::Bind(&VrShellGl::SetScreenCapturingWarning,
|
| - gl_thread_->GetVrShellGl(),
|
| - is_capturing_screen));
|
| + ui_->SetScreenCapturingIndicator(is_capturing_screen);
|
| is_capturing_screen_ = is_capturing_screen;
|
| }
|
|
|
|
|