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

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

Issue 2727873002: Implement lazy initialization for VrShellDelegate (Closed)
Patch Set: Fix FindBugs errors - neat! Created 3 years, 10 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.h
diff --git a/chrome/browser/android/vr_shell/vr_shell_delegate.h b/chrome/browser/android/vr_shell/vr_shell_delegate.h
index 68d350888223671ae3c1303e5322ac970db842fd..3b5161db11a4a526b78401644b5201af9c311902 100644
--- a/chrome/browser/android/vr_shell/vr_shell_delegate.h
+++ b/chrome/browser/android/vr_shell/vr_shell_delegate.h
@@ -27,6 +27,8 @@ class VrShellDelegate : public device::GvrDelegateProvider {
VrShellDelegate(JNIEnv* env, jobject obj);
~VrShellDelegate() override;
+ static device::GvrDelegateProvider* CreateVrShellDelegate();
+
static VrShellDelegate* GetNativeVrShellDelegate(JNIEnv* env,
jobject jdelegate);
@@ -44,6 +46,7 @@ class VrShellDelegate : public device::GvrDelegateProvider {
jdouble interval_seconds);
void OnPause(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj);
void OnResume(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj);
+ void Destroy(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj);
void ShowTab(int id);
void OpenNewTab(bool incognito);

Powered by Google App Engine
This is Rietveld 408576698