| Index: chrome/browser/android/vr_shell/ui_elements/url_bar.cc
|
| diff --git a/chrome/browser/android/vr_shell/ui_elements/url_bar.cc b/chrome/browser/android/vr_shell/ui_elements/url_bar.cc
|
| index 72dcf1c081b9628a2aace64da7ef94d1d12c7797..34ab35382876eac9b62a4b50d5d6972f568548c7 100644
|
| --- a/chrome/browser/android/vr_shell/ui_elements/url_bar.cc
|
| +++ b/chrome/browser/android/vr_shell/ui_elements/url_bar.cc
|
| @@ -57,7 +57,7 @@ void UrlBar::OnButtonDown(const gfx::PointF& position) {
|
| void UrlBar::OnButtonUp(const gfx::PointF& position) {
|
| down_ = false;
|
| OnStateUpdated(position);
|
| - if (texture_->HitsBackButton(position))
|
| + if (can_go_back_ && texture_->HitsBackButton(position))
|
| back_button_callback_.Run();
|
| }
|
|
|
| @@ -84,7 +84,8 @@ void UrlBar::SetURL(const GURL& gurl) {
|
| }
|
|
|
| void UrlBar::SetHistoryButtonsEnabled(bool can_go_back) {
|
| - texture_->SetHistoryButtonsEnabled(can_go_back);
|
| + can_go_back_ = can_go_back;
|
| + texture_->SetHistoryButtonsEnabled(can_go_back_);
|
| }
|
|
|
| void UrlBar::SetSecurityLevel(security_state::SecurityLevel level) {
|
|
|