Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Unified Diff: chrome/browser/android/vr_shell/vr_shell.cc

Issue 2913633002: [vr] Clicking on the security icon should prompt the user to bail out of VR (Closed)
Patch Set: rebase Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/android/vr_shell/ui_unsupported_mode.h ('k') | tools/metrics/actions/actions.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « chrome/browser/android/vr_shell/ui_unsupported_mode.h ('k') | tools/metrics/actions/actions.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698