| 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 a726bc4f4120060b0324ee8f1cc000e5acef0ea8..c1e7abfbe538bf7aec5a199cad6713374f001f49 100644
|
| --- a/chrome/browser/android/vr_shell/vr_shell.cc
|
| +++ b/chrome/browser/android/vr_shell/vr_shell.cc
|
| @@ -225,6 +225,11 @@ void VrShell::OnContentPaused(bool paused) {
|
| delegate_provider_->device_provider()->Device()->OnFocus();
|
| }
|
|
|
| +void VrShell::NavigateBack() {
|
| + JNIEnv* env = base::android::AttachCurrentThread();
|
| + Java_VrShellImpl_navigateBack(env, j_vr_shell_.obj());
|
| +}
|
| +
|
| void VrShell::OnTriggerEvent(JNIEnv* env, const JavaParamRef<jobject>& obj) {
|
| gl_thread_->task_runner()->PostTask(
|
| FROM_HERE,
|
| @@ -420,13 +425,6 @@ void VrShell::DoUiAction(const UiAction action,
|
| const base::DictionaryValue* arguments) {
|
| // Actions that can be handled natively.
|
| switch (action) {
|
| - case HISTORY_BACK:
|
| - if (web_contents_ && web_contents_->IsFullscreen()) {
|
| - web_contents_->ExitFullscreen(false);
|
| - return;
|
| - }
|
| - // Otherwise handle in java.
|
| - break;
|
| case EXIT_PRESENT:
|
| delegate_provider_->ExitWebVRPresent();
|
| return;
|
| @@ -448,9 +446,6 @@ void VrShell::DoUiAction(const UiAction action,
|
| Java_VrShellImpl_openNewTab(env, j_vr_shell_.obj(), incognito);
|
| return;
|
| }
|
| - case HISTORY_BACK:
|
| - Java_VrShellImpl_navigateBack(env, j_vr_shell_.obj());
|
| - break;
|
| case HISTORY_FORWARD:
|
| Java_VrShellImpl_navigateForward(env, j_vr_shell_.obj());
|
| break;
|
|
|