| 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 1e154e27a664b0dc11ce742606f9f6305b0f9606..9fce75e3cd3e43bc4856428d2c86093ffb5eac40 100644
|
| --- a/chrome/browser/android/vr_shell/vr_shell.cc
|
| +++ b/chrome/browser/android/vr_shell/vr_shell.cc
|
| @@ -585,6 +585,13 @@ void VrShell::ExitFullscreen() {
|
| }
|
|
|
| void VrShell::ExitVrDueToUnsupportedMode(UiUnsupportedMode mode) {
|
| + if (mode == UiUnsupportedMode::kUnhandledPageInfo) {
|
| + UMA_HISTOGRAM_ENUMERATION("VR.Shell.EncounteredUnsupportedMode", mode,
|
| + UiUnsupportedMode::kCount);
|
| + JNIEnv* env = base::android::AttachCurrentThread();
|
| + Java_VrShellImpl_onUnhandledPageInfo(env, j_vr_shell_.obj());
|
| + return;
|
| + }
|
| ui_->SetIsExiting();
|
| main_thread_task_runner_->PostDelayedTask(
|
| FROM_HERE,
|
|
|