Chromium Code Reviews| Index: chrome/browser/android/vr_shell/vr_web_contents_observer.cc |
| diff --git a/chrome/browser/android/vr_shell/vr_web_contents_observer.cc b/chrome/browser/android/vr_shell/vr_web_contents_observer.cc |
| index edd2604b52fc32c11a258ed2732dcc4726a76a16..8b77ae8da32a8c1af57f59902688e9b3b9330100 100644 |
| --- a/chrome/browser/android/vr_shell/vr_web_contents_observer.cc |
| +++ b/chrome/browser/android/vr_shell/vr_web_contents_observer.cc |
| @@ -7,6 +7,9 @@ |
| #include "chrome/browser/android/vr_shell/ui_interface.h" |
| #include "chrome/browser/android/vr_shell/vr_shell.h" |
| #include "content/public/browser/navigation_handle.h" |
| +#include "content/public/browser/render_view_host.h" |
| +#include "content/public/browser/render_widget_host.h" |
| +#include "content/public/browser/render_widget_host_view.h" |
| namespace vr_shell { |
| @@ -59,4 +62,10 @@ void VrWebContentsObserver::WasHidden() { |
| vr_shell_->ContentWasHidden(); |
| } |
| +void VrWebContentsObserver::RenderViewHostChanged( |
| + content::RenderViewHost* old_host, |
| + content::RenderViewHost* new_host) { |
| + new_host->GetWidget()->GetView()->SetShowingOverscrollGlow(false); |
|
mthiesse
2016/12/05 19:02:30
Should we check for NULL first? Or is that not pos
asimjour1
2016/12/05 19:37:30
We don't need to check. old_host could be null if
|
| +} |
| + |
| } // namespace vr_shell |