From 8d5852776a7ed6fb95d3bf8a1002365155adca5d Mon Sep 17 00:00:00 2001 From: brave-builds Date: Sat, 6 Mar 2021 01:06:17 +0000 Subject: [PATCH] Uplift of #8150 (squashed) to beta --- browser/ui/startup/default_brave_browser_prompt.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/browser/ui/startup/default_brave_browser_prompt.cc b/browser/ui/startup/default_brave_browser_prompt.cc index 3117f5479ed6..c917c462f874 100644 --- a/browser/ui/startup/default_brave_browser_prompt.cc +++ b/browser/ui/startup/default_brave_browser_prompt.cc @@ -122,10 +122,9 @@ bool ShouldShowDefaultBrowserPrompt(Profile* profile) { const int current_count = profile->GetPrefs()->GetInteger(kDefaultBrowserLaunchingCount); - // We only show prompt at 2nd, 3rd, 4th, 8th and 20th. + // We only show prompt at 3rd and 20th. // This is not called at first run. So, count 1 is second run. - if (current_count == 1 || current_count == 2 || current_count == 3 || - current_count == 7 || current_count == 19) + if (current_count == 2 || current_count == 19) return true; return false; @@ -166,7 +165,8 @@ void ShowDefaultBraveBrowserPrompt(Profile* profile) { } void ResetDefaultBraveBrowserPrompt(Profile* profile) { - profile->GetPrefs()->ClearPref(kDefaultBrowserLaunchingCount); + // Don't reset, but keep this function for now as more work is + // planned in https://github.com/brave/brave-browser/issues/14469 } void RegisterDefaultBraveBrowserPromptPrefs(PrefRegistrySimple* registry) {