Adding data savings for Offline Previews

Bug: 615565
Change-Id: I6dc6e12d59ef94d50e05c772527d88e145de885b
Reviewed-on: https://chromium-review.googlesource.com/792111
Commit-Queue: Ryan Sturm <[email protected]>
Reviewed-by: Jian Li <[email protected]>
Reviewed-by: Tarun Bansal <[email protected]>
Cr-Commit-Position: refs/heads/master@{#523015}
diff --git a/chrome/browser/offline_pages/offline_page_utils.cc b/chrome/browser/offline_pages/offline_page_utils.cc
index 1b0c631..d06a896 100644
--- a/chrome/browser/offline_pages/offline_page_utils.cc
+++ b/chrome/browser/offline_pages/offline_page_utils.cc
@@ -203,7 +203,7 @@
     content::WebContents* web_contents) {
   OfflinePageTabHelper* tab_helper =
       OfflinePageTabHelper::FromWebContents(web_contents);
-  return tab_helper && tab_helper->IsShowingOfflinePreview();
+  return tab_helper && tab_helper->GetOfflinePreviewItem();
 }
 
 // static