mirror of
https://github.com/morgan9e/helium
synced 2026-04-15 00:44:06 +09:00
helium/onboarding: don't open if --no-first-run is set, bump version
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user