commit | c681bbee020afb3da965c3ab7f8bccb1eaed01a3 | [log] [tgz] |
---|---|---|
author | Doug Arnett <[email protected]> | Fri Apr 06 04:04:46 2018 |
committer | Commit Bot <[email protected]> | Fri Apr 06 04:04:46 2018 |
tree | 6419f302805e9b4e8ae3f736dbc1174265573992 | |
parent | 720483e854960473b914fcfddd818d601088ff1c [diff] [blame] |
Turns off previews on android if DisplayMode not Browser Previews in android should not be presented without the full chrome browser user treatment (eg, PWA launched from homescreen in standalone mode). This CL blocks previews for navigations that do not originate from an android Tab in kWebDisplayModeBrowser. Bug: 818031 Change-Id: I88bbae7954daf503e49720adce094a9111790003 Reviewed-on: https://chromium-review.googlesource.com/953882 Reviewed-by: Yaron Friedman <[email protected]> Reviewed-by: Kinuko Yasuda <[email protected]> Reviewed-by: Peter Williamson <[email protected]> Commit-Queue: Doug Arnett <[email protected]> Cr-Commit-Position: refs/heads/master@{#548662}
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc index 3d744549b..82876285 100644 --- a/content/browser/web_contents/web_contents_impl.cc +++ b/content/browser/web_contents/web_contents_impl.cc
@@ -3320,7 +3320,7 @@ void WebContentsImpl::AdjustPreviewsStateForNavigation( PreviewsState* previews_state) { if (delegate_) - delegate_->AdjustPreviewsStateForNavigation(previews_state); + delegate_->AdjustPreviewsStateForNavigation(this, previews_state); } InterstitialPageImpl* WebContentsImpl::GetInterstitialPage() const {