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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/preferences/datareduction/DataReductionPreferences.java

Issue 2445423003: Don't show the infobar promo for users that disable Data Saver (Closed)
Patch Set: change upstream Created 4 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/preferences/datareduction/DataReductionPreferences.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/preferences/datareduction/DataReductionPreferences.java b/chrome/android/java/src/org/chromium/chrome/browser/preferences/datareduction/DataReductionPreferences.java
index b22cbd760e9c6caf3875e28d93febef106b96682..09c4b3dc15c521ad404be86ec684a4957855b3fa 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/preferences/datareduction/DataReductionPreferences.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/preferences/datareduction/DataReductionPreferences.java
@@ -68,6 +68,11 @@ public class DataReductionPreferences extends PreferenceFragment {
public void onDestroy() {
super.onDestroy();
+ if (mWasEnabledAtCreation && !mIsEnabled) {
+ // If the user manually disables Data Saver, don't show the infobar promo.
+ DataReductionPromoUtils.saveInfoBarPromoDisplayed();
+ }
+
int statusChange;
if (mFromPromo) {
statusChange = mIsEnabled
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698