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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java

Issue 2969843004: Don't show the Data Saver promo in incognito mode (Closed)
Patch Set: Created 3 years, 5 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 | chrome/android/java/src/org/chromium/chrome/browser/preferences/datareduction/DataReductionPromoScreen.java » ('j') | 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/ChromeTabbedActivity.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java b/chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java
index 63010bdf006871acd8bb84dc00c037e0ce978500..5645b5d80b975d058be73c0327ef26f0f6527a51 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java
@@ -487,8 +487,10 @@ public class ChromeTabbedActivity extends ChromeActivity implements OverviewMode
&& preferenceManager.getPromosSkippedOnFirstStart()) {
// Data reduction promo should be temporarily suppressed if the sign in promo is
// shown to avoid nagging users too much.
+ TabModel currentModel = mTabModelSelectorImpl.getCurrentModel();
if (!SigninPromoUtil.launchSigninPromoIfNeeded(this)) {
- if (!DataReductionPromoScreen.launchDataReductionPromo(this)
+ if (!DataReductionPromoScreen.launchDataReductionPromo(
+ this, currentModel.isIncognito())
&& getBottomSheet() != null) {
getBottomSheet().showHelpBubbleIfNecessary();
}
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/preferences/datareduction/DataReductionPromoScreen.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698