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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_service.cc

Issue 2250223002: Add InfoBar delegate for previews (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 3 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: components/data_reduction_proxy/core/browser/data_reduction_proxy_service.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_service.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_service.cc
index ac901dccdce50c8d60ba4cc99a1bf4d08d5c5e91..28e9cdb558088d38722f4d30f87812e87c809359 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_service.cc
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_service.cc
@@ -223,15 +223,16 @@ void DataReductionProxyService::InitializeLoFiPrefs() {
SetLoFiModeOff();
} else if (prefs_->GetInteger(prefs::kLoFiLoadImagesPerSession) <
lo_fi_user_requests_for_images_per_session &&
- prefs_->GetInteger(prefs::kLoFiSnackbarsShownPerSession) >=
+ prefs_->GetInteger(prefs::kLoFiUIShownPerSession) >=
lo_fi_user_requests_for_images_per_session) {
// If the last session didn't have
// |lo_fi_user_requests_for_images_per_session|, but the user saw at least
- // that many "Load image" snackbars, reset the consecutive sessions count.
+ // that many "Load image" UI notifications, reset the consecutive sessions
+ // count.
prefs_->SetInteger(prefs::kLoFiConsecutiveSessionDisables, 0);
}
prefs_->SetInteger(prefs::kLoFiLoadImagesPerSession, 0);
- prefs_->SetInteger(prefs::kLoFiSnackbarsShownPerSession, 0);
+ prefs_->SetInteger(prefs::kLoFiUIShownPerSession, 0);
prefs_->SetBoolean(prefs::kLoFiWasUsedThisSession, false);
}

Powered by Google App Engine
This is Rietveld 408576698