34 lines
1.7 KiB
Diff
34 lines
1.7 KiB
Diff
From: uazo <uazo@users.noreply.github.com>
|
|
Date: Tue, 12 Jun 2018 15:09:26 +0200
|
|
Subject: Disable all promo dialogs
|
|
|
|
---
|
|
.../chrome/browser/tabbed_mode/TabbedRootUiCoordinator.java | 1 +
|
|
components/user_education/common/feature_promo_registry.cc | 1 +
|
|
2 files changed, 2 insertions(+)
|
|
|
|
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/tabbed_mode/TabbedRootUiCoordinator.java b/chrome/android/java/src/org/chromium/chrome/browser/tabbed_mode/TabbedRootUiCoordinator.java
|
|
--- a/chrome/android/java/src/org/chromium/chrome/browser/tabbed_mode/TabbedRootUiCoordinator.java
|
|
+++ b/chrome/android/java/src/org/chromium/chrome/browser/tabbed_mode/TabbedRootUiCoordinator.java
|
|
@@ -943,6 +943,7 @@ public class TabbedRootUiCoordinator extends RootUiCoordinator {
|
|
}
|
|
|
|
private boolean maybeShowPromo() {
|
|
+ if ((true)) return false;
|
|
// Only one promo can be shown in one run to avoid nagging users too much.
|
|
if (FullScreenSyncPromoUtil.launchPromoIfNeeded(mActivity,
|
|
SyncConsentActivityLauncherImpl.get(), VersionInfo.getProductMajorVersion())) {
|
|
diff --git a/components/user_education/common/feature_promo_registry.cc b/components/user_education/common/feature_promo_registry.cc
|
|
--- a/components/user_education/common/feature_promo_registry.cc
|
|
+++ b/components/user_education/common/feature_promo_registry.cc
|
|
@@ -26,6 +26,7 @@ const FeaturePromoSpecification* FeaturePromoRegistry::GetParamsForFeature(
|
|
}
|
|
|
|
void FeaturePromoRegistry::RegisterFeature(FeaturePromoSpecification spec) {
|
|
+ if ((true)) return;
|
|
const base::Feature* const iph_feature = spec.feature();
|
|
CHECK(iph_feature);
|
|
const auto result = feature_promo_data_.emplace(iph_feature, std::move(spec));
|
|
--
|
|
2.25.1
|