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

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

Issue 1576493002: Change the Lo-Fi snackbar strings for Lo-Fi preview pages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@showLoFiSnackbarNative
Patch Set: newt comments Created 4 years, 11 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/tab_android.cc
diff --git a/chrome/browser/android/tab_android.cc b/chrome/browser/android/tab_android.cc
index d98d9b169734053ae1ab4c1d7027ed9cc8d5e10f..c4ac62a7e67f1c9240674bfa9362760ca5436322 100644
--- a/chrome/browser/android/tab_android.cc
+++ b/chrome/browser/android/tab_android.cc
@@ -825,9 +825,10 @@ void TabAndroid::LoadOfflineCopy(const GURL& url) {
web_contents()->GetController().LoadURLWithParams(load_params);
}
-void TabAndroid::OnLoFiResponseReceived() {
+void TabAndroid::OnLoFiResponseReceived(bool is_preview) {
JNIEnv* env = base::android::AttachCurrentThread();
- Java_Tab_onLoFiResponseReceived(env, weak_java_tab_.get(env).obj());
+ Java_Tab_onLoFiResponseReceived(env, weak_java_tab_.get(env).obj(),
+ is_preview);
}
jboolean TabAndroid::HasOfflineCopy(JNIEnv* env,
« no previous file with comments | « chrome/browser/android/tab_android.h ('k') | chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698