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

Unified Diff: chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.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: tbansal comment 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/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc
diff --git a/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc b/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc
index def66ab77c167be3725369df7a97e9faf3218eff..5debace28b9dfc6216399c7c2606ce0e544ba188 100644
--- a/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc
+++ b/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc
@@ -42,13 +42,15 @@ namespace {
// For Android builds, notifies the TabAndroid associated with |web_contents|
// that a Lo-Fi response has been received. The TabAndroid then handles showing
-// Lo-Fi UI if this is the first Lo-Fi response for a page load.
-void OnLoFiResponseReceivedOnUI(content::WebContents* web_contents) {
+// Lo-Fi UI if this is the first Lo-Fi response for a page load. |is_preview|
+// indicates whether the response was a Lo-Fi preview response.
+void OnLoFiResponseReceivedOnUI(content::WebContents* web_contents,
+ bool is_preview) {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
#if defined(OS_ANDROID)
TabAndroid* tab = TabAndroid::FromWebContents(web_contents);
if (tab)
- tab->OnLoFiResponseReceived();
+ tab->OnLoFiResponseReceived(is_preview);
#endif
}

Powered by Google App Engine
This is Rietveld 408576698