helium/onboarding: don't open if --no-first-run is set, bump version

This commit is contained in:
jj
2025-05-20 21:33:28 +00:00
parent 364ce99eaf
commit 9873ccd1d9
2 changed files with 6 additions and 4 deletions

View File

@@ -5,8 +5,8 @@ sha256 = cd954c7257f126be871f79ecf8fff143425708d5d33501d0ba870fa466dafbe7
output_path = ./components/resources/default_100_percent/search_engine_choice
[onboarding]
version = 202505161829
version = 202505202136
url = https://github.com/imputnet/helium-onboarding/releases/download/%(version)s/helium-onboarding-%(version)s.tar.gz
download_filename = onboarding-page-%(version)s.tar.gz
sha256 = 1a78757d1e28b6865e87ca8e7df8b06bd3ffed5dde838690776e6daadf6cb99d
sha256 = 7719da3c819a1f52c5688d223ba190b268312de78934959c5a909c0018ebe384
output_path = ./components/helium_onboarding

View File

@@ -43,11 +43,13 @@
#include "components/custom_handlers/protocol_handler_registry.h"
#include "components/prefs/pref_service.h"
#include "components/privacy_sandbox/privacy_sandbox_features.h"
@@ -473,6 +475,13 @@ StartupBrowserCreatorImpl::DetermineStar
@@ -473,6 +475,15 @@ StartupBrowserCreatorImpl::DetermineStar
LaunchResult launch_result =
tabs.empty() ? LaunchResult::kNormally : LaunchResult::kWithGivenUrls;
+ if (!is_incognito_or_guest) {
+ bool no_first_run = base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kNoFirstRun);
+ if (!is_incognito_or_guest && !no_first_run) {
+ if (!profile_->GetPrefs()->GetBoolean(prefs::kHeliumDidOnboarding)) {
+ UrlsToTabs({ GURL(chrome::kHeliumSetupURL) }, &tabs);
+ return { tabs, LaunchResult::kWithGivenUrls };