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); |
} |