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 {