[web:tools] disable search engine choice screen in flutter run (#154059)

The choice screen is irrelevant when debugging apps locally. `flutter run` creates a separate user profile for testing only. It doesn't touch users' browser settings.

Fixes https://github.com/flutter/flutter/issues/153928
This commit is contained in:
Yegor
2024-08-27 10:00:13 -07:00
committed by GitHub
parent 3e4f1cdf49
commit 93dc40916c
2 changed files with 7 additions and 0 deletions

View File

@@ -215,6 +215,12 @@ class ChromiumLauncher {
'--no-default-browser-check',
'--disable-default-apps',
'--disable-translate',
// Remove the search engine choice screen. It's irrelevant for app
// debugging purposes.
// See: https://github.com/flutter/flutter/issues/153928
'--disable-search-engine-choice-screen',
if (headless)
...<String>[
'--headless',

View File

@@ -29,6 +29,7 @@ const List<String> kChromeArgs = <String>[
'--no-default-browser-check',
'--disable-default-apps',
'--disable-translate',
'--disable-search-engine-choice-screen',
];
const List<String> kCodeCache = <String>[