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

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: missed comments Created 4 years, 4 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..9aa6f23ea017ca082efd2d34288cdfe4a6aa8b32 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,7 +223,7 @@ 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
@@ -231,7 +231,7 @@ void DataReductionProxyService::InitializeLoFiPrefs() {
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