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

Unified Diff: chrome/browser/android/tab_android.cc

Issue 1750113002: Remove "Show saved copy" button from error page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address feedback Created 4 years, 10 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
« no previous file with comments | « chrome/browser/android/tab_android.h ('k') | chrome/browser/net/net_error_tab_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/tab_android.cc
diff --git a/chrome/browser/android/tab_android.cc b/chrome/browser/android/tab_android.cc
index 15613c38ced8b0ca66740dd87be81985a7fecb23..b59190544074027de34cc0edc463f8f5711aa332 100644
--- a/chrome/browser/android/tab_android.cc
+++ b/chrome/browser/android/tab_android.cc
@@ -753,10 +753,6 @@ void TabAndroid::LoadOriginalImage(JNIEnv* env,
jlong TabAndroid::GetBookmarkId(JNIEnv* env,
const JavaParamRef<jobject>& obj,
jboolean only_editable) {
- return GetBookmarkIdHelper(only_editable);
-}
-
-int64_t TabAndroid::GetBookmarkIdHelper(bool only_editable) const {
GURL url = dom_distiller::url_utils::GetOriginalUrlFromDistillerUrl(
web_contents()->GetURL());
Profile* profile = GetProfile();
@@ -802,16 +798,6 @@ void TabAndroid::ShowOfflinePages() {
Java_Tab_showOfflinePages(env, weak_java_tab_.get(env).obj());
}
-void TabAndroid::LoadOfflineCopy(const GURL& url) {
- GURL offline_url = offline_pages::OfflinePageUtils::GetOfflineURLForOnlineURL(
- GetProfile(), url);
- if (!offline_url.is_valid())
- return;
-
- content::NavigationController::LoadURLParams load_params(offline_url);
- web_contents()->GetController().LoadURLWithParams(load_params);
-}
-
void TabAndroid::OnLoFiResponseReceived(bool is_preview) {
JNIEnv* env = base::android::AttachCurrentThread();
Java_Tab_onLoFiResponseReceived(env, weak_java_tab_.get(env).obj(),
« no previous file with comments | « chrome/browser/android/tab_android.h ('k') | chrome/browser/net/net_error_tab_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698