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

Unified Diff: chrome/browser/ui/webui/vr_shell/vr_shell_ui_message_handler.cc

Issue 2453943002: Exit VR Shell on pause (And fix a bunch of minor bugs). (Closed)
Patch Set: Created 4 years, 2 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/vr_shell_delegate.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/vr_shell/vr_shell_ui_message_handler.cc
diff --git a/chrome/browser/ui/webui/vr_shell/vr_shell_ui_message_handler.cc b/chrome/browser/ui/webui/vr_shell/vr_shell_ui_message_handler.cc
index 0f8a6325821e161b084a3cb9df87059be753d00a..610e52f2b4f4125730c0ee7246934a61f36a374a 100644
--- a/chrome/browser/ui/webui/vr_shell/vr_shell_ui_message_handler.cc
+++ b/chrome/browser/ui/webui/vr_shell/vr_shell_ui_message_handler.cc
@@ -42,7 +42,8 @@ void VrShellUIMessageHandler::HandleDomLoaded(const base::ListValue* args) {
}
void VrShellUIMessageHandler::OnJavascriptAllowed() {
- CHECK(vr_shell_);
+ if (!vr_shell_)
cjgrant 2016/10/27 14:33:17 Why proceed here with no UI?
mthiesse 2016/10/27 14:37:03 This can only happen if vr shell either died, or d
bshe 2016/10/27 14:37:11 I have logged a bug about this here: https://bugs.
mthiesse 2016/10/27 14:45:55 Added comment and added bug# to CL.
+ return;
vr_shell_->GetUiInterface()->SetUiCommandHandler(this);
vr_shell_->OnDomContentsLoaded();
}
« no previous file with comments | « chrome/browser/android/vr_shell/vr_shell_delegate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698