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

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

Issue 2453943002: Exit VR Shell on pause (And fix a bunch of minor bugs). (Closed)
Patch Set: Rebase 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
Index: chrome/browser/android/vr_shell/vr_shell_delegate.cc
diff --git a/chrome/browser/android/vr_shell/vr_shell_delegate.cc b/chrome/browser/android/vr_shell/vr_shell_delegate.cc
index af69ba1a03620671880aa90cf4f915f72e35e64e..d4ce924bb39e442872567825273be37bf2807438 100644
--- a/chrome/browser/android/vr_shell/vr_shell_delegate.cc
+++ b/chrome/browser/android/vr_shell/vr_shell_delegate.cc
@@ -55,12 +55,11 @@ VrShellDelegate* VrShellDelegate::getNativeDelegate(
return reinterpret_cast<VrShellDelegate*>(native_delegate);
}
-bool VrShellDelegate::ExitWebVRIfNecessary(JNIEnv* env, jobject obj) {
+void VrShellDelegate::ExitWebVRIfNecessary(JNIEnv* env, jobject obj) {
if (!device_provider_)
- return false;
+ return;
device_provider_->OnGvrDelegateRemoved();
- return true;
}
bool VrShellDelegate::RequestWebVRPresent(
« no previous file with comments | « chrome/browser/android/vr_shell/vr_shell_delegate.h ('k') | chrome/browser/ui/webui/vr_shell/vr_shell_ui_message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698