Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1415)

Unified Diff: chrome/browser/android/offline_pages/offline_page_bridge.cc

Issue 2450353005: Revert of Showing previews UI for Offline Previews (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/android/offline_pages/offline_page_bridge.cc
diff --git a/chrome/browser/android/offline_pages/offline_page_bridge.cc b/chrome/browser/android/offline_pages/offline_page_bridge.cc
index 0c97c7e235f997cb8d532f076feffe2216901bb3..41a74dae994067c082d2aa599271076a4b94c78a 100644
--- a/chrome/browser/android/offline_pages/offline_page_bridge.cc
+++ b/chrome/browser/android/offline_pages/offline_page_bridge.cc
@@ -501,17 +501,6 @@
env, offline_header_for_reload.GetCompleteHeaderString()));
}
-jboolean OfflinePageBridge::IsShowingOfflinePreview(
- JNIEnv* env,
- const base::android::JavaParamRef<jobject>& obj,
- const JavaParamRef<jobject>& j_web_contents) {
- content::WebContents* web_contents =
- content::WebContents::FromJavaWebContents(j_web_contents);
- if (!web_contents)
- return false;
- return offline_pages::OfflinePageUtils::IsShowingOfflinePreview(web_contents);
-}
-
void OfflinePageBridge::GetRequestsInQueue(
JNIEnv* env,
const JavaParamRef<jobject>& obj,

Powered by Google App Engine
This is Rietveld 408576698