[AUTO][FILECONTROL] - version 144.0.7559.76 (#2635)
[AUTO][FILECONTROL] - version 144.0.7559.76
This commit is contained in:
@@ -1 +1 @@
|
||||
143.0.7499.110
|
||||
144.0.7559.76
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
#include "base/allocator/partition_alloc_features.h"
|
||||
#include "base/base_paths_android.h"
|
||||
#include "base/check.h"
|
||||
#include "base/metrics/field_trial_params.h"
|
||||
#include "base/metrics/persistent_histogram_allocator.h"
|
||||
#include "base/path_service.h"
|
||||
#include "components/history/core/browser/features.h"
|
||||
@@ -32,6 +31,7 @@
|
||||
#include "third_party/blink/public/common/features.h"
|
||||
#include "third_party/blink/public/common/features_generated.h"
|
||||
#include "ui/android/ui_android_features.h"
|
||||
#include "ui/base/ui_base_features.h"
|
||||
#include "ui/gl/gl_features.h"
|
||||
#include "ui/gl/gl_switches.h"
|
||||
|
||||
@@ -113,6 +113,11 @@ void AwFieldTrials::RegisterFeatureOverrides(base::FeatureList* feature_list) {
|
||||
// Disable scrollbar-width on WebView.
|
||||
aw_feature_overrides.DisableFeature(blink::features::kScrollbarWidth);
|
||||
|
||||
// TODO(crbug.com/402144902): Remove this once webview experiment has
|
||||
// concluded.
|
||||
aw_feature_overrides.DisableFeature(
|
||||
::features::kSendEmptyGestureScrollUpdate);
|
||||
|
||||
// Disable Populating the VisitedLinkDatabase on WebView.
|
||||
aw_feature_overrides.DisableFeature(history::kPopulateVisitedLinkDatabase);
|
||||
|
||||
@@ -232,24 +237,8 @@ void AwFieldTrials::RegisterFeatureOverrides(base::FeatureList* feature_list) {
|
||||
// function and the webview permission manager cannot support it.
|
||||
aw_feature_overrides.DisableFeature(blink::features::kPermissionElement);
|
||||
aw_feature_overrides.DisableFeature(blink::features::kGeolocationElement);
|
||||
|
||||
// |kBtmTtl| in the testing config json.
|
||||
{
|
||||
const char kDipsWebViewExperiment[] = "DipsWebViewExperiment";
|
||||
const char kDipsWebViewGroup[] = "DipsWebViewGroup";
|
||||
base::FieldTrial* dips_field_trial = base::FieldTrialList::CreateFieldTrial(
|
||||
kDipsWebViewExperiment, kDipsWebViewGroup);
|
||||
CHECK(dips_field_trial) << "Unexpected name conflict.";
|
||||
base::FieldTrialParams params;
|
||||
const std::string ttl_time_delta_30_days = "30d";
|
||||
params.emplace(features::kBtmInteractionTtl.name, ttl_time_delta_30_days);
|
||||
base::AssociateFieldTrialParams(kDipsWebViewExperiment, kDipsWebViewGroup,
|
||||
params);
|
||||
aw_feature_overrides.OverrideFeatureWithFieldTrial(
|
||||
features::kBtmTtl,
|
||||
base::FeatureList::OverrideState::OVERRIDE_ENABLE_FEATURE,
|
||||
dips_field_trial);
|
||||
}
|
||||
aw_feature_overrides.DisableFeature(blink::features::kUserMediaElement);
|
||||
aw_feature_overrides.DisableFeature(blink::features::kInstallElement);
|
||||
|
||||
// Delete Incidental Party State (DIPS) feature is not yet supported on
|
||||
// WebView.
|
||||
@@ -287,10 +276,6 @@ void AwFieldTrials::RegisterFeatureOverrides(base::FeatureList* feature_list) {
|
||||
aw_feature_overrides.DisableFeature(
|
||||
blink::features::kPartitionVisitedLinkDatabaseWithSelfLinks);
|
||||
|
||||
// Disable draw cutout edge-to-edge on WebView. Safe area insets are not
|
||||
// handled correctly when WebView is drawing edge-to-edge.
|
||||
aw_feature_overrides.DisableFeature(features::kDrawCutoutEdgeToEdge);
|
||||
|
||||
// Explicitly disable PrefetchProxy instead of relying only on passing an
|
||||
// empty URL.
|
||||
aw_feature_overrides.DisableFeature(features::kPrefetchProxy);
|
||||
@@ -321,4 +306,8 @@ void AwFieldTrials::RegisterFeatureOverrides(base::FeatureList* feature_list) {
|
||||
|
||||
// SystemTracing is enabled by default only in WebView for now.
|
||||
aw_feature_overrides.EnableFeature(features::kEnablePerfettoSystemTracing);
|
||||
|
||||
// Deemed that performance benefit is not worth the stability cost.
|
||||
// See crbug.com/1309151.
|
||||
aw_feature_overrides.DisableFeature(::features::kGpuShaderDiskCache);
|
||||
}
|
||||
|
||||
@@ -397,6 +397,17 @@ by a child template that "extends" this file.
|
||||
</intent-filter>
|
||||
</activity>
|
||||
|
||||
<activity android:name="org.chromium.chrome.browser.media.DocumentPictureInPictureActivity"
|
||||
android:exported="false"
|
||||
android:noHistory="true"
|
||||
android:theme="@style/Theme.Chromium.Activity"
|
||||
android:excludeFromRecents="true"
|
||||
android:configChanges=
|
||||
"screenSize|smallestScreenSize|screenLayout|orientation"
|
||||
{{ self.supports_video_persistence() }}
|
||||
>
|
||||
</activity>
|
||||
|
||||
<activity android:name="org.chromium.chrome.browser.media.PictureInPictureActivity"
|
||||
android:exported="false"
|
||||
android:noHistory="true"
|
||||
@@ -993,14 +1004,6 @@ by a child template that "extends" this file.
|
||||
</intent-filter>
|
||||
</activity>
|
||||
|
||||
<!-- GcmTaskService for registration for Invalidations. Not actually implemented anymore. -->
|
||||
<service android:name="com.google.ipc.invalidation.ticl.android2.channel.GcmRegistrationTaskService"
|
||||
android:exported="true"
|
||||
android:permission="com.google.android.gms.permission.BIND_NETWORK_TASK_SERVICE" >
|
||||
<intent-filter>
|
||||
<action android:name="com.google.android.gms.gcm.ACTION_TASK_READY"/>
|
||||
</intent-filter>
|
||||
</service>
|
||||
<!-- GcmListenerService for messages from GCM. -->
|
||||
<service android:name="org.chromium.chrome.browser.services.gcm.ChromeGcmListenerService"
|
||||
android:exported="false" >
|
||||
@@ -1048,15 +1051,6 @@ by a child template that "extends" this file.
|
||||
android:exported="false"
|
||||
android:permission="android.permission.BIND_JOB_SERVICE"/>
|
||||
|
||||
<!-- GcmTaskService implementation to wake Chrome on scheduled events -->
|
||||
<service android:name="org.chromium.chrome.browser.ChromeBackgroundService"
|
||||
android:permission="com.google.android.gms.permission.BIND_NETWORK_TASK_SERVICE"
|
||||
android:exported="true">
|
||||
<intent-filter>
|
||||
<action android:name="com.google.android.gms.gcm.ACTION_TASK_READY" />
|
||||
</intent-filter>
|
||||
</service>
|
||||
|
||||
<service android:name="org.chromium.chrome.browser.customtabs.CustomTabsConnectionService"
|
||||
android:exported="true"
|
||||
tools:ignore="ExportedService">
|
||||
@@ -1229,6 +1223,17 @@ by a child template that "extends" this file.
|
||||
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|mcc|mnc|screenLayout|smallestScreenSize" >
|
||||
</activity>
|
||||
|
||||
<!-- This activity is Android P- only which is not supported by Chrome now. -->
|
||||
<activity
|
||||
android:name="androidx.biometric.internal.ui.FingerprintDialogActivity"
|
||||
tools:node="remove">
|
||||
</activity>
|
||||
|
||||
<!-- Disabled via CastOptionsProvider. -->
|
||||
<service
|
||||
android:name="com.google.android.gms.cast.framework.ReconnectionService"
|
||||
tools:node="remove" />
|
||||
|
||||
<property android:name="android.adservices.AD_SERVICES_CONFIG"
|
||||
android:resource="@xml/ad_services_config" />
|
||||
|
||||
@@ -1408,6 +1413,7 @@ by a child template that "extends" this file.
|
||||
android:name="androidx.startup.InitializationProvider"
|
||||
tools:node="remove">
|
||||
</provider>
|
||||
|
||||
<!-- We call FirebaseApp.initializeApp() explicitly rather than relying on this hook for better control over when it happens. -->
|
||||
<provider
|
||||
android:name="com.google.firebase.provider.FirebaseInitProvider"
|
||||
|
||||
+40
-6
@@ -91,6 +91,7 @@ import org.chromium.chrome.browser.browserservices.intents.ColorProvider;
|
||||
import org.chromium.chrome.browser.browserservices.intents.CustomButtonParams;
|
||||
import org.chromium.chrome.browser.browserservices.intents.SessionHolder;
|
||||
import org.chromium.chrome.browser.customtabs.CustomTabsFeatureUsage.CustomTabsFeature;
|
||||
import org.chromium.chrome.browser.firstrun.FirstRunStatus;
|
||||
import org.chromium.chrome.browser.flags.ActivityType;
|
||||
import org.chromium.chrome.browser.flags.ChromeFeatureList;
|
||||
import org.chromium.chrome.browser.share.ShareUtils;
|
||||
@@ -606,11 +607,17 @@ public class CustomTabIntentDataProvider extends BrowserServicesIntentDataProvid
|
||||
List<Bundle> menuItems =
|
||||
IntentUtils.getParcelableArrayListExtra(intent, CustomTabsIntent.EXTRA_MENU_ITEMS);
|
||||
|
||||
mOpenInBrowserState =
|
||||
int openInBrowserState =
|
||||
IntentUtils.safeGetIntExtra(
|
||||
intent,
|
||||
EXTRA_OPEN_IN_BROWSER_STATE,
|
||||
OpenInBrowserButtonState.OPEN_IN_BROWSER_STATE_DEFAULT);
|
||||
if (isOpenInBrowserDisallowed(
|
||||
getUiType(), getCustomTabMode() == CustomTabProfileType.INCOGNITO)) {
|
||||
openInBrowserState = CustomTabsButtonState.BUTTON_STATE_OFF;
|
||||
}
|
||||
mOpenInBrowserState = openInBrowserState;
|
||||
|
||||
int oibState = adjustOpenInBrowserOption(intent);
|
||||
maybeAddOpenInBrowserOption(context, oibState);
|
||||
updateExtraMenuItems(menuItems);
|
||||
@@ -993,11 +1000,7 @@ public class CustomTabIntentDataProvider extends BrowserServicesIntentDataProvid
|
||||
boolean usingInteractiveOmnibox =
|
||||
CustomTabsConnection.getInstance().shouldEnableOmniboxForIntent(this);
|
||||
|
||||
int openInBrowserState =
|
||||
IntentUtils.safeGetIntExtra(
|
||||
intent,
|
||||
EXTRA_OPEN_IN_BROWSER_STATE,
|
||||
CustomTabsButtonState.BUTTON_STATE_DEFAULT);
|
||||
int openInBrowserState = mOpenInBrowserState;
|
||||
|
||||
if (openInBrowserState == CustomTabsButtonState.BUTTON_STATE_ON
|
||||
&& !ChromeFeatureList.sCctOpenInBrowserButtonIfEnabledByEmbedder.isEnabled()) {
|
||||
@@ -1048,6 +1051,37 @@ public class CustomTabIntentDataProvider extends BrowserServicesIntentDataProvid
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns {@code true} if open-in-browser (action button/menu item) should not be presented on
|
||||
* the UI surface.
|
||||
*
|
||||
* @param type {@link CustomTabsUiType} value.
|
||||
* @param incognito Whether the {@link CustomTabProfileType} is incongnito.
|
||||
*/
|
||||
public static boolean isOpenInBrowserDisallowed(int type, boolean incognito) {
|
||||
return !isOpenInBrowserAllowedForType(type)
|
||||
|| incognito
|
||||
|| !FirstRunStatus.getFirstRunFlowComplete();
|
||||
}
|
||||
|
||||
private static boolean isOpenInBrowserAllowedForType(int type) {
|
||||
switch (type) {
|
||||
case CustomTabsUiType.MEDIA_VIEWER:
|
||||
case CustomTabsUiType.READER_MODE:
|
||||
case CustomTabsUiType.MINIMAL_UI_WEBAPP:
|
||||
case CustomTabsUiType.OFFLINE_PAGE:
|
||||
case CustomTabsUiType.AUTH_TAB:
|
||||
case CustomTabsUiType.NETWORK_BOUND_TAB:
|
||||
case CustomTabsUiType.POPUP:
|
||||
return false;
|
||||
case CustomTabsUiType.TRUSTED_WEB_ACTIVITY:
|
||||
return !ChromeFeatureList.sAndroidWebAppMenuButton.isEnabled();
|
||||
case CustomTabsUiType.DEFAULT:
|
||||
default:
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
private @Nullable String resolveUrlToLoad(Intent intent) {
|
||||
String url = IntentHandler.getUrlFromIntent(intent);
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
+15
-7
@@ -60,6 +60,8 @@
|
||||
#include "chrome/browser/optimization_guide/optimization_guide_keyed_service_factory.h"
|
||||
#include "chrome/browser/password_manager/account_password_store_factory.h"
|
||||
#include "chrome/browser/password_manager/profile_password_store_factory.h"
|
||||
#include "chrome/browser/payments/browser_binding/browser_bound_key_deleter_service.h"
|
||||
#include "chrome/browser/payments/browser_binding/browser_bound_key_deleter_service_factory.h"
|
||||
#include "chrome/browser/permissions/permission_actions_history_factory.h"
|
||||
#include "chrome/browser/permissions/permission_decision_auto_blocker_factory.h"
|
||||
#include "chrome/browser/preloading/prefetch/no_state_prefetch/no_state_prefetch_manager_factory.h"
|
||||
@@ -120,8 +122,6 @@
|
||||
#include "components/password_manager/core/browser/password_manager_metrics_util.h"
|
||||
#include "components/password_manager/core/browser/password_store/password_store_interface.h"
|
||||
#include "components/password_manager/core/browser/password_store/smart_bubble_stats_store.h"
|
||||
#include "components/payments/content/browser_binding/browser_bound_key_deleter.h"
|
||||
#include "components/payments/content/browser_binding/browser_bound_key_deleter_factory.h"
|
||||
#include "components/payments/content/web_payments_web_data_service.h"
|
||||
#include "components/performance_manager/public/user_tuning/prefs.h"
|
||||
#include "components/permissions/features.h"
|
||||
@@ -132,6 +132,7 @@
|
||||
#include "components/reading_list/core/reading_list_model.h"
|
||||
#include "components/safe_browsing/core/browser/verdict_cache_manager.h"
|
||||
#include "components/search_engines/search_engine_choice/search_engine_choice_service.h"
|
||||
#include "components/search_engines/search_engine_choice/search_engine_choice_utils.h"
|
||||
#include "components/search_engines/template_url_service.h"
|
||||
#include "components/signin/public/base/consent_level.h"
|
||||
#include "components/signin/public/base/gaia_id_hash.h"
|
||||
@@ -733,10 +734,11 @@ void ChromeBrowsingDataRemoverDelegate::RemoveEmbedderData(
|
||||
}
|
||||
#endif // !BUILDFLAG(IS_ANDROID)
|
||||
|
||||
if (payments::BrowserBoundKeyDeleter* browser_bound_key_deleter =
|
||||
payments::BrowserBoundKeyDeleterFactory::GetForBrowserContext(
|
||||
profile_)) {
|
||||
browser_bound_key_deleter->RemoveInvalidBBKs();
|
||||
if (payments::
|
||||
BrowserBoundKeyDeleterService* browser_bound_key_deleter_service =
|
||||
payments::BrowserBoundKeyDeleterServiceFactory::GetForProfile(
|
||||
profile_)) {
|
||||
browser_bound_key_deleter_service->RemoveInvalidBBKs();
|
||||
}
|
||||
|
||||
#if BUILDFLAG(IS_CHROMEOS)
|
||||
@@ -1436,7 +1438,9 @@ void ChromeBrowsingDataRemoverDelegate::RemoveEmbedderData(
|
||||
->registrar_unsafe();
|
||||
for (const web_app::WebApp& web_app :
|
||||
web_app_registrar.GetAppsIncludingStubs()) {
|
||||
if (!web_app_registrar.IsIsolated(web_app.app_id()) ||
|
||||
if (!web_app_registrar.AppMatches(
|
||||
web_app.app_id(),
|
||||
web_app::WebAppFilter::IsIsolatedWebAppIncludingUninstalling()) ||
|
||||
!filter.Run(web_app.scope())) {
|
||||
continue;
|
||||
}
|
||||
@@ -1770,3 +1774,7 @@ void ChromeBrowsingDataRemoverDelegate::DisablePasswordsAutoSignin(
|
||||
TracingDataType::kDisableAutoSigninForAccountPasswords));
|
||||
}
|
||||
}
|
||||
|
||||
#if BUILDFLAG(IS_ANDROID)
|
||||
DEFINE_JNI(PackageHash)
|
||||
#endif
|
||||
|
||||
@@ -61,6 +61,7 @@
|
||||
#include "mojo/public/cpp/bindings/binder_map.h"
|
||||
#include "mojo/public/cpp/bindings/pending_receiver.h"
|
||||
#include "mojo/public/cpp/bindings/self_owned_receiver.h"
|
||||
#include "pdf/buildflags.h"
|
||||
#include "services/image_annotation/public/mojom/image_annotation.mojom.h"
|
||||
#include "third_party/blink/public/common/features.h"
|
||||
#include "third_party/blink/public/common/features_generated.h"
|
||||
@@ -140,6 +141,11 @@
|
||||
#include "media/mojo/mojom/speech_recognition_service.mojom.h"
|
||||
#endif // BUILDFLAG(ENABLE_BROWSER_SPEECH_SERVICE)
|
||||
|
||||
#if BUILDFLAG(ENABLE_PDF)
|
||||
#include "chrome/browser/pdf/pdf_help_bubble_handler_factory.h"
|
||||
#include "ui/webui/resources/cr_components/help_bubble/help_bubble.mojom.h"
|
||||
#endif
|
||||
|
||||
#if BUILDFLAG(ENABLE_PRINT_PREVIEW)
|
||||
#include "chrome/browser/printing/web_api/web_printing_service_binder.h"
|
||||
#include "third_party/blink/public/mojom/printing/web_printing.mojom.h"
|
||||
@@ -507,7 +513,8 @@ void PopulateChromeFrameBinders(
|
||||
if (base::FeatureList::IsEnabled(features::kWebPayments)) {
|
||||
map->Add<payments::mojom::PaymentRequest>(&payments::CreatePaymentRequest);
|
||||
}
|
||||
if (base::FeatureList::IsEnabled(blink::features::kWebAppInstallation) &&
|
||||
if ((base::FeatureList::IsEnabled(blink::features::kWebAppInstallation) ||
|
||||
base::FeatureList::IsEnabled(blink::features::kInstallElement)) &&
|
||||
!render_frame_host->GetParentOrOuterDocument()) {
|
||||
map->Add<blink::mojom::WebInstallService>(
|
||||
&web_app::WebInstallServiceImpl::CreateIfAllowed);
|
||||
@@ -566,6 +573,11 @@ void PopulateChromeFrameBinders(
|
||||
&BindMediaFoundationPreferences);
|
||||
#endif
|
||||
|
||||
#if BUILDFLAG(ENABLE_PDF)
|
||||
map->Add<help_bubble::mojom::PdfHelpBubbleHandlerFactory>(
|
||||
&pdf::PdfHelpBubbleHandlerFactory::Create);
|
||||
#endif
|
||||
|
||||
#if BUILDFLAG(ENABLE_PRINT_PREVIEW)
|
||||
map->Add<blink::mojom::WebPrintingService>(
|
||||
&printing::CreateWebPrintingServiceForFrame);
|
||||
|
||||
@@ -71,6 +71,7 @@
|
||||
#include "chrome/browser/chrome_content_browser_client_navigation_throttles.h"
|
||||
#include "chrome/browser/chrome_content_browser_client_parts.h"
|
||||
#include "chrome/browser/content_settings/cookie_settings_factory.h"
|
||||
#include "chrome/browser/content_settings/generated_javascript_optimizer_pref.h"
|
||||
#include "chrome/browser/content_settings/host_content_settings_map_factory.h"
|
||||
#include "chrome/browser/custom_handlers/protocol_handler_registry_factory.h"
|
||||
#include "chrome/browser/data_saver/data_saver.h"
|
||||
@@ -133,7 +134,6 @@
|
||||
#include "chrome/browser/preloading/preloading_prefs.h"
|
||||
#include "chrome/browser/preloading/prerender/prerender_web_contents_delegate.h"
|
||||
#include "chrome/browser/preloading/search_preload/search_preload_features.h"
|
||||
#include "chrome/browser/privacy_budget/identifiability_study_state.h"
|
||||
#include "chrome/browser/privacy_sandbox/privacy_sandbox_settings_factory.h"
|
||||
#include "chrome/browser/privacy_sandbox/tracking_protection_settings_factory.h"
|
||||
#include "chrome/browser/profiles/profile.h"
|
||||
@@ -152,6 +152,9 @@
|
||||
#include "chrome/browser/signin/chrome_signin_proxying_url_loader_factory.h"
|
||||
#include "chrome/browser/signin/chrome_signin_url_loader_throttle.h"
|
||||
#include "chrome/browser/signin/header_modification_delegate_impl.h"
|
||||
#include "chrome/browser/site_protection/site_familiarity_process_selection_deferring_condition.h"
|
||||
#include "chrome/browser/site_protection/site_familiarity_process_selection_user_data.h"
|
||||
#include "chrome/browser/site_protection/site_familiarity_utils.h"
|
||||
#include "chrome/browser/speech/chrome_speech_recognition_manager_delegate.h"
|
||||
#include "chrome/browser/speech/on_device_speech_recognition_util.h"
|
||||
#include "chrome/browser/ssl/chrome_security_blocking_page_factory.h"
|
||||
@@ -237,8 +240,6 @@
|
||||
#include "components/error_page/common/error.h"
|
||||
#include "components/error_page/common/error_page_switches.h"
|
||||
#include "components/error_page/common/localized_error.h"
|
||||
#include "components/fingerprinting_protection_filter/common/fingerprinting_protection_filter_features.h"
|
||||
#include "components/fingerprinting_protection_filter/interventions/common/interventions_features.h"
|
||||
#include "components/google/core/common/google_switches.h"
|
||||
#include "components/heap_profiling/in_process/heap_profiler_controller.h"
|
||||
#include "components/keep_alive_registry/keep_alive_types.h"
|
||||
@@ -261,13 +262,14 @@
|
||||
#include "components/no_state_prefetch/common/no_state_prefetch_url_loader_throttle.h"
|
||||
#include "components/page_load_metrics/browser/metrics_web_contents_observer.h"
|
||||
#include "components/password_manager/core/browser/features/password_features.h"
|
||||
#include "components/password_manager/core/browser/password_manager_metrics_util.h"
|
||||
#include "components/payments/content/payment_request_display_manager.h"
|
||||
#include "components/payments/content/secure_payment_confirmation_service_factory.h"
|
||||
#include "components/pdf/common/pdf_util.h"
|
||||
#include "components/performance_manager/public/graph/frame_node.h"
|
||||
#include "components/performance_manager/public/performance_manager.h"
|
||||
#include "components/permissions/content_setting_permission_context_base.h"
|
||||
#include "components/policy/content/policy_blocklist_service.h"
|
||||
#include "components/policy/core/browser/url_list/policy_blocklist_service.h"
|
||||
#include "components/policy/core/common/management/management_service.h"
|
||||
#include "components/policy/core/common/policy_pref_names.h"
|
||||
#include "components/pref_registry/pref_registry_syncable.h"
|
||||
@@ -426,6 +428,8 @@
|
||||
#include "sandbox/win/src/sandbox_policy.h"
|
||||
#elif BUILDFLAG(IS_MAC)
|
||||
#include "chrome/browser/browser_process_platform_part_mac.h"
|
||||
#include "chrome/browser/enterprise/platform_auth/platform_auth_features.h"
|
||||
#include "chrome/browser/enterprise/platform_auth/platform_auth_proxying_url_loader_factory.h"
|
||||
#include "chrome/common/chrome_version.h"
|
||||
#include "components/soda/constants.h"
|
||||
#include "sandbox/mac/sandbox_serializer.h"
|
||||
@@ -727,6 +731,7 @@ using content::ChildProcessSecurityPolicy;
|
||||
using content::RenderFrameHost;
|
||||
using content::SiteInstance;
|
||||
using content::WebContents;
|
||||
using content_settings::JavascriptOptimizerSetting;
|
||||
|
||||
#if BUILDFLAG(IS_POSIX)
|
||||
using content::PosixFileDescriptorInfo;
|
||||
@@ -1735,13 +1740,6 @@ void ChromeContentBrowserClient::RenderProcessWillLaunch(
|
||||
std::make_unique<CrashMemoryMetricsCollector>(host));
|
||||
#endif
|
||||
|
||||
IdentifiabilityStudyState* identifiability_study_state =
|
||||
g_browser_process->GetMetricsServicesManager()
|
||||
->GetIdentifiabilityStudyState();
|
||||
if (identifiability_study_state) {
|
||||
identifiability_study_state->InitializeRenderer(host);
|
||||
}
|
||||
|
||||
// The RendereUpdater might be null for some irregular profiles, e.g. the
|
||||
// System Profile.
|
||||
if (RendererUpdater* service =
|
||||
@@ -2568,8 +2566,8 @@ bool ChromeContentBrowserClient::ShouldUrlUseApplicationIsolationLevel(
|
||||
}
|
||||
|
||||
#if !BUILDFLAG(IS_ANDROID)
|
||||
bool ChromeContentBrowserClient::IsInitialWebUIScheme(const GURL& url) {
|
||||
return IsForInitialWebUI(url);
|
||||
bool ChromeContentBrowserClient::IsInitialWebUIURL(const GURL& url) {
|
||||
return waap::IsForInitialWebUI(url);
|
||||
}
|
||||
#endif // !BUILDFLAG(IS_ANDROID)
|
||||
|
||||
@@ -2830,17 +2828,6 @@ void ChromeContentBrowserClient::AppendExtraCommandLineSwitches(
|
||||
error_page::switches::kDisableDinosaurEasterEgg);
|
||||
}
|
||||
|
||||
auto* management_service_factory =
|
||||
policy::ManagementServiceFactory::GetInstance();
|
||||
auto* browser_managment_service =
|
||||
management_service_factory->GetForProfile(profile);
|
||||
if ((browser_managment_service &&
|
||||
browser_managment_service->IsManaged()) ||
|
||||
management_service_factory->GetForPlatform()->IsManaged()) {
|
||||
command_line->AppendSwitch(
|
||||
error_page::switches::kEnableDinosaurEasterEggAltGameImages);
|
||||
}
|
||||
|
||||
MaybeAppendSecureOriginsAllowlistSwitch(command_line);
|
||||
|
||||
if (prefs->HasPrefPath(prefs::kScrollToTextFragmentEnabled) &&
|
||||
@@ -4337,12 +4324,17 @@ bool ChromeContentBrowserClient::CanCreateWindow(
|
||||
contextual_tasks::ContextualTasksUiService* contextual_tasks_ui_service =
|
||||
contextual_tasks::ContextualTasksUiServiceFactory::GetForBrowserContext(
|
||||
profile);
|
||||
if (base::FeatureList::IsEnabled(contextual_tasks::kContextualTasks) &&
|
||||
contextual_tasks_ui_service &&
|
||||
contextual_tasks_ui_service->HandleNavigation(
|
||||
target_url, web_contents->GetLastCommittedURL(), web_contents,
|
||||
/*is_to_new_tab=*/true)) {
|
||||
return false;
|
||||
if (base::FeatureList::IsEnabled(contextual_tasks::kContextualTasks)) {
|
||||
content::OpenURLParams url_params(
|
||||
target_url, referrer, disposition,
|
||||
ui::PageTransition::PAGE_TRANSITION_AUTO_TOPLEVEL, true);
|
||||
if (contextual_tasks_ui_service &&
|
||||
contextual_tasks_ui_service->HandleNavigation(
|
||||
std::move(url_params), web_contents,
|
||||
/*is_from_embedded_page=*/false,
|
||||
/*is_to_new_tab=*/true)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
#endif // !BUILDFLAG(IS_ANDROID)
|
||||
|
||||
@@ -4554,6 +4546,8 @@ void ChromeContentBrowserClient::OverrideWebPreferences(
|
||||
prefs->GetBoolean(prefs::kAccessibilityForceEnableZoom);
|
||||
web_prefs->font_weight_adjustment =
|
||||
prefs->GetInteger(prefs::kAccessibilityFontWeightAdjustment);
|
||||
web_prefs->enable_touchpad_overscroll_history_navigation = prefs->GetBoolean(
|
||||
prefs::kAccessibilityTouchpadOverscrollHistoryNavigation);
|
||||
#endif
|
||||
web_prefs->force_dark_mode_enabled =
|
||||
prefs->GetBoolean(prefs::kWebKitForceDarkModeEnabled);
|
||||
@@ -4567,10 +4561,13 @@ void ChromeContentBrowserClient::OverrideWebPreferences(
|
||||
#endif
|
||||
|
||||
#if BUILDFLAG(IS_ANDROID)
|
||||
web_prefs->password_echo_enabled =
|
||||
prefs->GetBoolean(prefs::kWebKitPasswordEchoEnabled);
|
||||
web_prefs->password_echo_enabled_physical =
|
||||
prefs->GetBoolean(prefs::kWebKitPasswordEchoEnabledPhysical);
|
||||
web_prefs->password_echo_enabled_touch =
|
||||
prefs->GetBoolean(prefs::kWebKitPasswordEchoEnabledTouch);
|
||||
#else
|
||||
web_prefs->password_echo_enabled = false;
|
||||
web_prefs->password_echo_enabled_physical = false;
|
||||
web_prefs->password_echo_enabled_touch = false;
|
||||
#endif
|
||||
|
||||
web_prefs->text_areas_are_resizable =
|
||||
@@ -4660,7 +4657,8 @@ void ChromeContentBrowserClient::OverrideWebPreferences(
|
||||
web_prefs->web_app_scope = registrar.GetAppScope(app_id);
|
||||
}
|
||||
|
||||
// IWA can close windows with window management permission.
|
||||
// IWA with window management permission can close windows and
|
||||
// focus windows without user gesture.
|
||||
if (browser->app_controller()->IsIsolatedWebApp() &&
|
||||
profile->GetPermissionController()
|
||||
->GetPermissionStatusForCurrentDocument(
|
||||
@@ -4670,6 +4668,7 @@ void ChromeContentBrowserClient::OverrideWebPreferences(
|
||||
web_contents->GetPrimaryMainFrame()) ==
|
||||
blink::mojom::PermissionStatus::GRANTED) {
|
||||
web_prefs->allow_scripts_to_close_windows = true;
|
||||
web_prefs->allow_window_focus_without_user_gesture = true;
|
||||
}
|
||||
#if BUILDFLAG(IS_CHROMEOS)
|
||||
auto* system_app = browser->app_controller()->system_app();
|
||||
@@ -4782,12 +4781,6 @@ void ChromeContentBrowserClient::OverrideWebPreferences(
|
||||
base::FeatureList::IsEnabled(::features::kContextMenuEmptySpace);
|
||||
#endif
|
||||
|
||||
web_prefs->content_based_fingerprinting_protection_enabled =
|
||||
fingerprinting_protection_filter::features::
|
||||
IsFingerprintingProtectionEnabledForIncognitoState(
|
||||
Profile::FromBrowserContext(web_contents->GetBrowserContext())
|
||||
->IsIncognitoProfile());
|
||||
|
||||
if (base::FeatureList::IsEnabled(::features::kDevToolsAiPromptApi) &&
|
||||
web_contents->GetVisibleURL().SchemeIs(content::kChromeDevToolsScheme)) {
|
||||
web_prefs->ai_prompt_api_enabled = true;
|
||||
@@ -5132,7 +5125,7 @@ std::wstring ChromeContentBrowserClient::GetAppContainerSidForSandboxType(
|
||||
case sandbox::mojom::Sandbox::kServiceWithJit:
|
||||
case sandbox::mojom::Sandbox::kIconReader:
|
||||
case sandbox::mojom::Sandbox::kMediaFoundationCdm:
|
||||
case sandbox::mojom::Sandbox::kWindowsSystemProxyResolver:
|
||||
case sandbox::mojom::Sandbox::kProxyResolver:
|
||||
// Should never reach here.
|
||||
NOTREACHED();
|
||||
}
|
||||
@@ -5229,7 +5222,7 @@ bool ChromeContentBrowserClient::PreSpawnChild(
|
||||
case sandbox::mojom::Sandbox::kService:
|
||||
case sandbox::mojom::Sandbox::kIconReader:
|
||||
case sandbox::mojom::Sandbox::kMediaFoundationCdm:
|
||||
case sandbox::mojom::Sandbox::kWindowsSystemProxyResolver:
|
||||
case sandbox::mojom::Sandbox::kProxyResolver:
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -5416,6 +5409,24 @@ ChromeContentBrowserClient::CreateCommitDeferringConditionsForNavigation(
|
||||
return conditions;
|
||||
}
|
||||
|
||||
std::vector<std::unique_ptr<content::ProcessSelectionDeferringCondition>>
|
||||
ChromeContentBrowserClient::
|
||||
CreateProcessSelectionDeferringConditionsForNavigation(
|
||||
content::NavigationHandle& navigation_handle) {
|
||||
std::vector<std::unique_ptr<content::ProcessSelectionDeferringCondition>>
|
||||
conditions;
|
||||
Profile* profile = Profile::FromBrowserContext(
|
||||
navigation_handle.GetWebContents()->GetBrowserContext());
|
||||
if (site_protection::AreV8OptimizationsDisabledOnUnfamiliarSites(profile)) {
|
||||
auto condition = std::unique_ptr<
|
||||
content::ProcessSelectionDeferringCondition>(
|
||||
new site_protection::SiteFamiliarityProcessSelectionDeferringCondition(
|
||||
navigation_handle));
|
||||
conditions.push_back(std::move(condition));
|
||||
}
|
||||
return conditions;
|
||||
}
|
||||
|
||||
std::unique_ptr<content::NavigationUIData>
|
||||
ChromeContentBrowserClient::GetNavigationUIData(
|
||||
content::NavigationHandle* navigation_handle) {
|
||||
@@ -6380,6 +6391,13 @@ void ChromeContentBrowserClient::WillCreateURLLoaderFactory(
|
||||
}
|
||||
#endif
|
||||
|
||||
#if BUILDFLAG(IS_MAC)
|
||||
if (base::FeatureList::IsEnabled(enterprise_auth::kOktaSSO)) {
|
||||
enterprise_auth::ProxyingURLLoaderFactory::MaybeProxyRequest(
|
||||
request_initiator, factory_builder);
|
||||
}
|
||||
#endif
|
||||
|
||||
// WARNING: This must be the last interceptor in the chain as the proxying
|
||||
// URLLoaderFactory installed by this needs to be the one actually sending
|
||||
// packets over the network (to effectively target `bound_network`).
|
||||
@@ -6957,10 +6975,12 @@ bool ChromeContentBrowserClient::HandleWebUI(
|
||||
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \
|
||||
BUILDFLAG(IS_CHROMEOS)
|
||||
|
||||
// Rewrite chrome://settings/autofill to chrome://settings/yourSavedInfo.
|
||||
// Rewrite chrome://settings/autofill and chrome://settings/enhancedAutofill
|
||||
// to chrome://settings/yourSavedInfo.
|
||||
if (url->SchemeIs(content::kChromeUIScheme) &&
|
||||
url->GetHost() == chrome::kChromeUISettingsHost &&
|
||||
url->GetPath() == chrome::kChromeUIAutofillPath &&
|
||||
(url->GetPath() == chrome::kChromeUIAutofillPath ||
|
||||
url->GetPath() == chrome::kChromeUIAutofillAiPath) &&
|
||||
base::FeatureList::IsEnabled(
|
||||
autofill::features::kYourSavedInfoSettingsPage)) {
|
||||
GURL::Replacements replacements;
|
||||
@@ -6968,6 +6988,16 @@ bool ChromeContentBrowserClient::HandleWebUI(
|
||||
*url = url->ReplaceComponents(replacements);
|
||||
}
|
||||
|
||||
// Rewrite chrome://settings/addresses to chrome://settings/contactInfo.
|
||||
if (url->SchemeIs(content::kChromeUIScheme) &&
|
||||
url->GetHost() == chrome::kChromeUISettingsHost &&
|
||||
(url->GetPath() == chrome::kChromeUIAddressesPath) &&
|
||||
base::FeatureList::IsEnabled(
|
||||
autofill::features::kYourSavedInfoSettingsPage)) {
|
||||
GURL::Replacements replacements;
|
||||
replacements.SetPathStr(chrome::kChromeUIContactInfoPath);
|
||||
*url = url->ReplaceComponents(replacements);
|
||||
}
|
||||
#endif // BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) ||
|
||||
// BUILDFLAG(IS_CHROMEOS)
|
||||
|
||||
@@ -7741,29 +7771,101 @@ bool ChromeContentBrowserClient::IsJitDisabledForSite(
|
||||
CONTENT_SETTING_BLOCK);
|
||||
}
|
||||
|
||||
bool ChromeContentBrowserClient::AreV8OptimizationsDisabledForSite(
|
||||
bool ChromeContentBrowserClient::AreV8OptimizationsEnabledForSite(
|
||||
content::BrowserContext* browser_context,
|
||||
const std::optional<base::SafeRef<content::ProcessSelectionUserData>>&
|
||||
process_selection_user_data,
|
||||
const GURL& site_url) {
|
||||
// Only disable optimizations for schemes that might actually load web
|
||||
// content.
|
||||
// content. This check enables v8-optimization for schemes such as chrome://
|
||||
// and chrome-untrusted://.
|
||||
auto* policy = ChildProcessSecurityPolicy::GetInstance();
|
||||
if (!site_url.is_empty() && !policy->IsWebSafeScheme(site_url.GetScheme())) {
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
Profile* profile = Profile::FromBrowserContext(browser_context);
|
||||
auto* map = HostContentSettingsMapFactory::GetForProfile(profile);
|
||||
// Special case to determine if any policy is set.
|
||||
if (map && site_url.is_empty()) {
|
||||
if (!map) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (site_url.is_empty()) {
|
||||
// An empty `site_url` is provided when creating unlocked
|
||||
// processes without site isolation (example: Android). In that case, allow
|
||||
// V8 optimizations according to the default content setting. Site
|
||||
// familiarity or site-specific settings cannot be considered here, because
|
||||
// the process will be shared among many sites.
|
||||
return map->GetDefaultContentSetting(
|
||||
ContentSettingsType::JAVASCRIPT_OPTIMIZER, nullptr) ==
|
||||
ContentSettingsType::JAVASCRIPT_OPTIMIZER, nullptr) !=
|
||||
CONTENT_SETTING_BLOCK;
|
||||
}
|
||||
|
||||
return (map &&
|
||||
map->GetContentSetting(site_url, site_url,
|
||||
ContentSettingsType::JAVASCRIPT_OPTIMIZER) ==
|
||||
CONTENT_SETTING_BLOCK);
|
||||
content_settings::SettingInfo content_setting_info;
|
||||
ContentSetting site_content_setting = map->GetContentSetting(
|
||||
site_url, site_url, ContentSettingsType::JAVASCRIPT_OPTIMIZER,
|
||||
&content_setting_info);
|
||||
|
||||
// `default_javascript_optimizer_setting` is determined based on the user's
|
||||
// selection in chrome://settings, whether the site-familiarity-feature is
|
||||
// enabled, and enterprise policy. `default_javascript_optimizer_setting`
|
||||
// ignores content setting exceptions. "Disable v8 optimizers for unfamiliar
|
||||
// sites" cannot be applied via content-setting exceptions or enterprise
|
||||
// policy; it can only be enabled globally via
|
||||
// `default_javascript_optimizer_setting`.
|
||||
JavascriptOptimizerSetting default_javascript_optimizer_setting =
|
||||
site_protection::ComputeDefaultJavascriptOptimizerSetting(profile);
|
||||
// Invariant guaranteed by ComputeDefaultJavascriptOptimizerSetting().
|
||||
CHECK(default_javascript_optimizer_setting !=
|
||||
JavascriptOptimizerSetting::kBlockedForUnfamiliarSites ||
|
||||
content_setting_info.source == content_settings::SettingSource::kUser);
|
||||
|
||||
if (default_javascript_optimizer_setting !=
|
||||
JavascriptOptimizerSetting::kBlockedForUnfamiliarSites) {
|
||||
// If site familiarity is turned off, use content settings to set v8
|
||||
// optimization. Use `site_content_setting` to honor exceptions for specific
|
||||
// sites over a default policy that applies to all sites.
|
||||
return site_content_setting == CONTENT_SETTING_ALLOW;
|
||||
}
|
||||
|
||||
if (content_setting_info.primary_pattern !=
|
||||
ContentSettingsPattern::Wildcard() ||
|
||||
content_setting_info.secondary_pattern !=
|
||||
ContentSettingsPattern::Wildcard()) {
|
||||
// There is a site-specific rule. The rule has precedence over
|
||||
// kBlockedForUnfamiliarSites.
|
||||
return site_content_setting == CONTENT_SETTING_ALLOW;
|
||||
}
|
||||
|
||||
// At this point, "block for unfamiliar sites" is turned on, and site-specific
|
||||
// exceptions have been handled by the Wildcard() check above, so
|
||||
// `site_content_setting` must reflect the default content setting. Enforce
|
||||
// that "block for unfamiliar sites" can only be turned on when that default
|
||||
// content setting is set to "Allow". If it was set to "Blocked",
|
||||
// default_javascript_optimizer_setting would have also been "Blocked" rather
|
||||
// than "Blocked for unfamiliar sites".
|
||||
CHECK_EQ(site_content_setting, CONTENT_SETTING_ALLOW);
|
||||
|
||||
const site_protection::SiteFamiliarityProcessSelectionUserData*
|
||||
site_familiarity_user_data = nullptr;
|
||||
if (process_selection_user_data) {
|
||||
site_familiarity_user_data =
|
||||
site_protection::SiteFamiliarityProcessSelectionUserData::
|
||||
FromProcessSelectionUserData(*process_selection_user_data);
|
||||
}
|
||||
|
||||
// Lookup site-familiarity previously computed for this navigation by
|
||||
// SiteFamiliarityProcessSelectionDeferringCondition.
|
||||
// For now, enable v8 optimizations if there is no site_familiarity_user_data.
|
||||
// This might be called when creating a SiteInstance and process for a new
|
||||
// speculative RenderFrameHost, when the navigation is just starting and site
|
||||
// familiarity hasn't been computed yet. When the navigation receives a
|
||||
// response, this will be called a second time to determine the final
|
||||
// SiteInstance and process, and site familiarity should be available then.
|
||||
// TODO(https://issues.chromium.org/452130797): Determine desired behavior
|
||||
// for speculative RenderFrameHosts.
|
||||
return !site_familiarity_user_data ||
|
||||
site_familiarity_user_data->is_site_familiar();
|
||||
}
|
||||
|
||||
bool ChromeContentBrowserClient::DisallowV8FeatureFlagOverridesForSite(
|
||||
@@ -8430,12 +8532,6 @@ void ChromeContentBrowserClient::PreferenceRankVideoDeviceInfos(
|
||||
media_prefs::PreferenceRankVideoDeviceInfos(*prefs, infos);
|
||||
}
|
||||
|
||||
network::mojom::IpProtectionProxyBypassPolicy
|
||||
ChromeContentBrowserClient::GetIpProtectionProxyBypassPolicy() {
|
||||
return network::mojom::IpProtectionProxyBypassPolicy::
|
||||
kFirstPartyToTopLevelFrame;
|
||||
}
|
||||
|
||||
void ChromeContentBrowserClient::MaybePrewarmHttpDiskCache(
|
||||
content::BrowserContext& browser_context,
|
||||
const std::optional<url::Origin>& initiator_origin,
|
||||
@@ -8767,25 +8863,6 @@ ChromeContentBrowserClient::GetClipboardTypesIfPolicyApplied(
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
bool ChromeContentBrowserClient::ShouldEnableCanvasNoise(
|
||||
content::BrowserContext* browser_context,
|
||||
const GURL& url) {
|
||||
Profile* profile = Profile::FromBrowserContext(browser_context);
|
||||
bool feature_enable = fingerprinting_protection_interventions::features::
|
||||
IsCanvasInterventionsEnabledForIncognitoState(
|
||||
profile->IsIncognitoProfile());
|
||||
// System profiles are considered incognito, but will not query from
|
||||
// ProfileKeyedServices and will return nullptr. We should only check user
|
||||
// bypass if the profile returns TrackingProtectionSettings.
|
||||
privacy_sandbox::TrackingProtectionSettings* tracking_protections_settings =
|
||||
TrackingProtectionSettingsFactory::GetForProfile(profile);
|
||||
if (tracking_protections_settings) {
|
||||
return feature_enable &&
|
||||
!tracking_protections_settings->HasTrackingProtectionException(url);
|
||||
}
|
||||
return feature_enable;
|
||||
}
|
||||
|
||||
bool ChromeContentBrowserClient::UsePrefetchPrerenderIntegration() {
|
||||
return base::FeatureList::IsEnabled(features::kBookmarkTriggerForPrefetch) ||
|
||||
base::FeatureList::IsEnabled(features::kNewTabPageTriggerForPrefetch);
|
||||
@@ -8835,3 +8912,50 @@ bool ChromeContentBrowserClient::ShouldSkipBeforeUnloadDialog(
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
void ChromeContentBrowserClient::RecordAssistedLogin(
|
||||
content::ContentBrowserClient::AssistedLoginType login_type) {
|
||||
using AssistedLoginType = content::ContentBrowserClient::AssistedLoginType;
|
||||
using BrowserAssistedLoginType =
|
||||
password_manager::metrics_util::BrowserAssistedLoginType;
|
||||
BrowserAssistedLoginType pwm_login_type = BrowserAssistedLoginType::kUnknown;
|
||||
switch (login_type) {
|
||||
case AssistedLoginType::kFedCmPassive:
|
||||
pwm_login_type = BrowserAssistedLoginType::kFedCmPassive;
|
||||
break;
|
||||
case AssistedLoginType::kFedCmActive:
|
||||
pwm_login_type = BrowserAssistedLoginType::kFedCmActive;
|
||||
break;
|
||||
case AssistedLoginType::kPasskeyStoredInGPM:
|
||||
pwm_login_type = BrowserAssistedLoginType::kPasskeyStoredInGPM;
|
||||
break;
|
||||
case AssistedLoginType::kPasskeyStoredInWindowsHello:
|
||||
pwm_login_type = BrowserAssistedLoginType::kPasskeyStoredInWindowsHello;
|
||||
break;
|
||||
case AssistedLoginType::kPasskeyStoredInICloudKeychain:
|
||||
pwm_login_type = BrowserAssistedLoginType::kPasskeyStoredInICloudKeychain;
|
||||
break;
|
||||
case AssistedLoginType::kPasskeyStoredInChromeProfile:
|
||||
pwm_login_type = BrowserAssistedLoginType::kPasskeyStoredInChromeProfile;
|
||||
break;
|
||||
case AssistedLoginType::kPasskeyHybrid:
|
||||
pwm_login_type = BrowserAssistedLoginType::kPasskeyHybrid;
|
||||
break;
|
||||
case AssistedLoginType::kPasskeySecurityKey:
|
||||
pwm_login_type = BrowserAssistedLoginType::kPasskeySecurityKey;
|
||||
break;
|
||||
}
|
||||
password_manager::metrics_util::RecordBrowserAssistedLogin(pwm_login_type);
|
||||
}
|
||||
|
||||
std::optional<bool>
|
||||
ChromeContentBrowserClient::GetOverrideValueForStaticStorageQuota(
|
||||
content::BrowserContext* browser_context) {
|
||||
Profile* profile = Profile::FromBrowserContext(browser_context);
|
||||
|
||||
if (profile->GetPrefs()->HasPrefPath(prefs::kStaticStorageQuotaEnabled)) {
|
||||
return profile->GetPrefs()->GetBoolean(prefs::kStaticStorageQuotaEnabled);
|
||||
} else {
|
||||
return std::nullopt;
|
||||
}
|
||||
}
|
||||
|
||||
+1
-12
@@ -40,8 +40,6 @@
|
||||
#include "components/contextual_tasks/public/features.h"
|
||||
#include "components/dom_distiller/content/browser/distiller_page_web_contents.h"
|
||||
#include "components/error_page/content/browser/net_error_auto_reloader.h"
|
||||
#include "components/fingerprinting_protection_filter/browser/throttle_manager.h"
|
||||
#include "components/fingerprinting_protection_filter/common/fingerprinting_protection_filter_features.h"
|
||||
#include "components/guest_view/buildflags/buildflags.h"
|
||||
#include "components/history/content/browser/visited_link_navigation_throttle.h"
|
||||
#include "components/lens/lens_features.h"
|
||||
@@ -87,8 +85,8 @@
|
||||
#include "chrome/browser/preloading/preview/preview_navigation_throttle.h"
|
||||
#include "chrome/browser/themes/theme_service_factory.h"
|
||||
#include "chrome/browser/ui/lens/lens_overlay_side_panel_navigation_throttle.h"
|
||||
#include "chrome/browser/ui/read_anything/read_anything_side_panel_navigation_throttle.h"
|
||||
#include "chrome/browser/ui/search/new_tab_page_navigation_throttle.h"
|
||||
#include "chrome/browser/ui/views/side_panel/read_anything/read_anything_side_panel_navigation_throttle.h"
|
||||
#include "chrome/browser/ui/web_applications/tabbed_web_app_navigation_throttle.h"
|
||||
#include "chrome/browser/ui/web_applications/webui_web_app_navigation_throttle.h"
|
||||
#include "chrome/browser/ui/webui/ntp_microsoft_auth/ntp_microsoft_auth_response_capture_navigation_throttle.h"
|
||||
@@ -373,15 +371,6 @@ void CreateAndAddChromeThrottlesForNavigation(
|
||||
throttle_manager->MaybeCreateAndAddNavigationThrottles(registry);
|
||||
}
|
||||
|
||||
if (fingerprinting_protection_filter::features::
|
||||
IsFingerprintingProtectionEnabledForIncognitoState(
|
||||
profile ? profile->IsIncognitoProfile() : false)) {
|
||||
if (auto* throttle_manager = fingerprinting_protection_filter::
|
||||
ThrottleManager::FromNavigationHandle(handle)) {
|
||||
throttle_manager->MaybeCreateAndAddNavigationThrottles(registry);
|
||||
}
|
||||
}
|
||||
|
||||
LookalikeUrlNavigationThrottle::MaybeCreateAndAdd(registry);
|
||||
|
||||
PDFIFrameNavigationThrottle::MaybeCreateAndAdd(registry);
|
||||
|
||||
+93
-125
@@ -156,8 +156,8 @@ public abstract class ChromeFeatureList {
|
||||
// Feature names.
|
||||
// LINT.IfChange(FeaturesExposedToJava)
|
||||
// keep-sorted start group_prefixes=["public static final String"]
|
||||
public static final String ACCESSIBILITY_MAGNIFICATION_FOLLOWS_INPUT_FOCUS =
|
||||
"AccessibilityMagnificationFollowsInputFocus";
|
||||
public static final String ABORT_NAVIGATIONS_FROM_TAB_CLOSURES =
|
||||
"AbortNavigationsFromTabClosures";
|
||||
public static final String ACCOUNT_FOR_SUPPRESSED_KEYBOARD_INSETS =
|
||||
"AccountForSuppressedKeyboardInsets";
|
||||
public static final String ADAPTIVE_BUTTON_IN_TOP_TOOLBAR_CUSTOMIZATION_V2 =
|
||||
@@ -174,6 +174,7 @@ public abstract class ChromeFeatureList {
|
||||
"AndroidAppIntegrationMultiDataSource";
|
||||
public static final String ANDROID_AUTOFILL_SUPPORT_FOR_HTTP_AUTH =
|
||||
"AndroidAutofillSupportForHttpAuth";
|
||||
public static final String ANDROID_AUTO_MINTED_TWA = "AndroidAutoMintedTWA";
|
||||
public static final String ANDROID_BOOKMARK_BAR = "AndroidBookmarkBar";
|
||||
public static final String ANDROID_BOOKMARK_BAR_FAST_FOLLOW = "AndroidBookmarkBarFastFollow";
|
||||
public static final String ANDROID_BOTTOM_TOOLBAR = "AndroidBottomToolbar";
|
||||
@@ -188,12 +189,17 @@ public abstract class ChromeFeatureList {
|
||||
public static final String ANDROID_FIRST_RUN_LAUNCH_BOUNDS = "AndroidFirstRunLaunchBounds";
|
||||
public static final String ANDROID_LOGO_VIEW_REFACTOR = "AndroidLogoViewRefactor";
|
||||
public static final String ANDROID_MINIMAL_UI_LARGE_SCREEN = "AndroidMinimalUiLargeScreen";
|
||||
public static final String ANDROID_NEW_MEDIA_PICKER = "AndroidNewMediaPicker";
|
||||
public static final String ANDROID_NO_VISIBLE_HINT_FOR_DIFFERENT_TLD =
|
||||
"AndroidNoVisibleHintForDifferentTLD";
|
||||
public static final String ANDROID_OMNIBOX_FOCUSED_NEW_TAB_PAGE =
|
||||
"AndroidOmniboxFocusedNewTabPage";
|
||||
public static final String ANDROID_OPEN_INCOGNITO_AS_WINDOW = "AndroidOpenIncognitoAsWindow";
|
||||
public static final String ANDROID_OPEN_PDF_INLINE_BACKPORT = "AndroidOpenPdfInlineBackport";
|
||||
public static final String ANDROID_PB_DISABLE_PULSE_ANIMATION =
|
||||
"AndroidPbDisablePulseAnimation";
|
||||
public static final String ANDROID_PB_DISABLE_SMOOTH_ANIMATION =
|
||||
"AndroidPbDisableSmoothAnimation";
|
||||
public static final String ANDROID_PDF_ASSIST_CONTENT = "AndroidPdfAssistContent";
|
||||
public static final String ANDROID_PINNED_TABS = "AndroidPinnedTabs";
|
||||
public static final String ANDROID_PINNED_TABS_TABLET_TAB_STRIP =
|
||||
@@ -208,9 +214,6 @@ public abstract class ChromeFeatureList {
|
||||
"AndroidTabDeclutterArchiveAllButActiveTab";
|
||||
public static final String ANDROID_TAB_DECLUTTER_ARCHIVE_TAB_GROUPS =
|
||||
"AndroidTabDeclutterArchiveTabGroups";
|
||||
public static final String ANDROID_TAB_DECLUTTER_AUTO_DELETE = "AndroidTabDeclutterAutoDelete";
|
||||
public static final String ANDROID_TAB_DECLUTTER_AUTO_DELETE_KILL_SWITCH =
|
||||
"AndroidTabDeclutterAutoDeleteKillSwitch";
|
||||
public static final String ANDROID_TAB_DECLUTTER_DEDUPE_TAB_IDS_KILL_SWITCH =
|
||||
"AndroidTabDeclutterDedupeTabIdsKillSwitch";
|
||||
public static final String ANDROID_TAB_DECLUTTER_PERFORMANCE_IMPROVEMENTS =
|
||||
@@ -225,19 +228,22 @@ public abstract class ChromeFeatureList {
|
||||
public static final String ANDROID_THEME_MODULE = "AndroidThemeModule";
|
||||
public static final String ANDROID_THEME_RESOURCE_PROVIDER = "AndroidThemeResourceProvider";
|
||||
public static final String ANDROID_TIPS_NOTIFICATIONS = "AndroidTipsNotifications";
|
||||
public static final String ANDROID_TWA_ORIGIN_DISPLAY = "AndroidTWAOriginDisplay";
|
||||
public static final String ANDROID_USE_ADMINS_FOR_ENTERPRISE_INFO =
|
||||
"AndroidUseAdminsForEnterpriseInfo";
|
||||
public static final String ANDROID_WEB_APP_HEADER_FOR_STANDALONE_MODE =
|
||||
"AndroidWebAppHeaderForStandaloneMode";
|
||||
public static final String ANDROID_WEB_APP_LAUNCH_HANDLER = "AndroidWebAppLaunchHandler";
|
||||
public static final String ANDROID_WEB_APP_MENU_BUTTON = "AndroidWebAppMenuButton";
|
||||
public static final String ANDROID_WINDOW_CONTROLS_OVERLAY = "AndroidWindowControlsOverlay";
|
||||
public static final String ANDROID_WINDOW_MANAGEMENT_WEB_API = "AndroidWindowManagementWebApi";
|
||||
public static final String ANDROID_WINDOW_POPUP_CUSTOM_TAB_UI = "AndroidWindowPopupCustomTabUi";
|
||||
public static final String ANDROID_WINDOW_POPUP_LARGE_SCREEN = "AndroidWindowPopupLargeScreen";
|
||||
public static final String ANDROID_WINDOW_POPUP_PREDICT_FINAL_BOUNDS =
|
||||
"AndroidWindowPopupPredictFinalBounds";
|
||||
public static final String ANDROID_WINDOW_POPUP_RESIZE_AFTER_SPAWN =
|
||||
"AndroidWindowPopupResizeAfterSpawn";
|
||||
public static final String ANDROID_XR_USES_SURFACE_CONTROL = "AndroidXRUsesSurfaceControl";
|
||||
public static final String ANDROID_ZOOM_INDICATOR = "AndroidZoomIndicator";
|
||||
public static final String ANIMATED_GIF_REFACTOR = "AnimatedGifRefactor";
|
||||
public static final String ANIMATED_IMAGE_DRAG_SHADOW = "AnimatedImageDragShadow";
|
||||
public static final String ANNOTATED_PAGE_CONTENTS_VIRTUAL_STRUCTURE =
|
||||
@@ -253,6 +259,8 @@ public abstract class ChromeFeatureList {
|
||||
"AutofillAndroidDesktopKeyboardAccessoryRevamp";
|
||||
public static final String AUTOFILL_ANDROID_DESKTOP_SUPPRESS_ACCESSORY_ON_EMPTY =
|
||||
"AutofillAndroidDesktopSuppressAccessoryOnEmpty";
|
||||
public static final String AUTOFILL_ANDROID_KEYBOARD_ACCESSORY_DYNAMIC_POSITIONING =
|
||||
"AutofillAndroidKeyboardAccessoryDynamicPositioning";
|
||||
public static final String AUTOFILL_DEEP_LINK_AUTOFILL_OPTIONS =
|
||||
"AutofillDeepLinkAutofillOptions";
|
||||
public static final String AUTOFILL_ENABLE_BUY_NOW_PAY_LATER = "AutofillEnableBuyNowPayLater";
|
||||
@@ -279,8 +287,6 @@ public abstract class ChromeFeatureList {
|
||||
public static final String AUTOFILL_ENABLE_SERVER_IBAN = "AutofillEnableServerIban";
|
||||
public static final String AUTOFILL_ENABLE_SUPPORT_FOR_HOME_AND_WORK =
|
||||
"AutofillEnableSupportForHomeAndWork";
|
||||
public static final String AUTOFILL_ENABLE_SYNCING_OF_PIX_BANK_ACCOUNTS =
|
||||
"AutofillEnableSyncingOfPixBankAccounts";
|
||||
public static final String AUTOFILL_RETRY_IMAGE_FETCH_ON_FAILURE =
|
||||
"AutofillRetryImageFetchOnFailure";
|
||||
public static final String AUTOFILL_SYNC_EWALLET_ACCOUNTS = "AutofillSyncEwalletAccounts";
|
||||
@@ -297,7 +303,6 @@ public abstract class ChromeFeatureList {
|
||||
"BackgroundThreadPoolFieldTrial";
|
||||
public static final String BACK_FORWARD_CACHE = "BackForwardCache";
|
||||
public static final String BCIV_BOTTOM_CONTROLS = "AndroidBcivBottomControls";
|
||||
public static final String BIOMETRIC_AUTH_IDENTITY_CHECK = "BiometricAuthIdentityCheck";
|
||||
public static final String BLOCK_INTENTS_WHILE_LOCKED = "BlockIntentsWhileLocked";
|
||||
public static final String BOARDING_PASS_DETECTOR = "BoardingPassDetector";
|
||||
public static final String BOOKMARK_PANE_ANDROID = "BookmarkPaneAndroid";
|
||||
@@ -334,6 +339,7 @@ public abstract class ChromeFeatureList {
|
||||
public static final String CCT_INCOGNITO_AVAILABLE_TO_THIRD_PARTY =
|
||||
"CCTIncognitoAvailableToThirdParty";
|
||||
public static final String CCT_MINIMIZED_ENABLED_BY_DEFAULT = "CCTMinimizedEnabledByDefault";
|
||||
public static final String CCT_MULTIPLE_PARALLEL_REQUESTS = "CCTMultipleParallelRequests";
|
||||
public static final String CCT_NAVIGATIONAL_PREFETCH = "CCTNavigationalPrefetch";
|
||||
public static final String CCT_NAVIGATION_METRICS = "CCTNavigationMetrics";
|
||||
public static final String CCT_NESTED_SECURITY_ICON = "CCTNestedSecurityIcon";
|
||||
@@ -358,13 +364,13 @@ public abstract class ChromeFeatureList {
|
||||
public static final String CLAMP_AUTOMOTIVE_SCALING = "ClampAutomotiveScaling";
|
||||
public static final String CLANK_STARTUP_LATENCY_INJECTION = "ClankStartupLatencyInjection";
|
||||
public static final String CLANK_WHATS_NEW = "ClankWhatsNew";
|
||||
public static final String CLEANUP_LEGACY_TABSTATE = "CleanupLegacyTabState";
|
||||
public static final String CLEAR_BROWSING_DATA_ANDROID_SURVEY =
|
||||
"ClearBrowsingDataAndroidSurvey";
|
||||
public static final String CLEAR_INSTANCE_INFO_WHEN_CLOSED_INTENTIONALLY =
|
||||
"ClearInstanceInfoWhenClosedIntentionally";
|
||||
public static final String CLEAR_INTENT_WHEN_RECREATED = "ClearIntentWhenRecreated";
|
||||
public static final String COMMAND_LINE_ON_NON_ROOTED = "CommandLineOnNonRooted";
|
||||
public static final String COMMERCE_MERCHANT_VIEWER = "CommerceMerchantViewer";
|
||||
public static final String CONTENT_CAPTURE_SEND_METADATA_FOR_DATA_SHARE =
|
||||
"ContentCaptureSendMetadataForDataShare";
|
||||
public static final String CONTEXTUAL_PAGE_ACTIONS = "ContextualPageActions";
|
||||
public static final String CONTEXTUAL_PAGE_ACTION_READER_MODE =
|
||||
"ContextualPageActionReaderMode";
|
||||
@@ -401,6 +407,7 @@ public abstract class ChromeFeatureList {
|
||||
public static final String DISPLAY_EDGE_TO_EDGE_FULLSCREEN = "DisplayEdgeToEdgeFullscreen";
|
||||
public static final String DISPLAY_WILDCARD_CONTENT_SETTINGS =
|
||||
"DisplayWildcardInContentSettings";
|
||||
public static final String DOCUMENT_PICTURE_IN_PICTURE_API = "DocumentPictureInPictureAPI";
|
||||
public static final String DRAW_CHROME_PAGES_EDGE_TO_EDGE = "DrawChromePagesEdgeToEdge";
|
||||
public static final String DRAW_CUTOUT_EDGE_TO_EDGE = "DrawCutoutEdgeToEdge";
|
||||
public static final String EDGE_TO_EDGE_BOTTOM_CHIN = "EdgeToEdgeBottomChin";
|
||||
@@ -439,6 +446,7 @@ public abstract class ChromeFeatureList {
|
||||
public static final String FILLING_PASSWORDS_FROM_ANY_ORIGIN = "FillingPasswordsFromAnyOrigin";
|
||||
public static final String FINGERPRINTING_PROTECTION_UX = "FingerprintingProtectionUx";
|
||||
public static final String FLOATING_SNACKBAR = "FloatingSnackbar";
|
||||
public static final String FLUID_RESIZE = "FluidResize";
|
||||
public static final String FORCE_LIST_TAB_SWITCHER = "ForceListTabSwitcher";
|
||||
public static final String FORCE_TRANSLUCENT_NOTIFICATION_TRAMPOLINE =
|
||||
"ForceTranslucentNotificationTrampoline";
|
||||
@@ -468,8 +476,8 @@ public abstract class ChromeFeatureList {
|
||||
public static final String INSTANCE_SWITCHER_V2 = "InstanceSwitcherV2";
|
||||
public static final String IP_PROTECTION_UX = "IpProtectionUx";
|
||||
public static final String KEYBOARD_ESC_BACK_NAVIGATION = "KeyboardEscBackNavigation";
|
||||
public static final String LEGACY_TAB_STATE_DEPRECATION = "LegacyTabStateDeprecation";
|
||||
public static final String LENS_ON_QUICK_ACTION_SEARCH_WIDGET = "LensOnQuickActionSearchWidget";
|
||||
public static final String LINK_HOVER_STATUS_BAR = "LinkHoverStatusBar";
|
||||
public static final String LOADING_PREDICTOR_LIMIT_PRECONNECT_SOCKET_COUNT =
|
||||
"LoadingPredictorLimitPreconnectSocketCount";
|
||||
public static final String LOAD_ALL_TABS_AT_STARTUP = "LoadAllTabsAtStartup";
|
||||
@@ -488,8 +496,6 @@ public abstract class ChromeFeatureList {
|
||||
"MayLaunchUrlUsesSeparateStoragePartition";
|
||||
public static final String MEDIA_INDICATORS_ANDROID = "MediaIndicatorsAndroid";
|
||||
public static final String MINI_ORIGIN_BAR = "MiniOriginBar";
|
||||
public static final String MITIGATE_LEGACY_SEARCH_ENGINE_PROMO_OVERLAP =
|
||||
"MitigateLegacySearchEnginePromoOverlap";
|
||||
public static final String MOST_VISITED_TILES_CUSTOMIZATION = "MostVisitedTilesCustomization";
|
||||
public static final String MOST_VISITED_TILES_RESELECT = "MostVisitedTilesReselect";
|
||||
public static final String MULTI_INSTANCE_APPLICATION_STATUS_CLEANUP =
|
||||
@@ -510,8 +516,6 @@ public abstract class ChromeFeatureList {
|
||||
"OmniboxAutofocusOnIncognitoNtp";
|
||||
public static final String OMNIBOX_CACHE_SUGGESTION_RESOURCES =
|
||||
"OmniboxCacheSuggestionResources";
|
||||
public static final String OPTIMIZATION_GUIDE_PUSH_NOTIFICATIONS =
|
||||
"OptimizationGuidePushNotifications";
|
||||
public static final String PAGE_CONTENT_PROVIDER = "PageContentProvider";
|
||||
public static final String PAGE_INFO_ABOUT_THIS_SITE_MORE_LANGS =
|
||||
"PageInfoAboutThisSiteMoreLangs";
|
||||
@@ -554,7 +558,6 @@ public abstract class ChromeFeatureList {
|
||||
public static final String PWA_RESTORE_UI = "PwaRestoreUi";
|
||||
public static final String PWA_RESTORE_UI_AT_STARTUP = "PwaRestoreUiAtStartup";
|
||||
public static final String PWA_UPDATE_DIALOG_FOR_ICON = "PwaUpdateDialogForIcon";
|
||||
public static final String QUICK_DELETE_ANDROID_SURVEY = "QuickDeleteAndroidSurvey";
|
||||
public static final String QUIET_NOTIFICATION_PROMPTS = "QuietNotificationPrompts";
|
||||
public static final String READALOUD = "ReadAloud";
|
||||
public static final String READALOUD_AUDIO_OVERVIEWS = "ReadAloudAudioOverviews";
|
||||
@@ -569,6 +572,9 @@ public abstract class ChromeFeatureList {
|
||||
"ReadAloudIPHMenuButtonHighlightCCT";
|
||||
public static final String READALOUD_PLAYBACK = "ReadAloudPlayback";
|
||||
public static final String READALOUD_TAP_TO_SEEK = "ReadAloudTapToSeek";
|
||||
public static final String RECENTLY_CLOSED_TABS_AND_WINDOWS = "RecentlyClosedTabsAndWindows";
|
||||
public static final String RECORD_INCOGNITO_NTP_TIME_TO_FIRST_NAVIGATION_METRIC =
|
||||
"RecordIncognitoNtpTimeToFirstNavigationMetric";
|
||||
public static final String RECORD_SUPPRESSION_METRICS = "RecordSuppressionMetrics";
|
||||
public static final String REENGAGEMENT_NOTIFICATION = "ReengagementNotification";
|
||||
public static final String RELATED_SEARCHES_ALL_LANGUAGE = "RelatedSearchesAllLanguage";
|
||||
@@ -588,13 +594,9 @@ public abstract class ChromeFeatureList {
|
||||
"RobustWindowManagementExperimental";
|
||||
public static final String ROLL_BACK_MODE_B = "RollBackModeB";
|
||||
public static final String SAFETY_HUB = "SafetyHub";
|
||||
public static final String SAFETY_HUB_ANDROID_ORGANIC_SURVEY = "SafetyHubAndroidOrganicSurvey";
|
||||
public static final String SAFETY_HUB_ANDROID_SURVEY = "SafetyHubAndroidSurvey";
|
||||
public static final String SAFETY_HUB_ANDROID_SURVEY_V2 = "SafetyHubAndroidSurveyV2";
|
||||
public static final String SAFETY_HUB_DISRUPTIVE_NOTIFICATION_REVOCATION =
|
||||
"SafetyHubDisruptiveNotificationRevocation";
|
||||
public static final String SAFETY_HUB_LOCAL_PASSWORDS_MODULE = "SafetyHubLocalPasswordsModule";
|
||||
public static final String SAFETY_HUB_MAGIC_STACK = "SafetyHubMagicStack";
|
||||
public static final String SAFETY_HUB_UNIFIED_PASSWORDS_MODULE =
|
||||
"SafetyHubUnifiedPasswordsModule";
|
||||
public static final String SAFETY_HUB_WEAK_AND_REUSED_PASSWORDS =
|
||||
@@ -665,7 +667,6 @@ public abstract class ChromeFeatureList {
|
||||
public static final String TAB_STRIP_DENSITY_CHANGE_ANDROID = "TabStripDensityChangeAndroid";
|
||||
public static final String TAB_STRIP_GROUP_DRAG_DROP_ANDROID = "TabStripGroupDragDropAndroid";
|
||||
public static final String TAB_STRIP_INCOGNITO_MIGRATION = "TabStripIncognitoMigration";
|
||||
public static final String TAB_STRIP_LAYOUT_OPTIMIZATION = "TabStripLayoutOptimization";
|
||||
public static final String TAB_STRIP_MOUSE_CLOSE_RESIZE_DELAY = "TabStripMouseCloseResizeDelay";
|
||||
public static final String TAB_SWITCHER_DRAG_DROP_ANDROID = "TabSwitcherDragDropAndroid";
|
||||
public static final String TAB_SWITCHER_GROUP_SUGGESTIONS_ANDROID =
|
||||
@@ -716,6 +717,7 @@ public abstract class ChromeFeatureList {
|
||||
public static final String WEB_FEED_ONBOARDING = "WebFeedOnboarding";
|
||||
public static final String WEB_FEED_SORT = "WebFeedSort";
|
||||
public static final String WEB_OTP_CROSS_DEVICE_SIMPLE_STRING = "WebOtpCrossDeviceSimpleString";
|
||||
public static final String XPLAT_SYNCED_SETUP = "XplatSyncedSetup";
|
||||
public static final String XSURFACE_METRICS_REPORTING = "XsurfaceMetricsReporting";
|
||||
// keep-sorted end
|
||||
// LINT.ThenChange(//chrome/browser/flags/android/chrome_feature_list.cc:FeaturesExposedToJava)
|
||||
@@ -732,6 +734,8 @@ public abstract class ChromeFeatureList {
|
||||
newCachedFlag(ANDROID_APP_INTEGRATION_MODULE, true);
|
||||
public static final CachedFlag sAndroidAppIntegrationMultiDataSource =
|
||||
newCachedFlag(ANDROID_APP_INTEGRATION_MULTI_DATA_SOURCE, true);
|
||||
public static final CachedFlag sAndroidAutoMintedTwa =
|
||||
newCachedFlag(ANDROID_AUTO_MINTED_TWA, false);
|
||||
public static final CachedFlag sAndroidBottomToolbar =
|
||||
newCachedFlag(ANDROID_BOTTOM_TOOLBAR, true, true);
|
||||
public static final CachedFlag sAndroidBottomToolbarV2 =
|
||||
@@ -745,13 +749,15 @@ public abstract class ChromeFeatureList {
|
||||
public static final CachedFlag sAndroidDataImporterService =
|
||||
newCachedFlag(ANDROID_DATA_IMPORTER_SERVICE, true);
|
||||
public static final CachedFlag sAndroidDesktopDensity =
|
||||
newCachedFlag(ANDROID_DESKTOP_DENSITY, false);
|
||||
newCachedFlag(ANDROID_DESKTOP_DENSITY, true);
|
||||
public static final CachedFlag sAndroidElegantTextHeight =
|
||||
newCachedFlag(ANDROID_ELEGANT_TEXT_HEIGHT, true);
|
||||
public static final CachedFlag sAndroidLogoViewRefactor =
|
||||
newCachedFlag(ANDROID_LOGO_VIEW_REFACTOR, /* defaultValue= */ true);
|
||||
public static final CachedFlag sAndroidMinimalUiLargeScreen =
|
||||
newCachedFlag(ANDROID_MINIMAL_UI_LARGE_SCREEN, true);
|
||||
public static final CachedFlag sAndroidNewMediaPicker =
|
||||
newCachedFlag(ANDROID_NEW_MEDIA_PICKER, false);
|
||||
public static final CachedFlag sAndroidOpenIncognitoAsWindow =
|
||||
newCachedFlag(ANDROID_OPEN_INCOGNITO_AS_WINDOW, BuildConfig.IS_DESKTOP_ANDROID);
|
||||
public static final CachedFlag sAndroidProgressBarVisualUpdate =
|
||||
@@ -760,7 +766,10 @@ public abstract class ChromeFeatureList {
|
||||
/* defaultValue= */ false,
|
||||
/* defaultValueInTests= */ true);
|
||||
public static final CachedFlag sAndroidSettingsContainment =
|
||||
newCachedFlag(ANDROID_SETTINGS_CONTAINMENT, false);
|
||||
newCachedFlag(
|
||||
ANDROID_SETTINGS_CONTAINMENT,
|
||||
/* defaultValue= */ false,
|
||||
/* defaultValueInTests= */ true);
|
||||
public static final CachedFlag sAndroidSurfaceColorUpdate =
|
||||
newCachedFlag(
|
||||
ANDROID_SURFACE_COLOR_UPDATE,
|
||||
@@ -775,19 +784,25 @@ public abstract class ChromeFeatureList {
|
||||
public static final CachedFlag sAndroidThemeModule = newCachedFlag(ANDROID_THEME_MODULE, true);
|
||||
public static final CachedFlag sAndroidThemeResourceProvider =
|
||||
newCachedFlag(ANDROID_THEME_RESOURCE_PROVIDER, false, /* defaultValueInTests= */ false);
|
||||
public static final CachedFlag sAndroidTwaOriginDisplay =
|
||||
newCachedFlag(ANDROID_TWA_ORIGIN_DISPLAY, false);
|
||||
public static final CachedFlag sAndroidUseAdminsForEnterpriseInfo =
|
||||
newCachedFlag(ANDROID_USE_ADMINS_FOR_ENTERPRISE_INFO, true);
|
||||
public static final CachedFlag sAndroidWebAppHeaderForStandaloneMode =
|
||||
newCachedFlag(ANDROID_WEB_APP_HEADER_FOR_STANDALONE_MODE, false);
|
||||
public static final CachedFlag sAndroidWebAppLaunchHandler =
|
||||
newCachedFlag(ANDROID_WEB_APP_LAUNCH_HANDLER, false, true);
|
||||
public static final CachedFlag sAndroidWebAppMenuButton =
|
||||
newCachedFlag(ANDROID_WEB_APP_MENU_BUTTON, false);
|
||||
newCachedFlag(ANDROID_WEB_APP_MENU_BUTTON, true);
|
||||
public static final CachedFlag sAndroidWindowControlsOverlay =
|
||||
newCachedFlag(ANDROID_WINDOW_CONTROLS_OVERLAY, false);
|
||||
newCachedFlag(ANDROID_WINDOW_CONTROLS_OVERLAY, true);
|
||||
public static final CachedFlag sAndroidWindowManagementWebApi =
|
||||
newCachedFlag(
|
||||
ANDROID_WINDOW_MANAGEMENT_WEB_API,
|
||||
/* defaultValue= */ false,
|
||||
/* defaultValueInTests= */ true);
|
||||
public static final CachedFlag sAndroidWindowPopupCustomTabUi =
|
||||
newCachedFlag(ANDROID_WINDOW_POPUP_CUSTOM_TAB_UI, false, true);
|
||||
public static final CachedFlag sAndroidWindowPopupLargeScreen =
|
||||
newCachedFlag(ANDROID_WINDOW_POPUP_LARGE_SCREEN, false, true);
|
||||
public static final CachedFlag sAndroidWindowPopupPredictFinalBounds =
|
||||
@@ -873,11 +888,8 @@ public abstract class ChromeFeatureList {
|
||||
newCachedFlag(CLAMP_AUTOMOTIVE_SCALING, true);
|
||||
public static final CachedFlag sClankStartupLatencyInjection =
|
||||
newCachedFlag(CLANK_STARTUP_LATENCY_INJECTION, false);
|
||||
public static final CachedFlag sCleanupLegacyTabState =
|
||||
newCachedFlag(
|
||||
CLEANUP_LEGACY_TABSTATE,
|
||||
/* defaultValue= */ false,
|
||||
/* defaultValueInTests= */ true);
|
||||
public static final CachedFlag sClearIntentWhenRecreated =
|
||||
newCachedFlag(CLEAR_INTENT_WHEN_RECREATED, /* defaultValue= */ true);
|
||||
public static final CachedFlag sCommandLineOnNonRooted =
|
||||
newCachedFlag(COMMAND_LINE_ON_NON_ROOTED, false);
|
||||
public static final CachedFlag sContextMenuPictureInPictureAndroid =
|
||||
@@ -894,9 +906,11 @@ public abstract class ChromeFeatureList {
|
||||
newCachedFlag(
|
||||
DESKTOP_UA_ON_CONNECTED_DISPLAY,
|
||||
/* defaultValue= */ false,
|
||||
/* defaultValueInTests= */ false);
|
||||
/* defaultValueInTests= */ true);
|
||||
public static final CachedFlag sDisplayEdgeToEdgeFullscreen =
|
||||
newCachedFlag(DISPLAY_EDGE_TO_EDGE_FULLSCREEN, false, true);
|
||||
public static final CachedFlag sDocumentPictureInPictureAPI =
|
||||
newCachedFlag(DOCUMENT_PICTURE_IN_PICTURE_API, false, /* defaultValueInTests= */ false);
|
||||
public static final CachedFlag sDrawChromePagesEdgeToEdge =
|
||||
newCachedFlag(DRAW_CHROME_PAGES_EDGE_TO_EDGE, /* defaultValue= */ true);
|
||||
public static final CachedFlag sEdgeToEdgeBottomChin =
|
||||
@@ -910,16 +924,18 @@ public abstract class ChromeFeatureList {
|
||||
public static final CachedFlag sEdgeToEdgeUseBackupNavbarInsets =
|
||||
newCachedFlag(EDGE_TO_EDGE_USE_BACKUP_NAVBAR_INSETS, true);
|
||||
public static final CachedFlag sEducationalTipDefaultBrowserPromoCard =
|
||||
newCachedFlag(EDUCATIONAL_TIP_DEFAULT_BROWSER_PROMO_CARD, false);
|
||||
newCachedFlag(EDUCATIONAL_TIP_DEFAULT_BROWSER_PROMO_CARD, false, true);
|
||||
public static final CachedFlag sEducationalTipModule =
|
||||
newCachedFlag(EDUCATIONAL_TIP_MODULE, true);
|
||||
public static final CachedFlag sEnableExclusiveAccessManager =
|
||||
newCachedFlag(ENABLE_EXCLUSIVE_ACCESS_MANAGER, false, false);
|
||||
newCachedFlag(ENABLE_EXCLUSIVE_ACCESS_MANAGER, false, true);
|
||||
public static final CachedFlag sEnableFullscreenToAnyScreenAndroid =
|
||||
newCachedFlag(ENABLE_FULLSCREEN_TO_ANY_SCREEN_ANDROID, false, true);
|
||||
public static final CachedFlag sEnableXAxisActivityTransition =
|
||||
newCachedFlag(ENABLE_X_AXIS_ACTIVITY_TRANSITION, false);
|
||||
public static final CachedFlag sFloatingSnackbar = newCachedFlag(FLOATING_SNACKBAR, true);
|
||||
public static final CachedFlag sFluidResize =
|
||||
newCachedFlag(FLUID_RESIZE, /* defaultValue= */ false, /* defaultValueInTests= */ true);
|
||||
public static final CachedFlag sForceTranslucentNotificationTrampoline =
|
||||
newCachedFlag(FORCE_TRANSLUCENT_NOTIFICATION_TRAMPOLINE, false);
|
||||
public static final CachedFlag sFullscreenInsetsApiMigration =
|
||||
@@ -944,16 +960,11 @@ public abstract class ChromeFeatureList {
|
||||
newCachedFlag(INCOGNITO_THEME_OVERLAY_TESTING, false);
|
||||
public static final CachedFlag sKeyboardEscBackNavigation =
|
||||
newCachedFlag(KEYBOARD_ESC_BACK_NAVIGATION, true);
|
||||
public static final CachedFlag sLegacyTabStateDeprecation =
|
||||
newCachedFlag(
|
||||
LEGACY_TAB_STATE_DEPRECATION,
|
||||
/* defaultValue= */ true,
|
||||
/* defaultValueInTests= */ true);
|
||||
public static final CachedFlag sLoadAllTabsAtStartup =
|
||||
newCachedFlag(
|
||||
LOAD_ALL_TABS_AT_STARTUP,
|
||||
/* defaultValue= */ false,
|
||||
/* defaultValueInTests= */ false);
|
||||
/* defaultValueInTests= */ true);
|
||||
public static final CachedFlag sLoadNativeEarly =
|
||||
newCachedFlag(
|
||||
LOAD_NATIVE_EARLY, /* defaultValue= */ false, /* defaultValueInTests= */ true);
|
||||
@@ -968,12 +979,10 @@ public abstract class ChromeFeatureList {
|
||||
/* defaultValue= */ false,
|
||||
/* defaultValueInTests= */ true);
|
||||
public static final CachedFlag sMiniOriginBar = newCachedFlag(MINI_ORIGIN_BAR, true, true);
|
||||
public static final CachedFlag sMitigateLegacySearchEnginePromoOverlap =
|
||||
newCachedFlag(MITIGATE_LEGACY_SEARCH_ENGINE_PROMO_OVERLAP, true, true);
|
||||
public static final CachedFlag sMostVisitedTilesCustomization =
|
||||
newCachedFlag(
|
||||
MOST_VISITED_TILES_CUSTOMIZATION,
|
||||
/* defaultValue= */ false,
|
||||
/* defaultValue= */ true,
|
||||
/* defaultValueInTests= */ true);
|
||||
public static final CachedFlag sMostVisitedTilesReselect =
|
||||
newCachedFlag(MOST_VISITED_TILES_RESELECT, false);
|
||||
@@ -989,15 +998,13 @@ public abstract class ChromeFeatureList {
|
||||
public static final CachedFlag sNewTabPageCustomization =
|
||||
newCachedFlag(NEW_TAB_PAGE_CUSTOMIZATION, true);
|
||||
public static final CachedFlag sNewTabPageCustomizationForMvt =
|
||||
newCachedFlag(NEW_TAB_PAGE_CUSTOMIZATION_FOR_MVT, false, true);
|
||||
newCachedFlag(NEW_TAB_PAGE_CUSTOMIZATION_FOR_MVT, true);
|
||||
public static final CachedFlag sNewTabPageCustomizationToolbarButton =
|
||||
newCachedFlag(NEW_TAB_PAGE_CUSTOMIZATION_TOOLBAR_BUTTON, false);
|
||||
public static final CachedFlag sNewTabPageCustomizationV2 =
|
||||
newCachedFlag(NEW_TAB_PAGE_CUSTOMIZATION_V2, false);
|
||||
public static final CachedFlag sNotificationTrampoline =
|
||||
newCachedFlag(NOTIFICATION_TRAMPOLINE, false);
|
||||
public static final CachedFlag sOptimizationGuidePushNotifications =
|
||||
newCachedFlag(OPTIMIZATION_GUIDE_PUSH_NOTIFICATIONS, true);
|
||||
public static final CachedFlag sPCctMinimumHeight = newCachedFlag(PCCT_MINIMUM_HEIGHT, true);
|
||||
public static final CachedFlag sPaintPreviewDemo = newCachedFlag(PAINT_PREVIEW_DEMO, false);
|
||||
public static final CachedFlag sPostGetMyMemoryStateToBackground =
|
||||
@@ -1012,8 +1019,6 @@ public abstract class ChromeFeatureList {
|
||||
/* defaultValueInTests= */ true);
|
||||
public static final CachedFlag sRightEdgeGoesForwardGestureNav =
|
||||
newCachedFlag(RIGHT_EDGE_GOES_FORWARD_GESTURE_NAV, false);
|
||||
public static final CachedFlag sSafetyHubMagicStack =
|
||||
newCachedFlag(SAFETY_HUB_MAGIC_STACK, false);
|
||||
public static final CachedFlag sSafetyHubWeakAndReusedPasswords =
|
||||
newCachedFlag(SAFETY_HUB_WEAK_AND_REUSED_PASSWORDS, false);
|
||||
public static final CachedFlag sSearchInCCT =
|
||||
@@ -1030,7 +1035,7 @@ public abstract class ChromeFeatureList {
|
||||
newCachedFlag(
|
||||
SETTINGS_MULTI_COLUMN,
|
||||
/* defaultValue= */ false,
|
||||
/* defaultValueInTests= */ false);
|
||||
/* defaultValueInTests= */ true);
|
||||
public static final CachedFlag sSettingsSingleActivity =
|
||||
newCachedFlag(
|
||||
SETTINGS_SINGLE_ACTIVITY,
|
||||
@@ -1082,10 +1087,13 @@ public abstract class ChromeFeatureList {
|
||||
public static final CachedFlag sToolbarStaleCaptureBugFix =
|
||||
newCachedFlag(
|
||||
TOOLBAR_STALE_CAPTURE_BUG_FIX,
|
||||
/* defaultValue= */ false,
|
||||
/* defaultValue= */ true,
|
||||
/* defaultValueInTests= */ true);
|
||||
public static final CachedFlag sToolbarTabletResizeRefactor =
|
||||
newCachedFlag(TOOLBAR_TABLET_RESIZE_REFACTOR, /* defaultValue= */ false);
|
||||
newCachedFlag(
|
||||
TOOLBAR_TABLET_RESIZE_REFACTOR,
|
||||
/* defaultValue= */ false,
|
||||
/* defaultValueInTests= */ true);
|
||||
public static final CachedFlag sTopControlsRefactor =
|
||||
newCachedFlag(
|
||||
TOP_CONTROLS_REFACTOR,
|
||||
@@ -1118,6 +1126,7 @@ public abstract class ChromeFeatureList {
|
||||
sAndroidAnimatedProgressBarInViz,
|
||||
sAndroidAppIntegrationModule,
|
||||
sAndroidAppIntegrationMultiDataSource,
|
||||
sAndroidAutoMintedTwa,
|
||||
sAndroidBottomToolbar,
|
||||
sAndroidBottomToolbarV2,
|
||||
sAndroidComposeplate,
|
||||
@@ -1127,6 +1136,7 @@ public abstract class ChromeFeatureList {
|
||||
sAndroidElegantTextHeight,
|
||||
sAndroidLogoViewRefactor,
|
||||
sAndroidMinimalUiLargeScreen,
|
||||
sAndroidNewMediaPicker,
|
||||
sAndroidOpenIncognitoAsWindow,
|
||||
sAndroidProgressBarVisualUpdate,
|
||||
sAndroidSettingsContainment,
|
||||
@@ -1136,11 +1146,14 @@ public abstract class ChromeFeatureList {
|
||||
sAndroidTabSkipSaveTabsKillswitch,
|
||||
sAndroidThemeModule,
|
||||
sAndroidThemeResourceProvider,
|
||||
sAndroidTwaOriginDisplay,
|
||||
sAndroidUseAdminsForEnterpriseInfo,
|
||||
sAndroidWebAppHeaderForStandaloneMode,
|
||||
sAndroidWebAppLaunchHandler,
|
||||
sAndroidWebAppMenuButton,
|
||||
sAndroidWindowControlsOverlay,
|
||||
sAndroidWindowManagementWebApi,
|
||||
sAndroidWindowPopupCustomTabUi,
|
||||
sAndroidWindowPopupLargeScreen,
|
||||
sAndroidWindowPopupPredictFinalBounds,
|
||||
sAndroidWindowPopupResizeAfterSpawn,
|
||||
@@ -1179,7 +1192,7 @@ public abstract class ChromeFeatureList {
|
||||
sChromeNativeUrlOverriding,
|
||||
sClampAutomotiveScaling,
|
||||
sClankStartupLatencyInjection,
|
||||
sCleanupLegacyTabState,
|
||||
sClearIntentWhenRecreated,
|
||||
sCommandLineOnNonRooted,
|
||||
sContextMenuPictureInPictureAndroid,
|
||||
sCpaSpecUpdate,
|
||||
@@ -1187,6 +1200,7 @@ public abstract class ChromeFeatureList {
|
||||
sCrossDeviceTabPaneAndroid,
|
||||
sDesktopUAOnConnectedDisplay,
|
||||
sDisplayEdgeToEdgeFullscreen,
|
||||
sDocumentPictureInPictureAPI,
|
||||
sDrawChromePagesEdgeToEdge,
|
||||
sEdgeToEdgeBottomChin,
|
||||
sEdgeToEdgeEverywhere,
|
||||
@@ -1199,6 +1213,7 @@ public abstract class ChromeFeatureList {
|
||||
sEnableFullscreenToAnyScreenAndroid,
|
||||
sEnableXAxisActivityTransition,
|
||||
sFloatingSnackbar,
|
||||
sFluidResize,
|
||||
sForceTranslucentNotificationTrampoline,
|
||||
sFullscreenInsetsApiMigration,
|
||||
sFullscreenInsetsApiMigrationOnAutomotive,
|
||||
@@ -1208,7 +1223,6 @@ public abstract class ChromeFeatureList {
|
||||
sHomepageIsNewTabPagePolicyAndroid,
|
||||
sIncognitoThemeOverlayTesting,
|
||||
sKeyboardEscBackNavigation,
|
||||
sLegacyTabStateDeprecation,
|
||||
sLoadAllTabsAtStartup,
|
||||
sLoadNativeEarly,
|
||||
sLockBackPressHandlerAtStart,
|
||||
@@ -1216,7 +1230,6 @@ public abstract class ChromeFeatureList {
|
||||
sMagicStackAndroid,
|
||||
sMaliciousApkDownloadCheck,
|
||||
sMiniOriginBar,
|
||||
sMitigateLegacySearchEnginePromoOverlap,
|
||||
sMostVisitedTilesCustomization,
|
||||
sMostVisitedTilesReselect,
|
||||
sMultiInstanceApplicationStatusCleanup,
|
||||
@@ -1227,7 +1240,6 @@ public abstract class ChromeFeatureList {
|
||||
sNewTabPageCustomizationToolbarButton,
|
||||
sNewTabPageCustomizationV2,
|
||||
sNotificationTrampoline,
|
||||
sOptimizationGuidePushNotifications,
|
||||
sPCctMinimumHeight,
|
||||
sPaintPreviewDemo,
|
||||
sPostGetMyMemoryStateToBackground,
|
||||
@@ -1235,7 +1247,6 @@ public abstract class ChromeFeatureList {
|
||||
sPriceChangeModule,
|
||||
sReportNotificationContentDetectionData,
|
||||
sRightEdgeGoesForwardGestureNav,
|
||||
sSafetyHubMagicStack,
|
||||
sSafetyHubWeakAndReusedPasswords,
|
||||
sSearchInCCT,
|
||||
sSearchInCCTAlternateTapHandling,
|
||||
@@ -1308,10 +1319,6 @@ public abstract class ChromeFeatureList {
|
||||
newMutableFlagWithSafeDefault(ANDROID_TAB_DECLUTTER_ARCHIVE_ALL_BUT_ACTIVE, false);
|
||||
public static final MutableFlagWithSafeDefault sAndroidTabDeclutterArchiveTabGroups =
|
||||
newMutableFlagWithSafeDefault(ANDROID_TAB_DECLUTTER_ARCHIVE_TAB_GROUPS, true);
|
||||
public static final MutableFlagWithSafeDefault sAndroidTabDeclutterAutoDelete =
|
||||
newMutableFlagWithSafeDefault(ANDROID_TAB_DECLUTTER_AUTO_DELETE, true);
|
||||
public static final MutableFlagWithSafeDefault sAndroidTabDeclutterAutoDeleteKillSwitch =
|
||||
newMutableFlagWithSafeDefault(ANDROID_TAB_DECLUTTER_AUTO_DELETE_KILL_SWITCH, true);
|
||||
public static final MutableFlagWithSafeDefault sAndroidTabDeclutterPerformanceImprovements =
|
||||
newMutableFlagWithSafeDefault(ANDROID_TAB_DECLUTTER_PERFORMANCE_IMPROVEMENTS, true);
|
||||
public static final MutableFlagWithSafeDefault sAndroidTabDeclutterRescueKillSwitch =
|
||||
@@ -1320,8 +1327,6 @@ public abstract class ChromeFeatureList {
|
||||
newMutableFlagWithSafeDefault(ANDROID_TAB_HIGHLIGHTING, false);
|
||||
public static final MutableFlagWithSafeDefault sAndroidTipsNotifications =
|
||||
newMutableFlagWithSafeDefault(ANDROID_TIPS_NOTIFICATIONS, false);
|
||||
public static final MutableFlagWithSafeDefault sAndroidZoomIndicator =
|
||||
newMutableFlagWithSafeDefault(ANDROID_ZOOM_INDICATOR, false);
|
||||
public static final MutableFlagWithSafeDefault sBcivBottomControls =
|
||||
newMutableFlagWithSafeDefault(BCIV_BOTTOM_CONTROLS, true);
|
||||
public static final MutableFlagWithSafeDefault sBrowserControlsEarlyResize =
|
||||
@@ -1331,8 +1336,6 @@ public abstract class ChromeFeatureList {
|
||||
// Default to false. The logic behind the flag is not relevant when native is not initialized.
|
||||
public static final MutableFlagWithSafeDefault sBrowserControlsRenderDrivenShowConstraint =
|
||||
newMutableFlagWithSafeDefault(BROWSER_CONTROLS_RENDER_DRIVEN_SHOW_CONSTRAINT, false);
|
||||
public static final MutableFlagWithSafeDefault sClearBrowsingDataAndroidSurvey =
|
||||
newMutableFlagWithSafeDefault(CLEAR_BROWSING_DATA_ANDROID_SURVEY, false);
|
||||
public static final MutableFlagWithSafeDefault sControlsVisibilityFromNavigations =
|
||||
newMutableFlagWithSafeDefault(CONTROLS_VISIBILITY_FROM_NAVIGATIONS, true);
|
||||
public static final MutableFlagWithSafeDefault sDisableInstanceLimit =
|
||||
@@ -1357,18 +1360,15 @@ public abstract class ChromeFeatureList {
|
||||
newMutableFlagWithSafeDefault(ANDROID_NO_VISIBLE_HINT_FOR_DIFFERENT_TLD, true);
|
||||
public static final MutableFlagWithSafeDefault sOmniboxAutofocusOnIncognitoNtp =
|
||||
newMutableFlagWithSafeDefault(OMNIBOX_AUTOFOCUS_ON_INCOGNITO_NTP, false);
|
||||
public static final MutableFlagWithSafeDefault sQuickDeleteAndroidSurvey =
|
||||
newMutableFlagWithSafeDefault(QUICK_DELETE_ANDROID_SURVEY, false);
|
||||
public static final MutableFlagWithSafeDefault sReadAloudTapToSeek =
|
||||
newMutableFlagWithSafeDefault(READALOUD_TAP_TO_SEEK, false);
|
||||
public static final MutableFlagWithSafeDefault sRecordIncognitoNtpTimeToFirstNavigationMetric =
|
||||
newMutableFlagWithSafeDefault(
|
||||
RECORD_INCOGNITO_NTP_TIME_TO_FIRST_NAVIGATION_METRIC, true);
|
||||
public static final MutableFlagWithSafeDefault sRecordSuppressionMetrics =
|
||||
newMutableFlagWithSafeDefault(RECORD_SUPPRESSION_METRICS, true);
|
||||
public static final MutableFlagWithSafeDefault sSafetyHubAndroidOrganicSurvey =
|
||||
newMutableFlagWithSafeDefault(SAFETY_HUB_ANDROID_ORGANIC_SURVEY, false);
|
||||
public static final MutableFlagWithSafeDefault sSafetyHubAndroidSurvey =
|
||||
newMutableFlagWithSafeDefault(SAFETY_HUB_ANDROID_SURVEY, false);
|
||||
public static final MutableFlagWithSafeDefault sSafetyHubAndroidSurveyV2 =
|
||||
newMutableFlagWithSafeDefault(SAFETY_HUB_ANDROID_SURVEY_V2, false);
|
||||
public static final MutableFlagWithSafeDefault sRobustWindowManagement =
|
||||
newMutableFlagWithSafeDefault(ROBUST_WINDOW_MANAGEMENT, false);
|
||||
public static final MutableFlagWithSafeDefault sShowNewTabAnimations =
|
||||
newMutableFlagWithSafeDefault(SHOW_NEW_TAB_ANIMATIONS, false);
|
||||
public static final MutableFlagWithSafeDefault sShowTabListAnimations =
|
||||
@@ -1383,8 +1383,6 @@ public abstract class ChromeFeatureList {
|
||||
newMutableFlagWithSafeDefault(TAB_GROUP_ENTRY_POINTS_ANDROID, true);
|
||||
public static final MutableFlagWithSafeDefault sTabGroupParityBottomSheetAndroid =
|
||||
newMutableFlagWithSafeDefault(TAB_GROUP_PARITY_BOTTOM_SHEET_ANDROID, true);
|
||||
public static final MutableFlagWithSafeDefault sTabStripLayoutOptimization =
|
||||
newMutableFlagWithSafeDefault(TAB_STRIP_LAYOUT_OPTIMIZATION, true);
|
||||
public static final MutableFlagWithSafeDefault sTabSwitcherGroupSuggestionsAndroid =
|
||||
newMutableFlagWithSafeDefault(TAB_SWITCHER_GROUP_SUGGESTIONS_ANDROID, false);
|
||||
public static final MutableFlagWithSafeDefault sTabSwitcherGroupSuggestionsTestModeAndroid =
|
||||
@@ -1395,6 +1393,8 @@ public abstract class ChromeFeatureList {
|
||||
|
||||
// CachedFeatureParam instances.
|
||||
/* Alphabetical order by feature name, arbitrary order by param name: */
|
||||
public static final IntCachedFeatureParam sAndroidAnimatedProgressBarFpsCap =
|
||||
newIntCachedFeatureParam(ANDROID_ANIMATED_PROGRESS_BAR_IN_BROWSER, "fps_cap", 0);
|
||||
public static final BooleanCachedFeatureParam sAndroidThemeModuleForceDependencies =
|
||||
newBooleanCachedFeatureParam(
|
||||
ANDROID_THEME_MODULE, "force_theme_module_dependencies", false);
|
||||
@@ -1562,18 +1562,6 @@ public abstract class ChromeFeatureList {
|
||||
newIntCachedFeatureParam(
|
||||
CLANK_STARTUP_LATENCY_INJECTION, "latency_injection_amount_millis", 0);
|
||||
|
||||
/** Batch size for number of legacy TabState files that should be deleted in a batch. */
|
||||
public static final IntCachedFeatureParam sCleanupLegacyTabStateBatchSize =
|
||||
newIntCachedFeatureParam(
|
||||
CLEANUP_LEGACY_TABSTATE, "cleanup_legacy_tab_state_batch_size", 5);
|
||||
|
||||
/** Maximum number of legacy TabState files that can be deleted per session. */
|
||||
public static final IntCachedFeatureParam sMaxLegacyTabStateFilesCleanedUpPerSession =
|
||||
newIntCachedFeatureParam(
|
||||
CLEANUP_LEGACY_TABSTATE,
|
||||
"max_legacy_tab_state_files_cleaned_up_per_session",
|
||||
100);
|
||||
|
||||
/**
|
||||
* Cached param whether we disable animations for color changes to the edge-to-edge bottom chin.
|
||||
*/
|
||||
@@ -1671,10 +1659,6 @@ public abstract class ChromeFeatureList {
|
||||
public static final IntCachedFeatureParam sOmahaMinSdkVersionMinSdkVersion =
|
||||
newIntCachedFeatureParam(OMAHA_MIN_SDK_VERSION_ANDROID, "min_sdk_version", -1);
|
||||
|
||||
/** The default cache size in Java for push notification. */
|
||||
public static final IntCachedFeatureParam sOptimizationGuidePushNotificationsMaxCacheSize =
|
||||
newIntCachedFeatureParam(OPTIMIZATION_GUIDE_PUSH_NOTIFICATIONS, "max_cache_size", 100);
|
||||
|
||||
public static final DoubleCachedFeatureParam sPCctMinimumHeightRatio =
|
||||
newDoubleCachedFeatureParam(PCCT_MINIMUM_HEIGHT, "pcct_minimum_height_ratio", 0.3);
|
||||
|
||||
@@ -1693,7 +1677,7 @@ public abstract class ChromeFeatureList {
|
||||
|
||||
public static final IntCachedFeatureParam sReadAloudReadabilityDelayMsAfterPageLoad =
|
||||
newIntCachedFeatureParam(
|
||||
READALOUD, "read_aloud_readability_delay_ms_after_page_load", 3000);
|
||||
READALOUD, "read_aloud_readability_delay_ms_after_page_load", 1500);
|
||||
|
||||
public static final BooleanCachedFeatureParam sShouldConsiderLanguageInOverviewReadability =
|
||||
newBooleanCachedFeatureParam(
|
||||
@@ -1716,25 +1700,6 @@ public abstract class ChromeFeatureList {
|
||||
newBooleanCachedFeatureParam(
|
||||
TAB_STORAGE_SQLITE_PROTOTYPE, "authoritative_read_source", false);
|
||||
|
||||
public static final StringCachedFeatureParam sTabStripLayoutOptimizationOemAllowlist =
|
||||
newStringCachedFeatureParam(
|
||||
TAB_STRIP_LAYOUT_OPTIMIZATION, "custom_headers_oem_allowlist", "");
|
||||
|
||||
public static final StringCachedFeatureParam sTabStripLayoutOptimizationOemDenylist =
|
||||
newStringCachedFeatureParam(
|
||||
TAB_STRIP_LAYOUT_OPTIMIZATION, "custom_headers_oem_denylist", "");
|
||||
|
||||
public static final BooleanCachedFeatureParam sTabStripLayoutOptimizationOnExternalDisplay =
|
||||
newBooleanCachedFeatureParam(
|
||||
TAB_STRIP_LAYOUT_OPTIMIZATION, "enable_on_external_display", true);
|
||||
|
||||
public static final StringCachedFeatureParam
|
||||
sTabStripLayoutOptimizationOnExternalDisplayOemDenylist =
|
||||
newStringCachedFeatureParam(
|
||||
TAB_STRIP_LAYOUT_OPTIMIZATION,
|
||||
"external_display_oem_denylist",
|
||||
"samsung");
|
||||
|
||||
public static final IntCachedFeatureParam
|
||||
sTabWindowManagerReportIndicesMismatchTimeDiffThresholdMs =
|
||||
newIntCachedFeatureParam(
|
||||
@@ -1755,10 +1720,19 @@ public abstract class ChromeFeatureList {
|
||||
public static final BooleanCachedFeatureParam sTouchToSearchCalloutSnippetAsSubtitle =
|
||||
newBooleanCachedFeatureParam(TOUCH_TO_SEARCH_CALLOUT, "snippet_as_subtitle", false);
|
||||
|
||||
public static final BooleanCachedFeatureParam sAndroidTipsNotificationsAlwaysShowOptInPromo =
|
||||
newBooleanCachedFeatureParam(
|
||||
ANDROID_TIPS_NOTIFICATIONS, "always_show_opt_in_promo", false);
|
||||
|
||||
public static final BooleanCachedFeatureParam sAndroidTipsNotificationsResetFeatureTipShown =
|
||||
newBooleanCachedFeatureParam(
|
||||
ANDROID_TIPS_NOTIFICATIONS, "reset_feature_tip_shown", false);
|
||||
|
||||
/** All {@link CachedFeatureParam}s of features in this FeatureList */
|
||||
public static final List<CachedFeatureParam<?>> sParamsCached =
|
||||
List.of(
|
||||
// keep-sorted start
|
||||
sAndroidAnimatedProgressBarFpsCap,
|
||||
sAndroidAppIntegrationModuleForceCardShow,
|
||||
sAndroidAppIntegrationModuleShowThirdPartyCard,
|
||||
sAndroidAppIntegrationMultiDataSourceSkipDeviceCheck,
|
||||
@@ -1772,6 +1746,8 @@ public abstract class ChromeFeatureList {
|
||||
sAndroidComposeplateV2Enabled,
|
||||
sAndroidThemeModuleForceDependencies,
|
||||
sAndroidThemeResourceProviderForceLight,
|
||||
sAndroidTipsNotificationsAlwaysShowOptInPromo,
|
||||
sAndroidTipsNotificationsResetFeatureTipShown,
|
||||
sBackgroundThreadPoolFieldTrialConfig,
|
||||
sCctAdaptiveButtonContextualOnly,
|
||||
sCctAdaptiveButtonDefaultVariant,
|
||||
@@ -1791,7 +1767,6 @@ public abstract class ChromeFeatureList {
|
||||
sCctResizableForThirdPartiesDenylistEntries,
|
||||
sClampAutomotiveScalingMaxScalingPercentage,
|
||||
sClankStartupLatencyInjectionAmountMs,
|
||||
sCleanupLegacyTabStateBatchSize,
|
||||
sDesktopUAAllowedOnExternalDisplayForOem,
|
||||
sEdgeToEdgeBottomChinOemList,
|
||||
sEdgeToEdgeBottomChinOemMinVersions,
|
||||
@@ -1805,7 +1780,6 @@ public abstract class ChromeFeatureList {
|
||||
sLowMemoryDeviceThresholdMb,
|
||||
sMagicStackAndroidShowAllModules,
|
||||
sMaliciousApkDownloadCheckTelemetryOnly,
|
||||
sMaxLegacyTabStateFilesCleanedUpPerSession,
|
||||
sMostVisitedTilesReselectLaxPath,
|
||||
sMostVisitedTilesReselectLaxQuery,
|
||||
sMostVisitedTilesReselectLaxRef,
|
||||
@@ -1818,7 +1792,6 @@ public abstract class ChromeFeatureList {
|
||||
sNotificationTrampolineNormalJobDurationMs,
|
||||
sNotificationTrampolineTimeoutPriorNativeInitMs,
|
||||
sOmahaMinSdkVersionMinSdkVersion,
|
||||
sOptimizationGuidePushNotificationsMaxCacheSize,
|
||||
sPCctMinimumHeightRatio,
|
||||
sPriceChangeModuleSkipShoppingPersistedTabDataDelayedInit,
|
||||
sReadAloudAudioOverviewsSpeedAdditionPercentage,
|
||||
@@ -1828,10 +1801,6 @@ public abstract class ChromeFeatureList {
|
||||
sStartSurfaceReturnTimeTabletSecs,
|
||||
sTabGroupListContainment,
|
||||
sTabStorageSqlitePrototypeAuthoritativeReadSource,
|
||||
sTabStripLayoutOptimizationOemAllowlist,
|
||||
sTabStripLayoutOptimizationOemDenylist,
|
||||
sTabStripLayoutOptimizationOnExternalDisplay,
|
||||
sTabStripLayoutOptimizationOnExternalDisplayOemDenylist,
|
||||
sTabWindowManagerReportIndicesMismatchTimeDiffThresholdMs,
|
||||
sTouchToSearchCalloutIph,
|
||||
sTouchToSearchCalloutSnippetAsSubtitle,
|
||||
@@ -1842,10 +1811,6 @@ public abstract class ChromeFeatureList {
|
||||
|
||||
// Mutable*ParamWithSafeDefault instances.
|
||||
/* Alphabetical: */
|
||||
public static final MutableIntParamWithSafeDefault
|
||||
sAndroidTabDeclutterAutoDeleteTimeDeltaHours =
|
||||
sAndroidTabDeclutterAutoDelete.newIntParam(
|
||||
"android_tab_declutter_auto_delete_time_delta_hours", 90 * 24);
|
||||
|
||||
public static final MutableBooleanParamWithSafeDefault sAndroidPinnedTabsSearchBoxMovement =
|
||||
sAndroidPinnedTabs.newBooleanParam("search_box_movement", false);
|
||||
@@ -1872,9 +1837,9 @@ public abstract class ChromeFeatureList {
|
||||
sOmniboxAutofocusOnIncognitoNtpWithPrediction =
|
||||
sOmniboxAutofocusOnIncognitoNtp.newBooleanParam("with_prediction", false);
|
||||
|
||||
public static final MutableBooleanParamWithSafeDefault sAndroidTabDeclutterAutoDeletePromoTest =
|
||||
sAndroidTabDeclutterAutoDelete.newBooleanParam(
|
||||
"android_tab_declutter_auto_delete_promo_test", false);
|
||||
public static final MutableBooleanParamWithSafeDefault
|
||||
sOmniboxAutofocusOnIncognitoNtpNoZeroSuggest =
|
||||
sOmniboxAutofocusOnIncognitoNtp.newBooleanParam("disable_zero_suggest", false);
|
||||
|
||||
public static final MutableBooleanParamWithSafeDefault sShowNewTabAnimationsLogs =
|
||||
sShowNewTabAnimations.newBooleanParam("logs", false);
|
||||
@@ -1883,4 +1848,7 @@ public abstract class ChromeFeatureList {
|
||||
sAndroidTabHighlighting.newBooleanParam("force_ctrl_click", false);
|
||||
public static final MutableBooleanParamWithSafeDefault sAndroidTabHighlightingForceShiftClick =
|
||||
sAndroidTabHighlighting.newBooleanParam("force_shift_click", false);
|
||||
|
||||
public static final MutableBooleanParamWithSafeDefault sRobustWindowManagementBulkClose =
|
||||
sRobustWindowManagement.newBooleanParam("bulk_close", false);
|
||||
}
|
||||
|
||||
@@ -72,6 +72,7 @@
|
||||
#include "chrome/browser/push_messaging/push_messaging_service_impl.h"
|
||||
#include "chrome/browser/push_messaging/push_messaging_unsubscribed_entry.h"
|
||||
#include "chrome/browser/rlz/chrome_rlz_tracker_delegate.h"
|
||||
#include "chrome/browser/search/background/ntp_custom_background_service.h"
|
||||
#include "chrome/browser/search/search.h"
|
||||
#include "chrome/browser/serial/serial_policy_allowed_ports.h"
|
||||
#include "chrome/browser/sharing_hub/sharing_hub_features.h"
|
||||
@@ -110,6 +111,7 @@
|
||||
#include "components/commerce/core/prefs.h"
|
||||
#include "components/content_settings/core/browser/host_content_settings_map.h"
|
||||
#include "components/content_settings/core/common/pref_names.h"
|
||||
#include "components/contextual_search/contextual_search_service.h"
|
||||
#include "components/custom_handlers/protocol_handler_registry.h"
|
||||
#include "components/dom_distiller/core/distilled_page_prefs.h"
|
||||
#include "components/domain_reliability/domain_reliability_prefs.h"
|
||||
@@ -119,8 +121,6 @@
|
||||
#include "components/enterprise/buildflags/buildflags.h"
|
||||
#include "components/enterprise/connectors/core/connectors_prefs.h"
|
||||
#include "components/feature_engagement/public/pref_names.h"
|
||||
#include "components/fingerprinting_protection_filter/common/fingerprinting_protection_filter_constants.h"
|
||||
#include "components/fingerprinting_protection_filter/common/prefs.h"
|
||||
#include "components/history_clusters/core/history_clusters_prefs.h"
|
||||
#include "components/image_fetcher/core/cache/image_cache.h"
|
||||
#include "components/invalidation/impl/per_user_topic_subscription_manager.h"
|
||||
@@ -153,7 +153,7 @@
|
||||
#include "components/permissions/pref_names.h"
|
||||
#include "components/plus_addresses/core/common/plus_address_prefs.h"
|
||||
#include "components/policy/core/browser/browser_policy_connector.h"
|
||||
#include "components/policy/core/browser/url_blocklist_manager.h"
|
||||
#include "components/policy/core/browser/url_list/url_blocklist_manager.h"
|
||||
#include "components/policy/core/common/local_test_policy_provider.h"
|
||||
#include "components/policy/core/common/management/management_service.h"
|
||||
#include "components/policy/core/common/policy_pref_names.h"
|
||||
@@ -201,6 +201,7 @@
|
||||
#include "components/update_client/update_client.h"
|
||||
#include "components/variations/service/variations_service.h"
|
||||
#include "components/visited_url_ranking/internal/url_grouping/group_suggestions_service_impl.h"
|
||||
#include "components/wallet/core/common/wallet_prefs.h"
|
||||
#include "components/webui/chrome_urls/pref_names.h"
|
||||
#include "components/webui/flags/pref_service_flags_storage.h"
|
||||
#include "content/public/browser/render_process_host.h"
|
||||
@@ -298,7 +299,6 @@
|
||||
#include "chrome/browser/new_tab_page/promos/promo_service.h"
|
||||
#include "chrome/browser/promos/promos_utils.h" // nogncheck crbug.com/1125897
|
||||
#include "chrome/browser/screen_ai/pref_names.h"
|
||||
#include "chrome/browser/search/background/ntp_custom_background_service.h"
|
||||
#include "chrome/browser/search_engine_choice/search_engine_choice_dialog_service.h"
|
||||
#include "chrome/browser/signin/signin_promo.h"
|
||||
#include "chrome/browser/task_manager/task_manager_interface.h"
|
||||
@@ -455,6 +455,7 @@
|
||||
#include "chromeos/ash/components/network/managed_cellular_pref_handler.h"
|
||||
#include "chromeos/ash/components/network/network_metadata_store.h"
|
||||
#include "chromeos/ash/components/network/proxy/proxy_config_handler.h"
|
||||
#include "chromeos/ash/components/policy/local_auth_factors/local_auth_factors_prefs.h"
|
||||
#include "chromeos/ash/components/policy/restriction_schedule/device_restriction_schedule_controller.h"
|
||||
#include "chromeos/ash/components/policy/system_features_disable_list/system_features_disable_list_policy_utils.h"
|
||||
#include "chromeos/ash/components/quickoffice/quickoffice_prefs.h"
|
||||
@@ -492,6 +493,7 @@
|
||||
#include "chrome/browser/media/cdm_pref_service_helper.h"
|
||||
#include "chrome/browser/media/media_foundation_service_monitor.h"
|
||||
#include "chrome/browser/os_crypt/app_bound_encryption_provider_win.h"
|
||||
#include "chrome/browser/webnn/webnn_prefs.h"
|
||||
#endif // BUILDFLAG(IS_WIN)
|
||||
|
||||
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC)
|
||||
@@ -557,166 +559,6 @@ namespace {
|
||||
// Please keep the list of deprecated prefs in chronological order. i.e. Add to
|
||||
// the bottom of the list, not here at the top.
|
||||
|
||||
// Deprecated 10/2024.
|
||||
constexpr char kLiveCaptionBubblePinned[] =
|
||||
"accessibility.captions.live_caption_bubble_pinned";
|
||||
|
||||
// Deprecated 10/2024.
|
||||
#if BUILDFLAG(IS_CHROMEOS)
|
||||
const char kMigrationStep[] = "ash.browser_data_migrator.migration_step";
|
||||
const char kMoveMigrationResumeStepPref[] =
|
||||
"ash.browser_data_migrator.move_migration_resume_step";
|
||||
const char kMoveMigrationResumeCountPref[] =
|
||||
"ash.browser_data_migrator.move_migration_resume_count";
|
||||
const char kLacrosSecondaryProfilesAllowed[] =
|
||||
"lacros_secondary_profiles_allowed";
|
||||
constexpr char kDataVerPref[] = "lacros.data_version";
|
||||
constexpr char kMigrationAttemptCountPref[] =
|
||||
"ash.browser_data_migrator.migration_attempt_count";
|
||||
constexpr char kProfileMigrationCompletedForUserPref[] =
|
||||
"lacros.profile_migration_completed_for_user";
|
||||
constexpr char kProfileMoveMigrationCompletedForUserPref[] =
|
||||
"lacros.profile_move_migration_completed_for_user";
|
||||
constexpr char kProfileMigrationCompletedForNewUserPref[] =
|
||||
"lacros.profile_migration_completed_for_new_user";
|
||||
const char kProfileDataBackwardMigrationCompletedForUserPref[] =
|
||||
"lacros.profile_data_backward_migration_completed_for_user";
|
||||
const char kGotoFilesPref[] = "lacros.goto_files";
|
||||
const char kProfileMigrationCompletionTimeForUserPref[] =
|
||||
"lacros.profile_migration_completion_time_for_user";
|
||||
const char kLacrosDataBackwardMigrationMode[] =
|
||||
"lacros_data_backward_migration_mode";
|
||||
#endif
|
||||
|
||||
#if !BUILDFLAG(IS_ANDROID)
|
||||
// Deprecated 10/2024
|
||||
// Pref name for the percent threshold to show HaTS on the What's New page.
|
||||
inline constexpr char kWhatsNewHatsActivationThreshold[] =
|
||||
"browser.whats_new_hats_activation_threshold";
|
||||
#endif
|
||||
|
||||
// Deprecated 10/2024.
|
||||
const char kModelExecutionMainToggleSettingState[] =
|
||||
"optimization_guide.model_execution_main_toggle_setting_state";
|
||||
|
||||
#if BUILDFLAG(IS_CHROMEOS)
|
||||
// Deprecated 10/2024
|
||||
// An integer pref which determines how much FaceGaze should smooth cursor
|
||||
// movements.
|
||||
inline constexpr char kAccessibilityFaceGazeCursorSmoothing[] =
|
||||
"settings.a11y.face_gaze.cursor_smoothing";
|
||||
#endif // BUILDFLAG(IS_CHROMEOS)
|
||||
|
||||
// Deprecated 10/2024.
|
||||
const char kBeforeunloadEventCancelByPreventDefaultEnabled[] =
|
||||
"policy.beforeunload_event_cancel_by_prevent_default_enabled";
|
||||
|
||||
// Deprecated 10/2024.
|
||||
inline constexpr char kDocumentSuggestEnabled[] = "documentsuggest.enabled";
|
||||
|
||||
#if BUILDFLAG(IS_CHROMEOS)
|
||||
// Deprecated 10/2024
|
||||
inline constexpr char kWallpaperSeaPenMigrationStatus[] =
|
||||
"ash.wallpaper.sea_pen.migration_status";
|
||||
#endif
|
||||
|
||||
// Deprecated 10/2024
|
||||
inline constexpr char kFirstTimeInterstitialBannerState[] =
|
||||
"profile.managed.banner_state";
|
||||
|
||||
// Deprecated 10/2024
|
||||
inline constexpr char kSidePanelCompanionEntryPinnedToToolbar[] =
|
||||
"side_panel.companion_pinned_to_toolbar";
|
||||
inline constexpr char kMsbbPromoDeclinedCountPref[] =
|
||||
"Companion.Promo.MSBB.Declined.Count";
|
||||
inline constexpr char kSigninPromoDeclinedCountPref[] =
|
||||
"Companion.Promo.Signin.Declined.Count";
|
||||
inline constexpr char kExpsPromoDeclinedCountPref[] =
|
||||
"Companion.Promo.Exps.Declined.Count";
|
||||
inline constexpr char kExpsPromoShownCountPref[] =
|
||||
"Companion.Promo.Exps.Shown.Count";
|
||||
inline constexpr char kPcoPromoShownCountPref[] =
|
||||
"Companion.Promo.PCO.Shown.Count";
|
||||
inline constexpr char kPcoPromoDeclinedCountPref[] =
|
||||
"Companion.Promo.PCO.Declined.Count";
|
||||
inline constexpr char kExpsOptInStatusGrantedPref[] =
|
||||
"Companion.Exps.OptIn.Status.Granted";
|
||||
inline constexpr char kHasNavigatedToExpsSuccessPage[] =
|
||||
"Companion.HasNavigatedToExpsSuccessPage";
|
||||
|
||||
// Deprecated 11/2024.
|
||||
#if BUILDFLAG(IS_CHROMEOS)
|
||||
constexpr char kNoteTakingAppEnabledOnLockScreen[] =
|
||||
"settings.note_taking_app_enabled_on_lock_screen";
|
||||
constexpr char kNoteTakingAppsLockScreenAllowlist[] =
|
||||
"settings.note_taking_apps_lock_screen_whitelist";
|
||||
constexpr char kNoteTakingAppsLockScreenToastShown[] =
|
||||
"settings.note_taking_apps_lock_screen_toast_shown";
|
||||
constexpr char kRestoreLastLockScreenNote[] =
|
||||
"settings.restore_last_lock_screen_note";
|
||||
constexpr char kLockScreenDataPrefKey[] = "lockScreenDataItems";
|
||||
inline constexpr char kSyncableVersionedWallpaperInfo[] =
|
||||
"syncable_versioned_wallpaper_info";
|
||||
constexpr char kLacrosProxyControllingExtension[] =
|
||||
"ash.lacros_proxy_controlling_extension";
|
||||
#endif
|
||||
|
||||
// Deprecated 11/2024
|
||||
constexpr char kPrefixedVideoFullscreenApiAvailability[] =
|
||||
"media.prefixed_fullscreen_video_api_availability";
|
||||
|
||||
// Deprecated 11/2024
|
||||
constexpr char kOnDeviceModelTimeoutCount[] =
|
||||
"optimization_guide.on_device.timeout_count";
|
||||
|
||||
#if !BUILDFLAG(IS_ANDROID)
|
||||
// Deprecated 11/2024
|
||||
inline constexpr char kCartModuleHidden[] = "cart_module_hidden";
|
||||
inline constexpr char kCartModuleWelcomeSurfaceShownTimes[] =
|
||||
"cart_module_welcome_surface_shown_times";
|
||||
inline constexpr char kCartDiscountAcknowledged[] =
|
||||
"cart_discount_acknowledged";
|
||||
inline constexpr char kCartDiscountEnabled[] = "cart_discount_enabled";
|
||||
inline constexpr char kCartUsedDiscounts[] = "cart_used_discounts";
|
||||
inline constexpr char kCartDiscountLastFetchedTime[] =
|
||||
"cart_discount_last_fetched_time";
|
||||
inline constexpr char kCartDiscountConsentShown[] =
|
||||
"cart_discount_consent_shown";
|
||||
inline constexpr char kDiscountConsentDecisionMadeIn[] =
|
||||
"discount_consent_decision_made_in";
|
||||
inline constexpr char kDiscountConsentDismissedIn[] =
|
||||
"discount_consent_dismissed_in";
|
||||
inline constexpr char kDiscountConsentLastDimissedTime[] =
|
||||
"discount_consent_last_dimissed_time";
|
||||
inline constexpr char kDiscountConsentLastShownInVariation[] =
|
||||
"discount_consent_last_shown_in";
|
||||
inline constexpr char kDiscountConsentPastDismissedCount[] =
|
||||
"discount_consent_dismissed_count";
|
||||
inline constexpr char kDiscountConsentShowInterest[] =
|
||||
"discount_consent_show_interest";
|
||||
inline constexpr char kDiscountConsentShowInterestIn[] =
|
||||
"discount_consent_show_interest_in";
|
||||
#endif // !BUILDFLAG(IS_ANDROID)
|
||||
|
||||
// Deprecated 11/2024
|
||||
constexpr char kQuietNotificationPermissionPromoWasShown[] =
|
||||
"profile.content_settings.quiet_permission_ui_promo.was_shown."
|
||||
"notifications";
|
||||
constexpr char kQuietNotificationPermissionShouldShowPromo[] =
|
||||
"profile.content_settings.quiet_permission_ui_promo.should_show."
|
||||
"notifications";
|
||||
inline constexpr char kQuietNotificationPermissionUiEnablingMethod[] =
|
||||
"profile.content_settings.enable_quiet_permission_ui_enabling_method."
|
||||
"notifications";
|
||||
|
||||
#if BUILDFLAG(IS_CHROMEOS)
|
||||
// Deprecated 11/2024
|
||||
inline constexpr char kHatsPrivacyHubPostLaunchIsSelected[] =
|
||||
"hats_privacy_hub_postlaunch_is_selected";
|
||||
inline constexpr char kHatsPrivacyHubPostLaunchCycleEndTs[] =
|
||||
"hats_privacy_hub_postlaunch_end_timestamp";
|
||||
#endif
|
||||
|
||||
// Deprecated 12/2024.
|
||||
inline constexpr char kDeleteTimePeriodV2[] =
|
||||
"browser.clear_data.time_period_v2";
|
||||
@@ -1074,43 +916,22 @@ constexpr char kSessionRestorePrefChanged[] = "session.restore_pref_changed";
|
||||
|
||||
constexpr char kLegacySyncSessionsGUID[] = "sync.session_sync_guid";
|
||||
|
||||
const char kRefreshHeuristicBreakageException[] =
|
||||
"fingerprinting_protection_filter.refresh_heuristic_breakage_exception_"
|
||||
"sites";
|
||||
|
||||
const char kFpfRulesetContent[] =
|
||||
"fingerprinting_protection_filter.ruleset_version.content";
|
||||
|
||||
const char kFpfRulesetFormat[] =
|
||||
"fingerprinting_protection_filter.ruleset_version.format";
|
||||
|
||||
const char kFpfRulesetChecksum[] =
|
||||
"fingerprinting_protection_filter.ruleset_version.checksum";
|
||||
|
||||
// Register local state used only for migration (clearing or moving to a new
|
||||
// key).
|
||||
void RegisterLocalStatePrefsForMigration(PrefRegistrySimple* registry) {
|
||||
#if BUILDFLAG(IS_CHROMEOS)
|
||||
// Deprecated 10/2024.
|
||||
registry->RegisterIntegerPref(kMigrationStep, 0);
|
||||
registry->RegisterDictionaryPref(kMoveMigrationResumeStepPref);
|
||||
registry->RegisterDictionaryPref(kMoveMigrationResumeCountPref);
|
||||
registry->RegisterDictionaryPref(kDataVerPref);
|
||||
registry->RegisterDictionaryPref(kMigrationAttemptCountPref);
|
||||
registry->RegisterDictionaryPref(kProfileMigrationCompletedForUserPref);
|
||||
registry->RegisterDictionaryPref(kProfileMoveMigrationCompletedForUserPref);
|
||||
registry->RegisterDictionaryPref(kProfileMigrationCompletedForNewUserPref);
|
||||
registry->RegisterDictionaryPref(
|
||||
kProfileDataBackwardMigrationCompletedForUserPref);
|
||||
registry->RegisterListPref(kGotoFilesPref);
|
||||
registry->RegisterDictionaryPref(kProfileMigrationCompletionTimeForUserPref);
|
||||
registry->RegisterStringPref(kLacrosDataBackwardMigrationMode, "");
|
||||
#endif
|
||||
|
||||
#if !BUILDFLAG(IS_ANDROID)
|
||||
// Deprecated 10/2024
|
||||
registry->RegisterIntegerPref(kWhatsNewHatsActivationThreshold, 100);
|
||||
#endif
|
||||
|
||||
// Deprecated 10/2024.
|
||||
registry->RegisterBooleanPref(kBeforeunloadEventCancelByPreventDefaultEnabled,
|
||||
true);
|
||||
|
||||
#if BUILDFLAG(IS_CHROMEOS)
|
||||
// Deprecated 11/2024.
|
||||
registry->RegisterDictionaryPref(kLockScreenDataPrefKey);
|
||||
#endif
|
||||
|
||||
// Deprecated 11/2024.
|
||||
registry->RegisterIntegerPref(kOnDeviceModelTimeoutCount, 0);
|
||||
|
||||
#if BUILDFLAG(IS_CHROMEOS)
|
||||
// Deprecated 12/2024.
|
||||
registry->RegisterIntegerPref(kLacrosLaunchSwitch, 0);
|
||||
@@ -1191,6 +1012,11 @@ void RegisterLocalStatePrefsForMigration(PrefRegistrySimple* registry) {
|
||||
// Deprecated 09/2025.
|
||||
registry->RegisterBooleanPref(kRendererCodeIntegrityEnabledNeedsDeletion,
|
||||
false);
|
||||
|
||||
// Deprecated 11/2025.
|
||||
registry->RegisterStringPref(kFpfRulesetContent, std::string());
|
||||
registry->RegisterIntegerPref(kFpfRulesetFormat, 0);
|
||||
registry->RegisterUint64Pref(kFpfRulesetChecksum, 0);
|
||||
}
|
||||
|
||||
// Register prefs used only for migration (clearing or moving to a new key).
|
||||
@@ -1198,86 +1024,6 @@ void RegisterProfilePrefsForMigration(
|
||||
user_prefs::PrefRegistrySyncable* registry) {
|
||||
chrome_browser_net::secure_dns::RegisterProbesSettingBackupPref(registry);
|
||||
|
||||
// Deprecated 10/2024.
|
||||
registry->RegisterIntegerPref(kModelExecutionMainToggleSettingState, 0);
|
||||
|
||||
// Deprecated 10/2024
|
||||
#if BUILDFLAG(IS_CHROMEOS)
|
||||
registry->RegisterBooleanPref(kLacrosSecondaryProfilesAllowed, true);
|
||||
registry->RegisterIntegerPref(kAccessibilityFaceGazeCursorSmoothing, 7);
|
||||
registry->RegisterIntegerPref(kWallpaperSeaPenMigrationStatus, 0);
|
||||
#endif
|
||||
|
||||
// Deprecated 10/2024
|
||||
registry->RegisterBooleanPref(kLiveCaptionBubblePinned, false);
|
||||
|
||||
// Deprecated 10/2024
|
||||
registry->RegisterBooleanPref(kDocumentSuggestEnabled, true);
|
||||
|
||||
// Deprecated 10/2024
|
||||
registry->RegisterIntegerPref(kFirstTimeInterstitialBannerState, 0);
|
||||
|
||||
// Deprecated 10/2024
|
||||
registry->RegisterBooleanPref(kSidePanelCompanionEntryPinnedToToolbar, false);
|
||||
registry->RegisterIntegerPref(kMsbbPromoDeclinedCountPref, 0);
|
||||
registry->RegisterIntegerPref(kSigninPromoDeclinedCountPref, 0);
|
||||
registry->RegisterIntegerPref(kExpsPromoDeclinedCountPref, 0);
|
||||
registry->RegisterIntegerPref(kExpsPromoShownCountPref, 0);
|
||||
registry->RegisterIntegerPref(kPcoPromoShownCountPref, 0);
|
||||
registry->RegisterIntegerPref(kPcoPromoDeclinedCountPref, 0);
|
||||
registry->RegisterBooleanPref(kExpsOptInStatusGrantedPref, false);
|
||||
registry->RegisterBooleanPref(kHasNavigatedToExpsSuccessPage, false);
|
||||
|
||||
#if BUILDFLAG(IS_CHROMEOS)
|
||||
// Deprecated 11/2024
|
||||
registry->RegisterBooleanPref(kNoteTakingAppEnabledOnLockScreen, false);
|
||||
registry->RegisterListPref(kNoteTakingAppsLockScreenAllowlist,
|
||||
base::Value::List());
|
||||
registry->RegisterDictionaryPref(kNoteTakingAppsLockScreenToastShown);
|
||||
registry->RegisterBooleanPref(kRestoreLastLockScreenNote, false);
|
||||
registry->RegisterDictionaryPref(kSyncableVersionedWallpaperInfo);
|
||||
registry->RegisterDictionaryPref(kLacrosProxyControllingExtension);
|
||||
#endif
|
||||
|
||||
// Deprecated 11/2024
|
||||
registry->RegisterStringPref(kPrefixedVideoFullscreenApiAvailability, "");
|
||||
|
||||
#if !BUILDFLAG(IS_ANDROID)
|
||||
// Deprecated 11/2024
|
||||
registry->RegisterBooleanPref(kCartModuleHidden, false);
|
||||
registry->RegisterIntegerPref(kCartModuleWelcomeSurfaceShownTimes, 0);
|
||||
registry->RegisterBooleanPref(kCartDiscountAcknowledged, false);
|
||||
registry->RegisterBooleanPref(kCartDiscountEnabled, false);
|
||||
registry->RegisterDictionaryPref(kCartUsedDiscounts);
|
||||
registry->RegisterTimePref(kCartDiscountLastFetchedTime, base::Time());
|
||||
registry->RegisterBooleanPref(kCartDiscountConsentShown, false);
|
||||
registry->RegisterTimePref(kDiscountConsentLastDimissedTime, base::Time());
|
||||
registry->RegisterIntegerPref(kDiscountConsentPastDismissedCount, 0);
|
||||
registry->RegisterIntegerPref(kDiscountConsentDecisionMadeIn, 0);
|
||||
registry->RegisterIntegerPref(kDiscountConsentDismissedIn, 0);
|
||||
registry->RegisterIntegerPref(kDiscountConsentLastShownInVariation, 0);
|
||||
registry->RegisterBooleanPref(kDiscountConsentShowInterest, false);
|
||||
registry->RegisterIntegerPref(kDiscountConsentShowInterestIn, 0);
|
||||
#endif // !BUILDFLAG(IS_ANDROID)
|
||||
|
||||
// Deprecated 11/2024
|
||||
optimization_guide::model_execution::prefs::
|
||||
RegisterLegacyUsagePrefsForMigration(registry);
|
||||
|
||||
// Deprecated 11/2024
|
||||
registry->RegisterBooleanPref(kQuietNotificationPermissionPromoWasShown,
|
||||
true);
|
||||
registry->RegisterBooleanPref(kQuietNotificationPermissionShouldShowPromo,
|
||||
true);
|
||||
registry->RegisterIntegerPref(kQuietNotificationPermissionUiEnablingMethod,
|
||||
0);
|
||||
|
||||
#if BUILDFLAG(IS_CHROMEOS)
|
||||
// Deprecated 11/2024
|
||||
registry->RegisterBooleanPref(kHatsPrivacyHubPostLaunchIsSelected, false);
|
||||
registry->RegisterInt64Pref(kHatsPrivacyHubPostLaunchCycleEndTs, 0);
|
||||
#endif
|
||||
|
||||
// Deprecated 12/2024.
|
||||
registry->RegisterIntegerPref(kDeleteTimePeriodV2, -1);
|
||||
registry->RegisterIntegerPref(kDeleteTimePeriodV2Basic, -1);
|
||||
@@ -1528,6 +1274,9 @@ void RegisterProfilePrefsForMigration(
|
||||
|
||||
// Deprecated 10/2025.
|
||||
registry->RegisterStringPref(kLegacySyncSessionsGUID, std::string());
|
||||
|
||||
// Deprecated 11/2025.
|
||||
registry->RegisterDictionaryPref(kRefreshHeuristicBreakageException);
|
||||
}
|
||||
|
||||
} // namespace
|
||||
@@ -1609,10 +1358,6 @@ void RegisterLocalState(PrefRegistrySimple* registry) {
|
||||
SSLConfigServiceManager::RegisterPrefs(registry);
|
||||
subresource_filter::IndexedRulesetVersion::RegisterPrefs(
|
||||
registry, subresource_filter::kSafeBrowsingRulesetConfig.filter_tag);
|
||||
subresource_filter::IndexedRulesetVersion::RegisterPrefs(
|
||||
registry,
|
||||
fingerprinting_protection_filter::kFingerprintingProtectionRulesetConfig
|
||||
.filter_tag);
|
||||
SystemNetworkContextManager::RegisterPrefs(registry);
|
||||
tpcd::experiment::RegisterLocalStatePrefs(registry);
|
||||
tpcd::metadata::RegisterLocalStatePrefs(registry);
|
||||
@@ -1776,6 +1521,7 @@ void RegisterLocalState(PrefRegistrySimple* registry) {
|
||||
registry->RegisterBooleanPref(prefs::kRestrictCoreSharingOnRenderer, false);
|
||||
MediaFoundationServiceMonitor::RegisterPrefs(registry);
|
||||
os_crypt_async::AppBoundEncryptionProviderWin::RegisterLocalPrefs(registry);
|
||||
webnn::RegisterLocalPrefs(registry);
|
||||
#endif // BUILDFLAG(IS_WIN)
|
||||
|
||||
#if BUILDFLAG(ENABLE_DOWNGRADE_PROCESSING)
|
||||
@@ -1866,6 +1612,8 @@ void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry,
|
||||
chrome_prefs::RegisterProfilePrefs(registry);
|
||||
collaboration::prefs::RegisterProfilePrefs(registry);
|
||||
commerce::RegisterProfilePrefs(registry);
|
||||
contextual_search::ContextualSearchService::RegisterProfilePrefs(registry);
|
||||
registry->RegisterIntegerPref(prefs::kContextualTasksNextPanelOpenCount, 0);
|
||||
cross_device::RegisterProfilePrefs(registry);
|
||||
enterprise::RegisterIdentifiersProfilePrefs(registry);
|
||||
enterprise_connectors::RegisterProfilePrefs(registry);
|
||||
@@ -1873,7 +1621,6 @@ void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry,
|
||||
enterprise_reporting::RegisterProfilePrefs(registry);
|
||||
dom_distiller::DistilledPagePrefs::RegisterProfilePrefs(registry);
|
||||
DownloadPrefs::RegisterProfilePrefs(registry);
|
||||
fingerprinting_protection_filter::prefs::RegisterProfilePrefs(registry);
|
||||
#if BUILDFLAG(ENABLE_GLIC)
|
||||
glic::prefs::RegisterProfilePrefs(registry);
|
||||
#endif
|
||||
@@ -1961,8 +1708,10 @@ void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry,
|
||||
translate::TranslatePrefs::RegisterProfilePrefs(registry);
|
||||
visited_url_ranking::GroupSuggestionsServiceImpl::RegisterProfilePrefs(
|
||||
registry);
|
||||
wallet::prefs::RegisterProfilePrefs(registry);
|
||||
omnibox::RegisterProfilePrefs(registry);
|
||||
ZeroSuggestProvider::RegisterProfilePrefs(registry);
|
||||
NtpCustomBackgroundService::RegisterProfilePrefs(registry);
|
||||
|
||||
#if BUILDFLAG(ENABLE_SESSION_SERVICE)
|
||||
RegisterSessionServiceLogProfilePrefs(registry);
|
||||
@@ -1994,6 +1743,9 @@ void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry,
|
||||
registry->RegisterListPref(prefs::kPdfLocalFileAccessAllowedForDomains,
|
||||
base::Value::List());
|
||||
registry->RegisterBooleanPref(prefs::kPdfUseSkiaRendererEnabled, true);
|
||||
#if BUILDFLAG(IS_CHROMEOS)
|
||||
registry->RegisterBooleanPref(prefs::kPdfXfaFormsEnabled, false);
|
||||
#endif // BUILDFLAG(IS_CHROMEOS)
|
||||
#endif // BUILDFLAG(ENABLE_PDF)
|
||||
|
||||
#if BUILDFLAG(ENABLE_PRINT_PREVIEW)
|
||||
@@ -2037,7 +1789,6 @@ void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry,
|
||||
GoogleCalendarPageHandler::RegisterProfilePrefs(registry);
|
||||
HatsServiceDesktop::RegisterProfilePrefs(registry);
|
||||
lens::prefs::RegisterProfilePrefs(registry);
|
||||
NtpCustomBackgroundService::RegisterProfilePrefs(registry);
|
||||
ManagementUI::RegisterProfilePrefs(registry);
|
||||
media_router::RegisterAccessCodeProfilePrefs(registry);
|
||||
media_router::RegisterProfilePrefs(registry);
|
||||
@@ -2165,6 +1916,7 @@ void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry,
|
||||
plugin_vm::prefs::RegisterProfilePrefs(registry);
|
||||
policy::ArcAppInstallEventLogger::RegisterProfilePrefs(registry);
|
||||
policy::AppInstallEventLogManagerWrapper::RegisterProfilePrefs(registry);
|
||||
policy::local_auth_factors::RegisterProfilePrefs(registry);
|
||||
policy::StatusCollector::RegisterProfilePrefs(registry);
|
||||
ash::SystemProxyManager::RegisterProfilePrefs(registry);
|
||||
ChromeShelfPrefs::RegisterProfilePrefs(registry);
|
||||
@@ -2307,6 +2059,17 @@ void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry,
|
||||
true);
|
||||
|
||||
registry->RegisterBooleanPref(ntp_tiles::prefs::kTipsHomeModuleEnabled, true);
|
||||
|
||||
#if BUILDFLAG(IS_ANDROID)
|
||||
registry->RegisterBooleanPref(prefs::kAndroidTipNotificationShownESB, false);
|
||||
registry->RegisterBooleanPref(prefs::kAndroidTipNotificationShownQuickDelete,
|
||||
false);
|
||||
registry->RegisterBooleanPref(prefs::kAndroidTipNotificationShownLens, false);
|
||||
registry->RegisterBooleanPref(
|
||||
prefs::kAndroidTipNotificationShownBottomOmnibox, false);
|
||||
#endif // BUILDFLAG(IS_ANDROID)
|
||||
|
||||
registry->RegisterBooleanPref(prefs::kStaticStorageQuotaEnabled, false);
|
||||
}
|
||||
|
||||
void RegisterUserProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
|
||||
@@ -2357,42 +2120,6 @@ void MigrateObsoleteLocalStatePrefs(PrefService* local_state) {
|
||||
// BEGIN_MIGRATE_OBSOLETE_LOCAL_STATE_PREFS
|
||||
// Please don't delete the preceding line. It is used by PRESUBMIT.py.
|
||||
|
||||
#if BUILDFLAG(IS_CHROMEOS)
|
||||
// Added 10/2024.
|
||||
local_state->ClearPref(kMigrationStep);
|
||||
local_state->ClearPref(kMoveMigrationResumeStepPref);
|
||||
local_state->ClearPref(kMoveMigrationResumeCountPref);
|
||||
local_state->ClearPref(kDataVerPref);
|
||||
local_state->ClearPref(kMigrationAttemptCountPref);
|
||||
local_state->ClearPref(kProfileMigrationCompletedForUserPref);
|
||||
local_state->ClearPref(kProfileMoveMigrationCompletedForUserPref);
|
||||
local_state->ClearPref(kProfileMigrationCompletedForNewUserPref);
|
||||
local_state->ClearPref(kProfileDataBackwardMigrationCompletedForUserPref);
|
||||
local_state->ClearPref(kGotoFilesPref);
|
||||
local_state->ClearPref(kProfileMigrationCompletionTimeForUserPref);
|
||||
local_state->ClearPref(kLacrosDataBackwardMigrationMode);
|
||||
#endif
|
||||
|
||||
#if !BUILDFLAG(IS_ANDROID)
|
||||
// Added 10/2024
|
||||
local_state->ClearPref(kWhatsNewHatsActivationThreshold);
|
||||
#endif
|
||||
|
||||
// Added 10/2024.
|
||||
local_state->ClearPref(kBeforeunloadEventCancelByPreventDefaultEnabled);
|
||||
|
||||
// Added 11/2024
|
||||
#if BUILDFLAG(IS_CHROMEOS)
|
||||
local_state->ClearPref(kLockScreenDataPrefKey);
|
||||
#endif
|
||||
|
||||
// Added 11/2024
|
||||
local_state->ClearPref(kOnDeviceModelTimeoutCount);
|
||||
|
||||
// Added 11/2024
|
||||
optimization_guide::model_execution::prefs::MigrateLegacyUsagePrefs(
|
||||
local_state);
|
||||
|
||||
// Added 12/2024
|
||||
#if BUILDFLAG(IS_CHROMEOS)
|
||||
local_state->ClearPref(kLacrosLaunchSwitch);
|
||||
@@ -2476,6 +2203,11 @@ void MigrateObsoleteLocalStatePrefs(PrefService* local_state) {
|
||||
local_state->ClearPref(prefs::kDefaultBrowserFirstShownTime);
|
||||
#endif
|
||||
|
||||
// Added 11/2025
|
||||
local_state->ClearPref(kFpfRulesetContent);
|
||||
local_state->ClearPref(kFpfRulesetFormat);
|
||||
local_state->ClearPref(kFpfRulesetChecksum);
|
||||
|
||||
// Please don't delete the following line. It is used by PRESUBMIT.py.
|
||||
// END_MIGRATE_OBSOLETE_LOCAL_STATE_PREFS
|
||||
|
||||
@@ -2537,78 +2269,6 @@ void MigrateObsoleteProfilePrefs(PrefService* profile_prefs,
|
||||
MigrateDefaultBrowserLastDeclinedPref(profile_prefs);
|
||||
#endif
|
||||
|
||||
// Added 10/2024.
|
||||
profile_prefs->ClearPref(kModelExecutionMainToggleSettingState);
|
||||
|
||||
// Added 10/2024
|
||||
#if BUILDFLAG(IS_CHROMEOS)
|
||||
profile_prefs->ClearPref(kLacrosSecondaryProfilesAllowed);
|
||||
profile_prefs->ClearPref(kAccessibilityFaceGazeCursorSmoothing);
|
||||
profile_prefs->ClearPref(kWallpaperSeaPenMigrationStatus);
|
||||
#endif // BUILDFLAG(IS_CHROMEOS)
|
||||
|
||||
// Added 10/2024
|
||||
profile_prefs->ClearPref(kLiveCaptionBubblePinned);
|
||||
|
||||
// Added 10/2024
|
||||
profile_prefs->ClearPref(kDocumentSuggestEnabled);
|
||||
|
||||
// Added 10/2024
|
||||
profile_prefs->ClearPref(kFirstTimeInterstitialBannerState);
|
||||
|
||||
// Added 10/2024
|
||||
profile_prefs->ClearPref(kSidePanelCompanionEntryPinnedToToolbar);
|
||||
profile_prefs->ClearPref(kMsbbPromoDeclinedCountPref);
|
||||
profile_prefs->ClearPref(kSigninPromoDeclinedCountPref);
|
||||
profile_prefs->ClearPref(kExpsPromoDeclinedCountPref);
|
||||
profile_prefs->ClearPref(kExpsPromoShownCountPref);
|
||||
profile_prefs->ClearPref(kPcoPromoShownCountPref);
|
||||
profile_prefs->ClearPref(kPcoPromoDeclinedCountPref);
|
||||
profile_prefs->ClearPref(kExpsOptInStatusGrantedPref);
|
||||
profile_prefs->ClearPref(kHasNavigatedToExpsSuccessPage);
|
||||
|
||||
#if BUILDFLAG(IS_CHROMEOS)
|
||||
// Deprecated 11/2024
|
||||
profile_prefs->ClearPref(kNoteTakingAppEnabledOnLockScreen);
|
||||
profile_prefs->ClearPref(kNoteTakingAppsLockScreenAllowlist);
|
||||
profile_prefs->ClearPref(kNoteTakingAppsLockScreenToastShown);
|
||||
profile_prefs->ClearPref(kRestoreLastLockScreenNote);
|
||||
profile_prefs->ClearPref(kSyncableVersionedWallpaperInfo);
|
||||
profile_prefs->ClearPref(kLacrosProxyControllingExtension);
|
||||
#endif
|
||||
|
||||
// Added 11/2024
|
||||
profile_prefs->ClearPref(kPrefixedVideoFullscreenApiAvailability);
|
||||
|
||||
// Added 11/2024
|
||||
#if !BUILDFLAG(IS_ANDROID)
|
||||
profile_prefs->ClearPref(kCartModuleHidden);
|
||||
profile_prefs->ClearPref(kCartModuleWelcomeSurfaceShownTimes);
|
||||
profile_prefs->ClearPref(kCartDiscountAcknowledged);
|
||||
profile_prefs->ClearPref(kCartDiscountEnabled);
|
||||
profile_prefs->ClearPref(kCartUsedDiscounts);
|
||||
profile_prefs->ClearPref(kCartDiscountLastFetchedTime);
|
||||
profile_prefs->ClearPref(kCartDiscountConsentShown);
|
||||
profile_prefs->ClearPref(kDiscountConsentDecisionMadeIn);
|
||||
profile_prefs->ClearPref(kDiscountConsentDismissedIn);
|
||||
profile_prefs->ClearPref(kDiscountConsentLastDimissedTime);
|
||||
profile_prefs->ClearPref(kDiscountConsentLastShownInVariation);
|
||||
profile_prefs->ClearPref(kDiscountConsentPastDismissedCount);
|
||||
profile_prefs->ClearPref(kDiscountConsentShowInterest);
|
||||
profile_prefs->ClearPref(kDiscountConsentShowInterestIn);
|
||||
#endif // !BUILDFLAG(IS_ANDROID)
|
||||
|
||||
// Added 11/2024
|
||||
profile_prefs->ClearPref(kQuietNotificationPermissionPromoWasShown);
|
||||
profile_prefs->ClearPref(kQuietNotificationPermissionShouldShowPromo);
|
||||
profile_prefs->ClearPref(kQuietNotificationPermissionUiEnablingMethod);
|
||||
|
||||
#if BUILDFLAG(IS_CHROMEOS)
|
||||
// Added 11/2024
|
||||
profile_prefs->ClearPref(kHatsPrivacyHubPostLaunchIsSelected);
|
||||
profile_prefs->ClearPref(kHatsPrivacyHubPostLaunchCycleEndTs);
|
||||
#endif
|
||||
|
||||
// Added 12/2024.
|
||||
profile_prefs->ClearPref(kDeleteTimePeriodV2);
|
||||
profile_prefs->ClearPref(kDeleteTimePeriodV2Basic);
|
||||
@@ -2841,6 +2501,9 @@ void MigrateObsoleteProfilePrefs(PrefService* profile_prefs,
|
||||
// Added 10/2025.
|
||||
profile_prefs->ClearPref(kLegacySyncSessionsGUID);
|
||||
|
||||
// Added 11/2025.
|
||||
profile_prefs->ClearPref(kRefreshHeuristicBreakageException);
|
||||
|
||||
// Please don't delete the following line. It is used by PRESUBMIT.py.
|
||||
// END_MIGRATE_OBSOLETE_PROFILE_PREFS
|
||||
|
||||
|
||||
@@ -40,6 +40,7 @@
|
||||
#include "chrome/browser/media/media_engagement_service.h"
|
||||
#include "chrome/browser/metrics/desktop_session_duration/desktop_session_duration_observer.h"
|
||||
#include "chrome/browser/navigation_predictor/navigation_predictor_preconnect_client.h"
|
||||
#include "chrome/browser/net/http_auth_cache_status.h"
|
||||
#include "chrome/browser/net/net_error_tab_helper.h"
|
||||
#include "chrome/browser/optimization_guide/optimization_guide_keyed_service.h"
|
||||
#include "chrome/browser/optimization_guide/optimization_guide_keyed_service_factory.h"
|
||||
@@ -78,7 +79,6 @@
|
||||
#include "chrome/browser/tpcd/heuristics/opener_heuristic_service.h"
|
||||
#include "chrome/browser/tpcd/http_error_observer/http_error_tab_helper.h"
|
||||
#include "chrome/browser/tpcd/metadata/devtools_observer.h"
|
||||
#include "chrome/browser/tpcd/support/validity_service.h"
|
||||
#include "chrome/browser/translate/chrome_translate_client.h"
|
||||
#include "chrome/browser/trusted_vault/trusted_vault_encryption_keys_tab_helper.h"
|
||||
#include "chrome/browser/ui/autofill/autofill_client_provider.h"
|
||||
@@ -156,7 +156,6 @@
|
||||
#include "pdf/buildflags.h"
|
||||
#include "printing/buildflags/buildflags.h"
|
||||
#include "rlz/buildflags/buildflags.h"
|
||||
#include "third_party/blink/public/common/features.h"
|
||||
#include "ui/accessibility/accessibility_features.h"
|
||||
|
||||
#if BUILDFLAG(IS_ANDROID)
|
||||
@@ -164,24 +163,20 @@
|
||||
#include "base/functional/bind.h"
|
||||
#include "base/memory/ptr_util.h"
|
||||
#include "chrome/browser/android/oom_intervention/oom_intervention_tab_helper.h"
|
||||
#include "chrome/browser/android/persisted_tab_data/language_persisted_tab_data_android.h"
|
||||
#include "chrome/browser/android/persisted_tab_data/sensitivity_persisted_tab_data_android.h"
|
||||
#include "chrome/browser/android/policy/policy_auditor_bridge.h"
|
||||
#include "chrome/browser/banners/android/chrome_app_banner_manager_android.h"
|
||||
#include "chrome/browser/content_settings/request_desktop_site_web_contents_observer_android.h"
|
||||
#include "chrome/browser/facilitated_payments/ui/chrome_facilitated_payments_client.h"
|
||||
#include "chrome/browser/fast_checkout/fast_checkout_tab_helper.h"
|
||||
#include "chrome/browser/fingerprinting_protection/chrome_fingerprinting_protection_web_contents_helper_factory.h"
|
||||
#include "chrome/browser/flags/android/chrome_feature_list.h"
|
||||
#include "chrome/browser/loader/from_gws_navigation_and_keep_alive_request_tab_helper.h"
|
||||
#include "chrome/browser/plugins/plugin_observer_android.h"
|
||||
#include "chrome/browser/privacy_sandbox/tracking_protection_settings_factory.h"
|
||||
#include "chrome/browser/ui/android/context_menu_helper.h"
|
||||
#include "chrome/browser/ui/javascript_dialogs/javascript_tab_modal_dialog_manager_delegate_android.h"
|
||||
#include "components/content_capture/common/content_capture_features.h"
|
||||
#include "components/facilitated_payments/core/features/features.h"
|
||||
#include "components/fingerprinting_protection_filter/common/fingerprinting_protection_filter_features.h"
|
||||
#include "components/fingerprinting_protection_filter/interventions/browser/canvas_interventions_web_contents_helper.h"
|
||||
#include "components/fingerprinting_protection_filter/interventions/common/interventions_features.h"
|
||||
#include "components/ip_protection/common/ip_protection_status.h"
|
||||
#include "components/page_load_metrics/browser/features.h"
|
||||
#include "components/sensitive_content/android/android_sensitive_content_client.h"
|
||||
#include "components/sensitive_content/features.h"
|
||||
@@ -194,6 +189,7 @@
|
||||
#include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h"
|
||||
#include "chrome/browser/ui/intent_picker_tab_helper.h"
|
||||
#include "chrome/browser/ui/javascript_dialogs/javascript_tab_modal_dialog_manager_delegate_desktop.h"
|
||||
#include "chrome/browser/ui/read_anything/read_anything_side_panel_controller.h"
|
||||
#include "chrome/browser/ui/sad_tab_helper.h"
|
||||
#include "chrome/browser/ui/search/search_tab_helper.h"
|
||||
#include "chrome/browser/ui/search_engine_choice/search_engine_choice_tab_helper.h"
|
||||
@@ -201,7 +197,6 @@
|
||||
#include "chrome/browser/ui/ui_features.h"
|
||||
#include "chrome/browser/ui/uma_browsing_activity_observer.h"
|
||||
#include "chrome/browser/ui/views/side_panel/history_clusters/history_clusters_tab_helper.h"
|
||||
#include "chrome/browser/ui/views/side_panel/read_anything/read_anything_side_panel_controller.h"
|
||||
#include "components/image_fetcher/core/image_fetcher_service.h"
|
||||
#include "components/omnibox/browser/omnibox_field_trial.h"
|
||||
#include "components/web_modal/web_contents_modal_dialog_manager.h"
|
||||
@@ -349,16 +344,14 @@ void TabHelpers::AttachTabHelpers(WebContents* web_contents) {
|
||||
autofill::AutofillClientProviderFactory::GetForProfile(profile);
|
||||
autofill_client_provider.CreateClientForWebContents(web_contents);
|
||||
|
||||
if (base::FeatureList::IsEnabled(
|
||||
blink::features::kMediaSessionEnterPictureInPicture)) {
|
||||
#if BUILDFLAG(IS_ANDROID)
|
||||
if (base::FeatureList::IsEnabled(media::kAutoPictureInPictureAndroid)) {
|
||||
AutoPictureInPictureTabHelper::CreateForWebContents(web_contents);
|
||||
}
|
||||
#else
|
||||
if (base::FeatureList::IsEnabled(media::kAutoPictureInPictureAndroid)) {
|
||||
AutoPictureInPictureTabHelper::CreateForWebContents(web_contents);
|
||||
#endif
|
||||
}
|
||||
#else
|
||||
AutoPictureInPictureTabHelper::CreateForWebContents(web_contents);
|
||||
#endif
|
||||
|
||||
#if BUILDFLAG(IS_ANDROID)
|
||||
// The sensitive content client has to be instantiated after the autofill
|
||||
// client, because the sensitive content client starts a flow which uses
|
||||
@@ -371,33 +364,9 @@ void TabHelpers::AttachTabHelpers(WebContents* web_contents) {
|
||||
web_contents, "SensitiveContent.Chrome.");
|
||||
}
|
||||
|
||||
if (fingerprinting_protection_filter::features::
|
||||
IsFingerprintingProtectionEnabledForIncognitoState(
|
||||
profile->IsIncognitoProfile())) {
|
||||
CreateFingerprintingProtectionWebContentsHelper(
|
||||
web_contents, profile->GetPrefs(),
|
||||
HostContentSettingsMapFactory::GetForProfile(profile),
|
||||
TrackingProtectionSettingsFactory::GetForProfile(profile),
|
||||
profile->IsIncognitoProfile());
|
||||
}
|
||||
|
||||
if (fingerprinting_protection_interventions::features::
|
||||
ShouldBlockCanvasReadbackForIncognitoState(
|
||||
profile->IsIncognitoProfile()) ||
|
||||
fingerprinting_protection_interventions::features::
|
||||
IsCanvasInterventionsEnabledForIncognitoState(
|
||||
profile->IsIncognitoProfile())) {
|
||||
fingerprinting_protection_interventions::
|
||||
CanvasInterventionsWebContentsHelper::CreateForWebContents(
|
||||
web_contents,
|
||||
TrackingProtectionSettingsFactory::GetForProfile(profile),
|
||||
profile->IsIncognitoProfile());
|
||||
}
|
||||
|
||||
// Only create the IpProtectionStatus if the User Bypass feature is enabled.
|
||||
if (net::features::kIpPrivacyEnableUserBypass.Get()) {
|
||||
ip_protection::IpProtectionStatus::CreateForWebContents(web_contents);
|
||||
}
|
||||
// Create the HttpAuthCacheStatus to start observing resource load
|
||||
// completions.
|
||||
HttpAuthCacheStatus::HttpAuthCacheStatus::CreateForWebContents(web_contents);
|
||||
#endif // BUILDFLAG(IS_ANDROID)
|
||||
if (breadcrumbs::IsEnabled(g_browser_process->local_state())) {
|
||||
BreadcrumbManagerTabHelper::CreateForWebContents(web_contents);
|
||||
@@ -419,6 +388,37 @@ void TabHelpers::AttachTabHelpers(WebContents* web_contents) {
|
||||
#endif
|
||||
ChromeSecurityStateTabHelper::CreateForWebContents(web_contents);
|
||||
ChromeTranslateClient::CreateForWebContents(web_contents);
|
||||
#if BUILDFLAG(IS_ANDROID)
|
||||
// Register LanguagePersistedTabDataAndroid for non-incognito tabs to
|
||||
// persist language details.
|
||||
if (!profile->IsOffTheRecord() &&
|
||||
content_capture::features::ShouldSendMetadataForDataShare()) {
|
||||
if (auto* tab = TabAndroid::FromWebContents(web_contents); tab) {
|
||||
LanguagePersistedTabDataAndroid::From(
|
||||
tab,
|
||||
base::BindOnce(
|
||||
[](base::WeakPtr<content::WebContents> web_contents,
|
||||
PersistedTabDataAndroid* persisted_tab_data) {
|
||||
if (!web_contents) {
|
||||
return;
|
||||
}
|
||||
ChromeTranslateClient* chrome_translate_client =
|
||||
ChromeTranslateClient::FromWebContents(web_contents.get());
|
||||
|
||||
if (!chrome_translate_client) {
|
||||
return;
|
||||
}
|
||||
|
||||
auto* language_persisted_tab_data_android =
|
||||
static_cast<LanguagePersistedTabDataAndroid*>(
|
||||
persisted_tab_data);
|
||||
language_persisted_tab_data_android->RegisterTranslateDriver(
|
||||
chrome_translate_client->translate_driver());
|
||||
},
|
||||
web_contents->GetWeakPtr()));
|
||||
}
|
||||
}
|
||||
#endif // BUILDFLAG(IS_ANDROID)
|
||||
client_hints::ClientHintsWebContentsObserver::CreateForWebContents(
|
||||
web_contents);
|
||||
commerce::CommerceTabHelper::CreateForWebContents(
|
||||
@@ -599,7 +599,6 @@ void TabHelpers::AttachTabHelpers(WebContents* web_contents) {
|
||||
tasks::TaskTabHelper::CreateForWebContents(web_contents);
|
||||
tpcd::metadata::TpcdMetadataDevtoolsObserver::CreateForWebContents(
|
||||
web_contents);
|
||||
tpcd::trial::ValidityService::MaybeCreateForWebContents(web_contents);
|
||||
#if !BUILDFLAG(IS_ANDROID)
|
||||
TabCaptureContentsBorderHelper::CreateForWebContents(web_contents);
|
||||
#endif // BUILDFLAG(IS_ANDROID)
|
||||
|
||||
@@ -472,6 +472,8 @@ namespace autofillPrivate {
|
||||
void(AttributeType[] attributeTypes);
|
||||
callback GetAutofillAiOptInStatusCallback = void(boolean optedIn);
|
||||
callback SetAutofillAiOptInStatusCallback = void(boolean success);
|
||||
callback GetWalletablePassDetectionOptInStatusCallback = void(boolean optedIn);
|
||||
callback SetWalletablePassDetectionOptInStatusCallback = void();
|
||||
callback GetPayOverTimeIssuerListCallback = void(PayOverTimeIssuerEntry[] entries);
|
||||
|
||||
interface Functions {
|
||||
@@ -624,6 +626,15 @@ namespace autofillPrivate {
|
||||
static void setAutofillAiOptInStatus(
|
||||
boolean optedIn,
|
||||
SetAutofillAiOptInStatusCallback callback);
|
||||
|
||||
// Gets the walletable pass detection opt-in status for the current user.
|
||||
static void getWalletablePassDetectionOptInStatus(
|
||||
GetWalletablePassDetectionOptInStatusCallback callback);
|
||||
|
||||
// Sets the walletable pass detection opt-in status for the current user.
|
||||
static void setWalletablePassDetectionOptInStatus(
|
||||
boolean optedIn,
|
||||
SetWalletablePassDetectionOptInStatusCallback callback);
|
||||
};
|
||||
|
||||
interface Events {
|
||||
|
||||
@@ -101,35 +101,36 @@ namespace downloads {
|
||||
DOMString? body;
|
||||
};
|
||||
|
||||
// <dl><dt>file</dt>
|
||||
// <dd>The download's filename is suspicious.</dd>
|
||||
// <dt>url</dt>
|
||||
// <dd>The download's URL is known to be malicious.</dd>
|
||||
// <dt>content</dt>
|
||||
// <dd>The downloaded file is known to be malicious.</dd>
|
||||
// <dt>uncommon</dt>
|
||||
// <dd>The download's URL is not commonly downloaded and could be
|
||||
// dangerous.</dd>
|
||||
// <dt>host</dt>
|
||||
// <dd>The download came from a host known to distribute malicious
|
||||
// binaries and is likely dangerous.</dd>
|
||||
// <dt>unwanted</dt>
|
||||
// <dd>The download is potentially unwanted or unsafe. E.g. it could make
|
||||
// changes to browser or computer settings.</dd>
|
||||
// <dt>safe</dt>
|
||||
// <dd>The download presents no known danger to the user's computer.</dd>
|
||||
// <dt>accepted</dt>
|
||||
// <dd>The user has accepted the dangerous download.</dd>
|
||||
// </dl>
|
||||
enum DangerType {
|
||||
// The download's filename is suspicious.
|
||||
file,
|
||||
|
||||
// The download's URL is known to be malicious.
|
||||
url,
|
||||
|
||||
// The downloaded file is known to be malicious.
|
||||
content,
|
||||
|
||||
|
||||
// The download's URL is not commonly downloaded and could be dangerous.
|
||||
uncommon,
|
||||
|
||||
// The download came from a host known to distribute malicious binaries and
|
||||
// is likely dangerous.
|
||||
host,
|
||||
|
||||
// The download is potentially unwanted or unsafe. E.g. it could make
|
||||
// changes to browser or computer settings.
|
||||
unwanted,
|
||||
|
||||
|
||||
// The download presents no known danger to the user's computer.
|
||||
safe,
|
||||
|
||||
// The user has accepted the dangerous download.
|
||||
accepted,
|
||||
|
||||
// Enterprise-related values.
|
||||
allowlistedByPolicy,
|
||||
asyncScanning,
|
||||
asyncLocalPasswordScanning,
|
||||
@@ -143,7 +144,12 @@ namespace downloads {
|
||||
promptForScanning,
|
||||
promptForLocalPasswordScanning,
|
||||
accountCompromise,
|
||||
blockedScanFailed
|
||||
blockedScanFailed,
|
||||
|
||||
// For use by the Secure Enterprise Browser extension. When required, Chrome
|
||||
// will block the download to disc and download the file directly to Google
|
||||
// Drive.
|
||||
forceSaveToGdrive
|
||||
};
|
||||
|
||||
// <dl><dt>in_progress</dt>
|
||||
|
||||
@@ -302,6 +302,7 @@ namespace enterprise.reportingPrivate {
|
||||
DOMString? maskType;
|
||||
DOMString? pattern;
|
||||
DetectorType? detectorType;
|
||||
DOMString? maskText;
|
||||
};
|
||||
|
||||
// Information for a data leak prevention rule that was used to mask data.
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace loginState {
|
||||
USER_PROFILE,
|
||||
|
||||
// Specifies that the extension is in the lock screen profile.
|
||||
[nodoc] LOCK_PROFILE
|
||||
LOCK_PROFILE
|
||||
};
|
||||
|
||||
enum SessionState {
|
||||
|
||||
@@ -183,6 +183,6 @@ namespace sidePanel {
|
||||
static void onOpened(PanelOpenedInfo info);
|
||||
|
||||
// Fired when the extension's side panel is closed.
|
||||
[nodoc] static void onClosed(PanelClosedInfo info);
|
||||
static void onClosed(PanelClosedInfo info);
|
||||
};
|
||||
};
|
||||
|
||||
@@ -92,9 +92,6 @@
|
||||
#include "components/error_page/common/error.h"
|
||||
#include "components/error_page/common/localized_error.h"
|
||||
#include "components/feed/feed_feature_list.h"
|
||||
#include "components/fingerprinting_protection_filter/common/fingerprinting_protection_filter_features.h"
|
||||
#include "components/fingerprinting_protection_filter/renderer/renderer_agent.h"
|
||||
#include "components/fingerprinting_protection_filter/renderer/unverified_ruleset_dealer.h"
|
||||
#include "components/grit/components_scaled_resources.h"
|
||||
#include "components/guest_view/buildflags/buildflags.h"
|
||||
#include "components/heap_profiling/in_process/heap_profiler_controller.h"
|
||||
@@ -122,7 +119,6 @@
|
||||
#include "components/subresource_filter/content/renderer/subresource_filter_agent.h"
|
||||
#include "components/subresource_filter/content/renderer/unverified_ruleset_dealer.h"
|
||||
#include "components/subresource_filter/core/common/common_features.h"
|
||||
#include "components/subresource_filter/core/common/memory_mapped_ruleset.h"
|
||||
#include "components/variations/net/variations_http_headers.h"
|
||||
#include "components/variations/variations_switches.h"
|
||||
#include "components/version_info/version_info.h"
|
||||
@@ -441,13 +437,6 @@ void ChromeContentRendererClient::RenderThreadStarted() {
|
||||
subresource_filter_ruleset_dealer_ =
|
||||
std::make_unique<subresource_filter::UnverifiedRulesetDealer>();
|
||||
|
||||
if (fingerprinting_protection_filter::features::
|
||||
IsFingerprintingProtectionFeatureEnabled()) {
|
||||
fingerprinting_protection_ruleset_dealer_ = std::make_unique<
|
||||
fingerprinting_protection_filter::UnverifiedRulesetDealer>();
|
||||
thread->AddObserver(fingerprinting_protection_ruleset_dealer_.get());
|
||||
}
|
||||
|
||||
#if BUILDFLAG(SAFE_BROWSING_AVAILABLE)
|
||||
phishing_model_setter_ =
|
||||
std::make_unique<safe_browsing::PhishingModelSetterImpl>();
|
||||
@@ -723,26 +712,6 @@ void ChromeContentRendererClient::RenderFrameCreated(
|
||||
subresource_filter_agent->Initialize();
|
||||
}
|
||||
|
||||
if (!render_frame->IsInFencedFrameTree()) {
|
||||
content_based_fingerprinting_protection_enabled_for_metrics_ =
|
||||
render_frame->GetBlinkPreferences()
|
||||
.content_based_fingerprinting_protection_enabled;
|
||||
}
|
||||
if (render_frame->IsMainFrame() && !render_frame->IsInFencedFrameTree()) {
|
||||
// This web pref applies at the level of the current browser session and may
|
||||
// change when settings are modified, so we copy the latest value every time
|
||||
// a new top-level main frame is created for a new page.
|
||||
content_based_fingerprinting_protection_enabled_ =
|
||||
render_frame->GetBlinkPreferences()
|
||||
.content_based_fingerprinting_protection_enabled;
|
||||
}
|
||||
if (content_based_fingerprinting_protection_enabled_ &&
|
||||
fingerprinting_protection_ruleset_dealer_) {
|
||||
auto* fingerprinting_protection_renderer_agent =
|
||||
new fingerprinting_protection_filter::RendererAgent(render_frame);
|
||||
fingerprinting_protection_renderer_agent->Initialize();
|
||||
}
|
||||
|
||||
#if !BUILDFLAG(IS_ANDROID)
|
||||
if (process_state::IsInstantProcess() && render_frame->IsMainFrame()) {
|
||||
new SearchBox(render_frame);
|
||||
@@ -947,16 +916,6 @@ bool ChromeContentRendererClient::OverrideCreatePlugin(
|
||||
return true;
|
||||
}
|
||||
|
||||
#if BUILDFLAG(ENABLE_PLUGINS)
|
||||
WebPlugin* ChromeContentRendererClient::CreatePluginReplacement(
|
||||
content::RenderFrame* render_frame,
|
||||
const base::FilePath& plugin_path) {
|
||||
auto* placeholder = NonLoadablePluginPlaceholder::CreateErrorPlugin(
|
||||
render_frame, plugin_path);
|
||||
return placeholder->plugin();
|
||||
}
|
||||
#endif // BUILDFLAG(ENABLE_PLUGINS)
|
||||
|
||||
bool ChromeContentRendererClient::DeferMediaLoad(
|
||||
content::RenderFrame* render_frame,
|
||||
bool has_played_media_before,
|
||||
@@ -1483,8 +1442,12 @@ void ChromeContentRendererClient::
|
||||
#endif
|
||||
|
||||
if (base::FeatureList::IsEnabled(
|
||||
autofill::features::kAutofillSharedAutofill)) {
|
||||
blink::WebRuntimeFeatures::EnableSharedAutofill(true);
|
||||
autofill::features::kAutofillPolicyControlledFeatureAutofill)) {
|
||||
blink::WebRuntimeFeatures::EnableAutofill(true);
|
||||
}
|
||||
if (base::FeatureList::IsEnabled(
|
||||
autofill::features::kAutofillPolicyControlledFeatureManualText)) {
|
||||
blink::WebRuntimeFeatures::EnableManualText(true);
|
||||
}
|
||||
|
||||
if (base::FeatureList::IsEnabled(subresource_filter::kAdTagging))
|
||||
@@ -1678,27 +1641,6 @@ void ChromeContentRendererClient::AppendContentSecurityPolicy(
|
||||
#endif
|
||||
}
|
||||
|
||||
bool ChromeContentRendererClient::
|
||||
IsContentBasedFingerprintingProtectionEnabled() {
|
||||
return content_based_fingerprinting_protection_enabled_;
|
||||
}
|
||||
|
||||
bool ChromeContentRendererClient::
|
||||
IsContentBasedFingerprintingProtectionEnabledForMetrics() {
|
||||
return content_based_fingerprinting_protection_enabled_for_metrics_;
|
||||
}
|
||||
|
||||
scoped_refptr<const subresource_filter::MemoryMappedRuleset>
|
||||
ChromeContentRendererClient::GetFingerprintingProtectionRuleset() {
|
||||
if (fingerprinting_protection_ruleset_dealer_) {
|
||||
// Returns nullptr if no ruleset file is available.
|
||||
fingerprinting_protection_ruleset_ =
|
||||
fingerprinting_protection_ruleset_dealer_->GetRuleset();
|
||||
return fingerprinting_protection_ruleset_;
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
std::unique_ptr<blink::WebLinkPreviewTriggerer>
|
||||
ChromeContentRendererClient::CreateLinkPreviewTriggerer() {
|
||||
return ::CreateWebLinkPreviewTriggerer();
|
||||
|
||||
@@ -1403,6 +1403,20 @@ policies:
|
||||
1402: GeminiActOnWebSettings
|
||||
1403: LocalAuthFactorsComplexity
|
||||
1404: ProxyOverrideRules
|
||||
1405: LocalAuthFactors
|
||||
1406: EnableProxyOverrideRulesForAllUsers
|
||||
1407: DefaultIdleDetectionSetting
|
||||
1408: IdleDetectionAllowedForUrls
|
||||
1409: IdleDetectionBlockedForUrls
|
||||
1410: PreciseGeolocationAllowedForUrls
|
||||
1411: GeolocationBlockedForUrls
|
||||
1412: PdfXfaFormsEnabled
|
||||
1413: CameraSaveLocation
|
||||
1414: DeviceLoginScreenPreferSlowKexAlgorithms
|
||||
1415: DeviceLoginScreenPreferSlowCiphers
|
||||
1416: SearchContentSharingSettings
|
||||
1417: StaticStorageQuotaEnabled
|
||||
|
||||
atomic_groups:
|
||||
1: Homepage
|
||||
2: RemoteAccess
|
||||
@@ -1465,3 +1479,4 @@ atomic_groups:
|
||||
59: DeviceAttributesSettings
|
||||
60: ProtectedContent
|
||||
61: LegacyCookieScopeSettings
|
||||
62: GeolocationSettings
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ desc: |-
|
||||
|
||||
URLs must have HTTPS scheme, e.g. "https://example.com".
|
||||
|
||||
For detailed information on valid url patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns.
|
||||
For detailed information on valid url patterns, please see https://chromeenterprise.google/policies/url-patterns/.
|
||||
device_only: true
|
||||
example_value:
|
||||
- https://www.example.com/
|
||||
|
||||
+1
-2
@@ -15,9 +15,8 @@ features:
|
||||
per_profile: true
|
||||
cloud_only: true
|
||||
user_only: true
|
||||
future_on:
|
||||
- android
|
||||
supported_on:
|
||||
- android:144-
|
||||
- chrome.*:137-
|
||||
owners:
|
||||
- seblalancette@chromium.org
|
||||
|
||||
+1
-2
@@ -15,9 +15,8 @@ features:
|
||||
per_profile: true
|
||||
cloud_only: true
|
||||
user_only: true
|
||||
future_on:
|
||||
- android
|
||||
supported_on:
|
||||
- android:144-
|
||||
- chrome.*:137-
|
||||
owners:
|
||||
- seblalancette@chromium.org
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ desc: |-
|
||||
call the API without a prior user gesture.
|
||||
|
||||
For detailed information on valid url patterns, please see
|
||||
https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns.
|
||||
https://chromeenterprise.google/policies/url-patterns.
|
||||
Wildcards, <ph name="WILDCARD_VALUE">*</ph>, are allowed.
|
||||
|
||||
Origins matching both blocked and allowed policy patterns will be blocked.
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ desc: |-
|
||||
from calling the API without a prior user gesture.
|
||||
|
||||
For detailed information on valid url patterns, please see
|
||||
https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns.
|
||||
https://chromeenterprise.google/policies/url-patterns.
|
||||
Wildcards, <ph name="WILDCARD_VALUE">*</ph>, are allowed.
|
||||
|
||||
Origins matching both blocked and allowed policy patterns will be blocked.
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ desc: |-
|
||||
|
||||
Leaving the policy unset means <ph name="DEFAULT_CLIPBOARD_SETTING">DefaultClipboardSetting</ph> applies for all sites, if it's set. If not, the user's personal setting applies.
|
||||
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns. Wildcards, <ph name="WILDCARD_VALUE">*</ph>, are allowed.
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://chromeenterprise.google/policies/url-patterns. Wildcards, <ph name="WILDCARD_VALUE">*</ph>, are allowed.
|
||||
example_value:
|
||||
- https://www.example.com
|
||||
- '[*.]example.edu'
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ desc: |-
|
||||
|
||||
Leaving the policy unset means <ph name="DEFAULT_CLIPBOARD_SETTING">DefaultClipboardSetting</ph> applies for all sites, if it's set. If not, the user's personal setting applies.
|
||||
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns. Wildcards, <ph name="WILDCARD_VALUE">*</ph>, are allowed.
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://chromeenterprise.google/policies/url-patterns. Wildcards, <ph name="WILDCARD_VALUE">*</ph>, are allowed.
|
||||
example_value:
|
||||
- https://www.example.com
|
||||
- '[*.]example.edu'
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ desc: |-
|
||||
|
||||
URL patterns must not conflict with <ph name="CONTROLLED_FRAME_BLOCKED_FOR_URLS_POLICY_NAME">ControlledFrameBlockedForUrls</ph>. Neither policy takes precedence if a URL matches with both.
|
||||
|
||||
For detailed information on valid url patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns. <ph name="WILDCARD_VALUE">*</ph> is not an accepted value for this policy.
|
||||
For detailed information on valid url patterns, please see https://chromeenterprise.google/policies/url-patterns. <ph name="WILDCARD_VALUE">*</ph> is not an accepted value for this policy.
|
||||
example_value:
|
||||
- isolated-app://aerugqztij5biqquuk3mfwpsaibuegaqcitgfchwuosuofdjabzqaaic
|
||||
features:
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ desc: |-
|
||||
|
||||
URL patterns must not conflict with <ph name="CONTROLLED_FRAME_ALLOWED_FOR_URLS_POLICY_NAME">ControlledFrameAllowedForUrls</ph>. Neither policy takes precedence if a URL matches with both.
|
||||
|
||||
For detailed information on valid url patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns. <ph name="WILDCARD_VALUE">*</ph> is not an accepted value for this policy.
|
||||
For detailed information on valid url patterns, please see https://chromeenterprise.google/policies/url-patterns. <ph name="WILDCARD_VALUE">*</ph> is not an accepted value for this policy.
|
||||
example_value:
|
||||
- isolated-app://aerugqztij5biqquuk3mfwpsaibuegaqcitgfchwuosuofdjabzqaaic
|
||||
features:
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ desc: |-
|
||||
|
||||
See also policies <ph name="COOKIES_BLOCKED_FOR_URLS_POLICY_NAME">CookiesBlockedForUrls</ph> and <ph name="COOKIES_SESSIONS_ONLY_FOR_URLS">CookiesSessionOnlyForUrls</ph>. Note that there must be no conflicting URL patterns between these three policies - it is unspecified which policy takes precedence.
|
||||
|
||||
For detailed information on valid url patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns. <ph name="WILDCARD_VALUE">*</ph> is not an accepted value for this policy.
|
||||
For detailed information on valid url patterns, please see https://chromeenterprise.google/policies/url-patterns. <ph name="WILDCARD_VALUE">*</ph> is not an accepted value for this policy.
|
||||
example_value:
|
||||
- https://www.example.com
|
||||
- '[*.]example.edu'
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ desc: |-
|
||||
|
||||
While no specific policy takes precedence, see <ph name="COOKIES_ALLOWED_FOR_URLS_POLICY_NAME">CookiesAllowedForUrls</ph> and <ph name="COOKIES_SESSION_ONLY_FOR_URLS_POLICY_NAME">CookiesSessionOnlyForUrls</ph>. URL patterns among these 3 policies must not conflict.
|
||||
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns. <ph name="WILDCARD_VALUE">*</ph> is not an accepted value for this policy.
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://chromeenterprise.google/policies/url-patterns. <ph name="WILDCARD_VALUE">*</ph> is not an accepted value for this policy.
|
||||
example_value:
|
||||
- https://www.example.com
|
||||
- '[*.]example.edu'
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ desc: |-
|
||||
|
||||
While no specific policy takes precedence, see <ph name="COOKIES_BLOCKED_FOR_URLS_POLICY_NAME">CookiesBlockedForUrls</ph> and <ph name="COOKIES_ALLOWED_FOR_URLS_POLICY_NAME">CookiesAllowedForUrls</ph>. URL patterns among these 3 policies must not conflict.
|
||||
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns. <ph name="WILDCARD_VALUE">*</ph> is not an accepted value for this policy.
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://chromeenterprise.google/policies/url-patterns. <ph name="WILDCARD_VALUE">*</ph> is not an accepted value for this policy.
|
||||
example_value:
|
||||
- https://www.example.com
|
||||
- '[*.]example.edu'
|
||||
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
caption: Default idle detection setting
|
||||
desc: |-
|
||||
Allows you to set whether websites are allowed to use the Idle Detection API.
|
||||
|
||||
When this policy is set to 1 - <ph name="ALLOW_IDLE_DETECTION_VALUE_NAME">AllowIdleDetection</ph>, websites can use the API without asking the user for permission.
|
||||
|
||||
When this policy is set to 2 - <ph name="BLOCK_IDLE_DETECTION_VALUE_NAME">BlockIdleDetection</ph>, websites can't use the API, regardless of the user's permission.
|
||||
|
||||
When this policy is set to 3 - <ph name="ASK_IDLE_DETECTION_VALUE_NAME">AskIdleDetection</ph> or not set, websites can't use the API without the user's permission.
|
||||
example_value: 1
|
||||
features:
|
||||
dynamic_refresh: true
|
||||
per_profile: true
|
||||
items:
|
||||
- caption: Allow sites to detect idle state without asking the user
|
||||
name: AllowIdleDetection
|
||||
value: 1
|
||||
- caption: Do not allow any site to detect the user's idle state
|
||||
name: BlockIdleDetection
|
||||
value: 2
|
||||
- caption: Ask every time a site wants to detect the user's idle state
|
||||
name: AskIdleDetection
|
||||
value: 3
|
||||
label: Idle detection
|
||||
owners:
|
||||
- pastarmovj@chromium.org
|
||||
- zmin@chromium.org
|
||||
future_on:
|
||||
- chrome.*
|
||||
- chrome_os
|
||||
- android
|
||||
tags:
|
||||
- website-sharing
|
||||
type: int-enum
|
||||
schema:
|
||||
enum:
|
||||
- 1
|
||||
- 2
|
||||
- 3
|
||||
type: integer
|
||||
+1
-1
@@ -4,7 +4,7 @@ desc: |-
|
||||
|
||||
Origins must correspond to web applications that are force-installed Isolated Web Apps (using <ph name="ISOLATED_WEB_APP_INSTALL_FORCE_LIST_POLICY_NAME">IsolatedWebAppInstallForceList</ph> policy) (since version 125), set up as a kiosk app, or web applications that are force-installed (using <ph name="WEB_APP_INSTALL_FORCE_LIST_POLICY_NAME">WebAppInstallForceList</ph>) (before version 140). For Device Attributes API specification please see https://wicg.github.io/WebApiDevice/device_attributes.
|
||||
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns (since version 127), please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns. <ph name="WILDCARD_VALUE">*</ph> is not an accepted value for this policy.
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns (since version 127), please see https://chromeenterprise.google/policies/url-patterns. <ph name="WILDCARD_VALUE">*</ph> is not an accepted value for this policy.
|
||||
example_value:
|
||||
- https://www.google.com
|
||||
- '[*.]example.com'
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ desc: |-
|
||||
|
||||
Origins must correspond to web applications that are force-installed Isolated Web Apps (using <ph name="ISOLATED_WEB_APP_INSTALL_FORCE_LIST_POLICY_NAME">IsolatedWebAppInstallForceList</ph> policy) or set up as a kiosk app. For Device Attributes API specification please see https://wicg.github.io/WebApiDevice/device_attributes.
|
||||
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns. <ph name="WILDCARD_VALUE">*</ph> is not an accepted value for this policy.
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://chromeenterprise.google/policies/url-patterns. <ph name="WILDCARD_VALUE">*</ph> is not an accepted value for this policy.
|
||||
example_value:
|
||||
- https://www.google.com
|
||||
- '[*.]example.com'
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ desc: |-
|
||||
|
||||
URL patterns must not conflict with <ph name="DIRECT_SOCKETS_BLOCKED_FOR_URLS_POLICY_NAME">DirectSocketsBlockedForUrls</ph>. Neither policy takes precedence if a URL matches with both.
|
||||
|
||||
For detailed information on valid url patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns. <ph name="WILDCARD_VALUE">*</ph> is not an accepted value for this policy.
|
||||
For detailed information on valid url patterns, please see https://chromeenterprise.google/policies/url-patterns. <ph name="WILDCARD_VALUE">*</ph> is not an accepted value for this policy.
|
||||
example_value:
|
||||
- isolated-app://aerugqztij5biqquuk3mfwpsaibuegaqcitgfchwuosuofdjabzqaaic
|
||||
features:
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ desc: |-
|
||||
|
||||
URL patterns must not conflict with <ph name="DIRECT_SOCKETS_ALLOWED_FOR_URLS_POLICY_NAME">DirectSocketsAllowedForUrls</ph>. Neither policy takes precedence if a URL matches with both.
|
||||
|
||||
For detailed information on valid url patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns. <ph name="WILDCARD_VALUE">*</ph> is not an accepted value for this policy.
|
||||
For detailed information on valid url patterns, please see https://chromeenterprise.google/policies/url-patterns. <ph name="WILDCARD_VALUE">*</ph> is not an accepted value for this policy.
|
||||
example_value:
|
||||
- isolated-app://aerugqztij5biqquuk3mfwpsaibuegaqcitgfchwuosuofdjabzqaaic
|
||||
features:
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ desc: |-
|
||||
|
||||
URL patterns must not conflict with <ph name="DIRECT_SOCKETS_PRIVATE_NETWORK_ACCESS_BLOCKED_FOR_URLS_POLICY_NAME">DirectSocketsPrivateNetworkAccessBlockedForUrls</ph>. Neither policy takes precedence if a URL matches with both.
|
||||
|
||||
For detailed information on valid url patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns. <ph name="WILDCARD_VALUE">*</ph> is not an accepted value for this policy.
|
||||
For detailed information on valid url patterns, please see https://chromeenterprise.google/policies/url-patterns. <ph name="WILDCARD_VALUE">*</ph> is not an accepted value for this policy.
|
||||
|
||||
Note that this policy only applies if the origin is allowed to use the Direct Sockets API.
|
||||
Please consult <ph name="DEFAULT_DIRECT_SOCKETS_SETTING_POLICY_NAME">DefaultDirectSocketsSetting</ph>, <ph name="DIRECT_SOCKETS_ALLOWED_FOR_URLS_POLICY_NAME">DirectSocketsAllowedForUrls</ph> and <ph name="DIRECT_SOCKETS_BLOCKED_FOR_URLS_POLICY_NAME">DirectSocketsBlockedForUrls</ph> for more details.
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ desc: |-
|
||||
|
||||
URL patterns must not conflict with <ph name="DIRECT_SOCKETS_PRIVATE_NETWORK_ACCESS_ALLOWED_FOR_URLS_POLICY_NAME">DirectSocketsPrivateNetworkAccessAllowedForUrls</ph>. Neither policy takes precedence if a URL matches with both.
|
||||
|
||||
For detailed information on valid url patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns. <ph name="WILDCARD_VALUE">*</ph> is not an accepted value for this policy.
|
||||
For detailed information on valid url patterns, please see https://chromeenterprise.google/policies/url-patterns. <ph name="WILDCARD_VALUE">*</ph> is not an accepted value for this policy.
|
||||
|
||||
Note that this policy only applies if the origin is allowed to use the Direct Sockets API.
|
||||
Please consult <ph name="DEFAULT_DIRECT_SOCKETS_SETTING_POLICY_NAME">DefaultDirectSocketsSetting</ph>, <ph name="DIRECT_SOCKETS_ALLOWED_FOR_URLS_POLICY_NAME">DirectSocketsAllowedForUrls</ph> and <ph name="DIRECT_SOCKETS_BLOCKED_FOR_URLS_POLICY_NAME">DirectSocketsBlockedForUrls</ph> for more details.
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ desc: |-
|
||||
|
||||
URL patterns must not conflict with <ph name="FILE_HANDLING_BLOCKED_FOR_URLS_POLICY_NAME">FileHandlingBlockedForUrls</ph>. Neither policy takes precedence if a URL matches with both.
|
||||
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns. <ph name="WILDCARD_VALUE">*</ph> is not an accepted value for this policy.
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://chromeenterprise.google/policies/url-patterns. <ph name="WILDCARD_VALUE">*</ph> is not an accepted value for this policy.
|
||||
example_value:
|
||||
- https://www.example.com
|
||||
- '[*.]example.edu'
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ desc: |-
|
||||
|
||||
URL patterns must not conflict with <ph name="FILE_HANDLING_ALLOWED_FOR_URLS_POLICY_NAME">FileHandlingAllowedForUrls</ph>. Neither policy takes precedence if a URL matches with both.
|
||||
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns. <ph name="WILDCARD_VALUE">*</ph> is not an accepted value for this policy.
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://chromeenterprise.google/policies/url-patterns. <ph name="WILDCARD_VALUE">*</ph> is not an accepted value for this policy.
|
||||
example_value:
|
||||
- https://www.example.com
|
||||
- '[*.]example.edu'
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ desc: |-
|
||||
|
||||
URL patterns must not conflict with <ph name="FILE_SYSTEM_READ_BLOCKED_FOR_URLS_POLICY_NAME">FileSystemReadBlockedForUrls</ph>. Neither policy takes precedence if a URL matches with both.
|
||||
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns. <ph name="WILDCARD_VALUE">*</ph> is not an accepted value for this policy.
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://chromeenterprise.google/policies/url-patterns. <ph name="WILDCARD_VALUE">*</ph> is not an accepted value for this policy.
|
||||
example_value:
|
||||
- https://www.example.com
|
||||
- '[*.]example.edu'
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ desc: |-
|
||||
|
||||
URL patterns can't conflict with <ph name="FILE_SYSTEM_READ_ASK_FOR_URLS_POLICY_NAME">FileSystemReadAskForUrls</ph>. Neither policy takes precedence if a URL matches with both.
|
||||
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns. <ph name="WILDCARD_VALUE">*</ph> is not an accepted value for this policy.
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://chromeenterprise.google/policies/url-patterns. <ph name="WILDCARD_VALUE">*</ph> is not an accepted value for this policy.
|
||||
example_value:
|
||||
- https://www.example.com
|
||||
- '[*.]example.edu'
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ desc: |-
|
||||
|
||||
URL patterns must not conflict with <ph name="FILE_SYSTEM_WRITE_BLOCKED_FOR_URLS_POLICY_NAME">FileSystemWriteBlockedForUrls</ph>. Neither policy takes precedence if a URL matches with both.
|
||||
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns. <ph name="WILDCARD_VALUE">*</ph> is not an accepted value for this policy.
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://chromeenterprise.google/policies/url-patterns. <ph name="WILDCARD_VALUE">*</ph> is not an accepted value for this policy.
|
||||
example_value:
|
||||
- https://www.example.com
|
||||
- '[*.]example.edu'
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ desc: |-
|
||||
|
||||
URL patterns can't conflict with <ph name="FILE_SYSTEM_WRITE_ASK_FOR_URLS_POLICY_NAME">FileSystemWriteAskForUrls</ph>. Neither policy takes precedence if a URL matches with both.
|
||||
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns. <ph name="WILDCARD_VALUE">*</ph> is not an accepted value for this policy.
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://chromeenterprise.google/policies/url-patterns. <ph name="WILDCARD_VALUE">*</ph> is not an accepted value for this policy.
|
||||
example_value:
|
||||
- https://www.example.com
|
||||
- '[*.]example.edu'
|
||||
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
caption: Block geolocation on these sites
|
||||
desc: |-
|
||||
Setting the policy lets you set a list of URL patterns that specify sites that are not allowed to access the user's geolocation, and are also prevented from requesting user permission to do so.
|
||||
|
||||
Leaving the policy unset means <ph name="DEFAULT_GEOLOCATION_SETTING">DefaultGeolocationSetting</ph> applies for all sites, if it's set. If not, the user's personal setting applies.
|
||||
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://chromeenterprise.google/policies/url-patterns. Wildcards, <ph name="WILDCARD_VALUE">*</ph>, are allowed.
|
||||
example_value:
|
||||
- https://www.example.com
|
||||
- '[*.]example.edu'
|
||||
features:
|
||||
dynamic_refresh: true
|
||||
per_profile: true
|
||||
future_on:
|
||||
- fuchsia
|
||||
owners:
|
||||
- engedy@chromium.org
|
||||
- file://components/permissions/PERMISSIONS_OWNERS
|
||||
schema:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
supported_on:
|
||||
- chrome.*:144-
|
||||
- chrome_os:144-
|
||||
- android:144-
|
||||
tags: []
|
||||
type: list
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
caption: Allow idle detection on these sites
|
||||
desc: |-
|
||||
Allows you to set a list of URL patterns that specify the sites that are allowed to use the Idle Detection API witout asking the user. Blocklist entries have higher priority than allowlist entries, which in turn have higher priority than the configured default value.
|
||||
|
||||
For detailed information on valid site url patterns, please see https://chromeenterprise.google/policies/url-patterns. Wildcards, <ph name="WILDCARD_VALUE">*</ph>, are allowed. This policy only matches based on origin, so any path in the URL pattern is ignored.
|
||||
|
||||
If this policy is not set, the global default value will be used for all sites, which is configured by the <ph name="DEFAULT_IDLE_DETECTION_SETTING_POLICY_NAME">DefaultIdleDetectionSetting</ph> (Default idle detection setting) policy, if set, or by the user's personal configuration otherwise.
|
||||
example_value:
|
||||
- https://www.example.com
|
||||
- '[*.]example.edu'
|
||||
features:
|
||||
dynamic_refresh: true
|
||||
per_profile: true
|
||||
label: Allowed sites for idle detection
|
||||
owners:
|
||||
- pastarmovj@chromium.org
|
||||
- zmin@chromium.org
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
future_on:
|
||||
- chrome.*
|
||||
- chrome_os
|
||||
- android
|
||||
tags:
|
||||
- website-sharing
|
||||
type: list
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
caption: Block idle detection on these sites
|
||||
desc: |-
|
||||
Allows you to set a list of URL patterns that specify the sites that are not allowed to use the Idle Detection API.
|
||||
|
||||
For detailed information on valid site url patterns, please see https://chromeenterprise.google/policies/url-patterns. Wildcards, <ph name="WILDCARD_VALUE">*</ph>, are allowed. This policy only matches based on origin, so any path in the URL pattern is ignored.
|
||||
|
||||
If this policy is not set, the global default value will be used for all sites, which is configured by the <ph name="DEFAULT_IDLE_DETECTION_SETTING_POLICY_NAME">DefaultIdleDetectionSetting</ph> (Default idle detection setting) policy, if set, or by the user's personal configuration otherwise.
|
||||
example_value:
|
||||
- https://www.example.com
|
||||
- '[*.]example.edu'
|
||||
features:
|
||||
dynamic_refresh: true
|
||||
per_profile: true
|
||||
label: Blocked sites for idle detection
|
||||
owners:
|
||||
- pastarmovj@chromium.org
|
||||
- anin@chromium.org
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
future_on:
|
||||
- chrome.*
|
||||
- chrome_os
|
||||
- android
|
||||
tags:
|
||||
- website-sharing
|
||||
type: list
|
||||
+1
-1
@@ -4,7 +4,7 @@ desc: |-
|
||||
|
||||
Leaving the policy unset means <ph name="DEFAULT_IMAGES_SETTING_ENABLED_POLICY_NAME">DefaultImagesSetting</ph> applies for all sites, if it's set. If not, the user's personal setting applies.
|
||||
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns. Wildcards, <ph name="WILDCARD_VALUE">*</ph>, are allowed.
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://chromeenterprise.google/policies/url-patterns. Wildcards, <ph name="WILDCARD_VALUE">*</ph>, are allowed.
|
||||
|
||||
Note that previously this policy was erroneously enabled on Android, but this functionality has never been fully supported on Android.
|
||||
example_value:
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ desc: |-
|
||||
|
||||
Leaving the policy unset means <ph name="DEFAULT_IMAGE_SETTING_ENABLED_POLICY_NAME">DefaultImagesSetting</ph> applies for all sites, if it's set. If not, the user's personal setting applies.
|
||||
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns. Wildcards, <ph name="WILDCARD_VALUE">*</ph>, are allowed.
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://chromeenterprise.google/policies/url-patterns. Wildcards, <ph name="WILDCARD_VALUE">*</ph>, are allowed.
|
||||
|
||||
Note that previously this policy was erroneously enabled on Android, but this functionality has never been fully supported on Android.
|
||||
example_value:
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ desc: |-
|
||||
|
||||
If this policy is left not set blockable mixed content will be blocked and optionally blockable mixed content will be upgraded, and users will be allowed to set exceptions to allow it for specific sites.
|
||||
|
||||
For detailed information on valid url patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns. Wildcards, <ph name="WILDCARD_VALUE">*</ph>, are allowed.
|
||||
For detailed information on valid url patterns, please see https://chromeenterprise.google/policies/url-patterns. Wildcards, <ph name="WILDCARD_VALUE">*</ph>, are allowed.
|
||||
example_value:
|
||||
- https://www.example.com
|
||||
- '[*.]example.edu'
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ desc: |-
|
||||
|
||||
If this policy is left not set blockable mixed content will be blocked and optionally blockable mixed content will be upgraded, but users will be allowed to set exceptions to allow it for specific sites.
|
||||
|
||||
For detailed information on valid url patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns. Wildcards, <ph name="WILDCARD_VALUE">*</ph>, are allowed.
|
||||
For detailed information on valid url patterns, please see https://chromeenterprise.google/policies/url-patterns. Wildcards, <ph name="WILDCARD_VALUE">*</ph>, are allowed.
|
||||
example_value:
|
||||
- https://www.example.com
|
||||
- '[*.]example.edu'
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ desc: |-
|
||||
|
||||
Leaving the policy unset means <ph name="DEFAULT_JAVA_SCRIPT_SETTING_POLICY_NAME">DefaultJavaScriptSetting</ph> applies for all sites, if it's set. If not, the user's personal setting applies.
|
||||
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns. Wildcards, <ph name="WILDCARD_VALUE">*</ph>, are allowed.
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://chromeenterprise.google/policies/url-patterns. Wildcards, <ph name="WILDCARD_VALUE">*</ph>, are allowed.
|
||||
example_value:
|
||||
- https://www.example.com
|
||||
- '[*.]example.edu'
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ desc: |-
|
||||
|
||||
Leaving the policy unset means <ph name="DEFAULT_JAVA_SCRIPT_SETTING_POLICY_NAME">DefaultJavaScriptSetting</ph> applies for all sites, if it's set. If not, the user's personal setting applies.
|
||||
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns. Wildcards, <ph name="WILDCARD_VALUE">*</ph>, are allowed.
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://chromeenterprise.google/policies/url-patterns. Wildcards, <ph name="WILDCARD_VALUE">*</ph>, are allowed.
|
||||
|
||||
Note that this policy blocks JavaScript based on whether the origin of the top-level document (usually the page URL that is also displayed in the address bar) matches any of the patterns. Therefore this policy is not appropriate for mitigating web supply-chain attacks. For example, supplying the pattern "https://[*.]foo.com/" will not prevent a page hosted on, say, https://example.com from running a script loaded from https://www.foo.com/example.js. Furthermore, supplying the pattern "https://example.com/" will not prevent a document from https://example.com from running scripts if it is not the top-level document, but embedded as a sub-frame into a page hosted on another origin, say, https://www.bar.com.
|
||||
example_value:
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ caption: Allow JavaScript to use JIT on these sites
|
||||
desc: |-
|
||||
Allows you to set a list of site url patterns that specify sites which are allowed to run JavaScript with JIT (Just In Time) compiler enabled.
|
||||
|
||||
For detailed information on valid site url patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns. Wildcards, <ph name="WILDCARD_VALUE">*</ph>, are allowed.
|
||||
For detailed information on valid site url patterns, please see https://chromeenterprise.google/policies/url-patterns. Wildcards, <ph name="WILDCARD_VALUE">*</ph>, are allowed.
|
||||
|
||||
JavaScript JIT policy exceptions will only be enforced at a site granularity (eTLD+1). A policy set for only subdomain.site.com will not correctly apply to site.com or subdomain.site.com since they both resolve to the same eTLD+1 (site.com) for which there is no policy. In this case, policy must be set on site.com to apply correctly for both site.com and subdomain.site.com.
|
||||
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ desc: |-
|
||||
|
||||
Disabling the JavaScript JIT will mean that <ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ph> may render web content more slowly, and may also disable parts of JavaScript including WebAssembly. Disabling the JavaScript JIT may allow <ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ph> to render web content in a more secure configuration.
|
||||
|
||||
For detailed information on valid url patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns. Wildcards, <ph name="WILDCARD_VALUE">*</ph>, are allowed.
|
||||
For detailed information on valid url patterns, please see https://chromeenterprise.google/policies/url-patterns. Wildcards, <ph name="WILDCARD_VALUE">*</ph>, are allowed.
|
||||
|
||||
JavaScript JIT policy exceptions will only be enforced at a site granularity (eTLD+1). A policy set for only subdomain.site.com will not correctly apply to site.com or subdomain.site.com since they both resolve to the same eTLD+1 (site.com) for which there is no policy. In this case, policy must be set on site.com to apply correctly for both site.com and subdomain.site.com.
|
||||
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ desc: |-
|
||||
advanced JavaScript optimizations are enabled.
|
||||
|
||||
For detailed information on valid site url patterns, please see
|
||||
https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns.
|
||||
https://chromeenterprise.google/policies/url-patterns.
|
||||
Wildcards, <ph name="WILDCARD_VALUE">*</ph>, are allowed.
|
||||
|
||||
JavaScript optimization policy exceptions will only be enforced at a site
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@ desc: |-
|
||||
$1<ex>Google Chrome</ex></ph> may render web content more slowly.
|
||||
|
||||
For detailed information on valid url patterns, please see
|
||||
https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns.
|
||||
https://chromeenterprise.google/policies/url-patterns.
|
||||
Wildcards, <ph name="WILDCARD_VALUE">*</ph>, are allowed.
|
||||
|
||||
JavaScript optimization policy exceptions will only be enforced at a site
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ desc: |-
|
||||
|
||||
If this policy is left not set the global default value will be used for all sites either from the 'DefaultKeygenSetting' policy if it is set, or the user's personal configuration otherwise.
|
||||
|
||||
For detailed information on valid url patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns. <ph name="WILDCARD_VALUE">*</ph> is not an accepted value for this policy.
|
||||
For detailed information on valid url patterns, please see https://chromeenterprise.google/policies/url-patterns. <ph name="WILDCARD_VALUE">*</ph> is not an accepted value for this policy.
|
||||
example_value:
|
||||
- https://www.example.com
|
||||
- '[*.]example.edu'
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ desc: |-
|
||||
|
||||
If this policy is left not set the global default value will be used for all sites either from the 'DefaultKeygenSetting' policy if it is set, or the user's personal configuration otherwise.
|
||||
|
||||
For detailed information on valid url patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns. <ph name="WILDCARD_VALUE">*</ph> is not an accepted value for this policy.
|
||||
For detailed information on valid url patterns, please see https://chromeenterprise.google/policies/url-patterns. <ph name="WILDCARD_VALUE">*</ph> is not an accepted value for this policy.
|
||||
example_value:
|
||||
- https://www.example.com
|
||||
- '[*.]example.edu'
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ desc: |-
|
||||
|
||||
For cookies on domains not covered by the patterns specified here, or for all cookies if this policy is not set, the global default value will be the user's personal configuration.
|
||||
|
||||
For detailed information on valid patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns.
|
||||
For detailed information on valid patterns, please see https://chromeenterprise.google/policies/url-patterns.
|
||||
|
||||
Note that patterns you list here are treated as domains, not URLs, so you should not specify a scheme or port.
|
||||
example_value:
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ caption: Allow Local Fonts permission on these sites
|
||||
desc: |-
|
||||
Sets a list of site url patterns that specify sites which will automatically grant the local fonts permission. This will extend the ability of sites to see information about local fonts.
|
||||
|
||||
For detailed information on valid site url patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns. Wildcards, <ph name="WILDCARD_VALUE">*</ph>, are allowed. This policy only matches based on origin, so any path in the URL pattern is ignored.
|
||||
For detailed information on valid site url patterns, please see https://chromeenterprise.google/policies/url-patterns. Wildcards, <ph name="WILDCARD_VALUE">*</ph>, are allowed. This policy only matches based on origin, so any path in the URL pattern is ignored.
|
||||
|
||||
If this policy is not set for a site then the policy from <ph name="DEFAULT_LOCAL_FONTS_SETTING_POLICY_NAME">DefaultLocalFontsSetting</ph> applies to the site, if set, otherwise the permission will follow the browser's defaults and allow users to choose this permission per site.
|
||||
example_value:
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ caption: Block Local Fonts permission on these sites
|
||||
desc: |-
|
||||
Sets a list of site url patterns that specify sites which will automatically deny the local fonts permission. This will limit the ability of sites to see information about local fonts.
|
||||
|
||||
For detailed information on valid site url patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns. Wildcards, <ph name="WILDCARD_VALUE">*</ph>, are allowed. This policy only matches based on origin, so any path in the URL pattern is ignored.
|
||||
For detailed information on valid site url patterns, please see https://chromeenterprise.google/policies/url-patterns. Wildcards, <ph name="WILDCARD_VALUE">*</ph>, are allowed. This policy only matches based on origin, so any path in the URL pattern is ignored.
|
||||
|
||||
If this policy is not set for a site then the policy from <ph name="DEFAULT_LOCAL_FONTS_SETTING_POLICY_NAME">DefaultLocalFontsSetting</ph> applies to the site, if set, otherwise the permission will follow the browser's defaults and allow users to choose this permission per site.
|
||||
example_value:
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ desc: |-
|
||||
|
||||
Leaving the policy unset means <ph name="DEFAULT_NOTIFICATIONS_SETTING_POLICY_NAME">DefaultNotificationsSetting</ph> applies for all sites, if it's set. If not, the user's personal setting applies.
|
||||
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns. Wildcards, <ph name="WILDCARD_VALUE">*</ph>, are allowed.
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://chromeenterprise.google/policies/url-patterns. Wildcards, <ph name="WILDCARD_VALUE">*</ph>, are allowed.
|
||||
example_value:
|
||||
- https://www.example.com
|
||||
- '[*.]example.edu'
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ desc: |-
|
||||
|
||||
Leaving the policy unset means <ph name="DEFAULT_NOTIFICATIONS_SETTING_POLICY_NAME">DefaultNotificationsSetting</ph> applies for all sites, if it's set. If not, the user's personal setting applies.
|
||||
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns. Wildcards, <ph name="WILDCARD_VALUE">*</ph>, are allowed.
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://chromeenterprise.google/policies/url-patterns. Wildcards, <ph name="WILDCARD_VALUE">*</ph>, are allowed.
|
||||
example_value:
|
||||
- https://www.example.com
|
||||
- '[*.]example.edu'
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ desc: |-
|
||||
|
||||
Leaving the policy unset means <ph name="DEFAULT_PLUGINS_SETTING_POLICY_NAME">DefaultPluginsSetting</ph> applies for all sites, if it's set. If not, the user's personal setting applies.
|
||||
|
||||
For detailed information on valid url patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns. However, starting in M85, patterns with '*' and '[*.]' wildcards in the host are no longer supported for this policy.
|
||||
For detailed information on valid url patterns, please see https://chromeenterprise.google/policies/url-patterns. However, starting in M85, patterns with '*' and '[*.]' wildcards in the host are no longer supported for this policy.
|
||||
example_value:
|
||||
- https://www.example.com
|
||||
- http://example.edu:8080
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ desc: |-
|
||||
|
||||
Leaving the policy unset means <ph name="DEFAULT_PLUGINS_SETTING_POLICY_NAME">DefaultPluginsSetting</ph> applies for all sites, if it's set. If not, the user's personal setting applies.
|
||||
|
||||
For detailed information on valid url patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns. However, starting in M85, patterns with '*' and '[*.]' wildcards in the host are no longer supported for this policy.
|
||||
For detailed information on valid url patterns, please see https://chromeenterprise.google/policies/url-patterns. However, starting in M85, patterns with '*' and '[*.]' wildcards in the host are no longer supported for this policy.
|
||||
example_value:
|
||||
- https://www.example.com
|
||||
- http://example.edu:8080
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ desc: |-
|
||||
|
||||
Leaving the policy unset means <ph name="DEFAULT_POPUPS_SETTING_POLICY_NAME">DefaultPopupsSetting</ph> applies for all sites, if it's set. If not, the user's personal setting applies.
|
||||
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns. Wildcards, <ph name="WILDCARD_VALUE">*</ph>, are allowed.
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://chromeenterprise.google/policies/url-patterns. Wildcards, <ph name="WILDCARD_VALUE">*</ph>, are allowed.
|
||||
example_value:
|
||||
- https://www.example.com
|
||||
- '[*.]example.edu'
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ desc: |-
|
||||
|
||||
Leaving the policy unset means <ph name="DEFAULT_POPUPS_SETTING_POLICY_NAME">DefaultPopupsSetting</ph> applies for all sites, if it's set. If not, the user's personal setting applies.
|
||||
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns. Wildcards, <ph name="WILDCARD_VALUE">*</ph>, are allowed.
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://chromeenterprise.google/policies/url-patterns. Wildcards, <ph name="WILDCARD_VALUE">*</ph>, are allowed.
|
||||
example_value:
|
||||
- https://www.example.com
|
||||
- '[*.]example.edu'
|
||||
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
caption: Allow precise geolocation on these sites
|
||||
desc: |-
|
||||
Setting the policy lets you set a list of URL patterns that specify sites that are allowed to access the user's high accuracy geolocation without first having to request the user's permission to do so.
|
||||
|
||||
Leaving the policy unset means <ph name="DEFAULT_GEOLOCATION_SETTING">DefaultGeolocationSetting</ph> applies for all sites, if it's set. If not, the user's personal setting applies.
|
||||
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://chromeenterprise.google/policies/url-patterns. Wildcards, <ph name="WILDCARD_VALUE">*</ph>, are allowed.
|
||||
example_value:
|
||||
- https://www.example.com
|
||||
- '[*.]example.edu'
|
||||
features:
|
||||
dynamic_refresh: true
|
||||
per_profile: true
|
||||
future_on:
|
||||
- fuchsia
|
||||
owners:
|
||||
- engedy@chromium.org
|
||||
- file://components/permissions/PERMISSIONS_OWNERS
|
||||
schema:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
supported_on:
|
||||
- chrome.*:144-
|
||||
- chrome_os:144-
|
||||
- android:144-
|
||||
tags: []
|
||||
type: list
|
||||
+1
-1
@@ -6,7 +6,7 @@ desc: |-
|
||||
|
||||
If the same URL pattern exists in both this policy and the <ph name="SENSORS_BLOCKED_FOR_URLS_POLICY_NAME">SensorsBlockedForUrls</ph> policy, the latter is prioritized and access to motion or light sensors will be blocked.
|
||||
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns. Wildcards, <ph name="WILDCARD_VALUE">*</ph>, are allowed.
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://chromeenterprise.google/policies/url-patterns. Wildcards, <ph name="WILDCARD_VALUE">*</ph>, are allowed.
|
||||
example_value:
|
||||
- https://www.example.com
|
||||
- '[*.]example.edu'
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ desc: |-
|
||||
|
||||
If the same URL pattern exists in both this policy and the <ph name="SENSORS_ALLOWED_FOR_URLS_POLICY_NAME">SensorsAllowedForUrls</ph> policy, this policy is prioritized and access to motion or light sensors will be blocked.
|
||||
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns. Wildcards, <ph name="WILDCARD_VALUE">*</ph>, are allowed.
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://chromeenterprise.google/policies/url-patterns. Wildcards, <ph name="WILDCARD_VALUE">*</ph>, are allowed.
|
||||
example_value:
|
||||
- https://www.example.com
|
||||
- '[*.]example.edu'
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ desc: |-
|
||||
|
||||
If URL patterns conflict with <ph name="SERIAL_BLOCKED_FOR_URLS_POLICY_NAME">SerialBlockedForUrls</ph> they will be ignored.
|
||||
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns. <ph name="WILDCARD_VALUE">*</ph> is not an accepted value for this policy.
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://chromeenterprise.google/policies/url-patterns. <ph name="WILDCARD_VALUE">*</ph> is not an accepted value for this policy.
|
||||
example_value:
|
||||
- https://www.example.com
|
||||
- '[*.]example.edu'
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ desc: |-
|
||||
|
||||
If URL patterns conflict with <ph name="SERIAL_ASK_FOR_URLS_POLICY_NAME">SerialAskForUrls</ph> this policy will take precedence.
|
||||
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns. <ph name="WILDCARD_VALUE">*</ph> is not an accepted value for this policy.
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://chromeenterprise.google/policies/url-patterns. <ph name="WILDCARD_VALUE">*</ph> is not an accepted value for this policy.
|
||||
example_value:
|
||||
- https://www.example.com
|
||||
- '[*.]example.edu'
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ desc: |-
|
||||
|
||||
If this policy is left unset or if a top-level origin doesn't match one of the URL patterns, <ph name="DEFAULT_THIRD_PARTY_STORAGE_PARTITIONING_SETTING_POLICY_NAME">DefaultThirdPartyStoragePartitioningSetting</ph> will apply.
|
||||
|
||||
For detailed information on valid patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns. Note that patterns you list here are treated as origins, not URLs, so you should not specify a path.
|
||||
For detailed information on valid patterns, please see https://chromeenterprise.google/policies/url-patterns. Note that patterns you list here are treated as origins, not URLs, so you should not specify a path.
|
||||
|
||||
For detailed information on third-party storage partitioning, please see https://developers.google.com/privacy-sandbox/cookies/storage-partitioning.
|
||||
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ desc: |-
|
||||
|
||||
URL patterns must not conflict with <ph name="WEB_HID_BLOCKED_FOR_URLS_POLICY_NAME">WebHidBlockedForUrls</ph>. Neither policy takes precedence if a URL matches with both.
|
||||
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns. <ph name="WILDCARD_VALUE">*</ph> is not an accepted value for this policy.
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://chromeenterprise.google/policies/url-patterns. <ph name="WILDCARD_VALUE">*</ph> is not an accepted value for this policy.
|
||||
example_value:
|
||||
- https://google.com
|
||||
- https://chromium.org
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ desc: |-
|
||||
|
||||
URL patterns can't conflict with <ph name="WEB_HID_ASK_FOR_URLS_POLICY_NAME">WebHidAskForUrls</ph>. Neither policy takes precedence if a URL matches with both.
|
||||
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns. <ph name="WILDCARD_VALUE">*</ph> is not an accepted value for this policy.
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://chromeenterprise.google/policies/url-patterns. <ph name="WILDCARD_VALUE">*</ph> is not an accepted value for this policy.
|
||||
example_value:
|
||||
- https://google.com
|
||||
- https://chromium.org
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@ desc: |-
|
||||
|
||||
URL patterns must not conflict with <ph name="WEB_PRINTING_BLOCKED_FOR_URLS_POLICY_NAME">WebPrintingBlockedForUrls</ph>. Neither policy takes precedence if a URL matches with both.
|
||||
|
||||
For detailed information on valid url patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns. <ph name="WILDCARD_VALUE">*</ph> is not an accepted value for this policy.
|
||||
For detailed information on valid url patterns, please see https://chromeenterprise.google/policies/url-patterns. <ph name="WILDCARD_VALUE">*</ph> is not an accepted value for this policy.
|
||||
example_value:
|
||||
- isolated-app://aerugqztij5biqquuk3mfwpsaibuegaqcitgfchwuosuofdjabzqaaic
|
||||
features:
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@ desc: |-
|
||||
|
||||
URL patterns must not conflict with <ph name="WEB_PRINTING_ALLOWED_FOR_URLS_POLICY_NAME">WebPrintingAllowedForUrls</ph>. Neither policy takes precedence if a URL matches with both.
|
||||
|
||||
For detailed information on valid url patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns. <ph name="WILDCARD_VALUE">*</ph> is not an accepted value for this policy.
|
||||
For detailed information on valid url patterns, please see https://chromeenterprise.google/policies/url-patterns. <ph name="WILDCARD_VALUE">*</ph> is not an accepted value for this policy.
|
||||
example_value:
|
||||
- isolated-app://aerugqztij5biqquuk3mfwpsaibuegaqcitgfchwuosuofdjabzqaaic
|
||||
features:
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ desc: |-
|
||||
|
||||
URL patterns must not conflict with <ph name="WEB_USB_ASK_FOR_URLS_POLICY_NAME">WebUsbAskForUrls</ph>. Neither policy takes precedence if a URL matches with both.
|
||||
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns. <ph name="WILDCARD_VALUE">*</ph> is not an accepted value for this policy.
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://chromeenterprise.google/policies/url-patterns. <ph name="WILDCARD_VALUE">*</ph> is not an accepted value for this policy.
|
||||
example_value:
|
||||
- https://www.example.com
|
||||
- '[*.]example.edu'
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ desc: |-
|
||||
|
||||
URL patterns can't conflict with <ph name="WEB_USB_ASK_FOR_URLS_POLICY_NAME">WebUsbAskForUrls</ph>. Neither policy takes precedence if a URL matches with both.
|
||||
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns. <ph name="WILDCARD_VALUE">*</ph> is not an accepted value for this policy.
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://chromeenterprise.google/policies/url-patterns. <ph name="WILDCARD_VALUE">*</ph> is not an accepted value for this policy.
|
||||
example_value:
|
||||
- https://www.example.com
|
||||
- '[*.]example.edu'
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ caption: Allow Window Management permission on these sites
|
||||
desc: |-
|
||||
Allows you to set a list of site url patterns that specify sites which will automatically grant the window management permission. This will extend the ability of sites to see information about the device's screens and use that information to open and place windows or request fullscreen on specific screens.
|
||||
|
||||
For detailed information on valid site url patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns. Wildcards, <ph name="WILDCARD_VALUE">*</ph>, are allowed. This policy only matches based on origin, so any path in the URL pattern is ignored.
|
||||
For detailed information on valid site url patterns, please see https://chromeenterprise.google/policies/url-patterns. Wildcards, <ph name="WILDCARD_VALUE">*</ph>, are allowed. This policy only matches based on origin, so any path in the URL pattern is ignored.
|
||||
|
||||
If this policy is not set for a site then the policy from <ph name="DEFAULT_WINDOW_MANAGEMENT_SETTING_POLICY_NAME">DefaultWindowManagementSetting</ph> applies to the site, if set, otherwise the permission will follow the browser's defaults and allow users to choose this permission per site.
|
||||
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ caption: Block Window Management permission on these sites
|
||||
desc: |-
|
||||
Allows you to set a list of site url patterns that specify sites which will automatically deny the window management permission. This will limit the ability of sites to see information about the device's screens and use that information to open and place windows or request fullscreen on specific screens.
|
||||
|
||||
For detailed information on valid site url patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns. Wildcards, <ph name="WILDCARD_VALUE">*</ph>, are allowed. This policy only matches based on origin, so any path in the URL pattern is ignored.
|
||||
For detailed information on valid site url patterns, please see https://chromeenterprise.google/policies/url-patterns. Wildcards, <ph name="WILDCARD_VALUE">*</ph>, are allowed. This policy only matches based on origin, so any path in the URL pattern is ignored.
|
||||
|
||||
If this policy is not set for a site then the policy from <ph name="DEFAULT_WINDOW_MANAGEMENT_SETTING_POLICY_NAME">DefaultWindowManagementSetting</ph> applies to the site, if set, otherwise the permission will follow the browser's defaults and allow users to choose this permission per site.
|
||||
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ caption: Allow Window Placement permission on these sites
|
||||
desc: |-
|
||||
Allows you to set a list of site url patterns that specify sites which will automatically grant the window placement permission. This will extend the ability of sites to see information about the device's screens and use that information to open and place windows or request fullscreen on specific screens.
|
||||
|
||||
For detailed information on valid site url patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns. Wildcards, <ph name="WILDCARD_VALUE">*</ph>, are allowed. This policy only matches based on origin, so any path in the URL pattern is ignored.
|
||||
For detailed information on valid site url patterns, please see https://chromeenterprise.google/policies/url-patterns. Wildcards, <ph name="WILDCARD_VALUE">*</ph>, are allowed. This policy only matches based on origin, so any path in the URL pattern is ignored.
|
||||
|
||||
If this policy is not set for a site then the policy from <ph name="DEFAULT_WINDOW_PLACEMENT_SETTING_POLICY_NAME">DefaultWindowPlacementSetting</ph> applies to the site, if set, otherwise the permission will follow the browser's defaults and allow users to choose this permission per site.
|
||||
example_value:
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ caption: Block Window Placement permission on these sites
|
||||
desc: |-
|
||||
Allows you to set a list of site url patterns that specify sites which will automatically deny the window placement permission. This will limit the ability of sites to see information about the device's screens and use that information to open and place windows or request fullscreen on specific screens.
|
||||
|
||||
For detailed information on valid site url patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns. Wildcards, <ph name="WILDCARD_VALUE">*</ph>, are allowed. This policy only matches based on origin, so any path in the URL pattern is ignored.
|
||||
For detailed information on valid site url patterns, please see https://chromeenterprise.google/policies/url-patterns. Wildcards, <ph name="WILDCARD_VALUE">*</ph>, are allowed. This policy only matches based on origin, so any path in the URL pattern is ignored.
|
||||
|
||||
If this policy is not set for a site then the policy from <ph name="DEFAULT_WINDOW_PLACEMENT_SETTING_POLICY_NAME">DefaultWindowPlacementSetting</ph> applies to the site, if set, otherwise the permission will follow the browser's defaults and allow users to choose this permission per site.
|
||||
example_value:
|
||||
|
||||
+6
@@ -119,3 +119,9 @@ DeviceAttributesSettings:
|
||||
- DefaultDeviceAttributesSetting
|
||||
- DeviceAttributesAllowedForOrigins
|
||||
- DeviceAttributesBlockedForOrigins
|
||||
GeolocationSettings:
|
||||
caption: Geolocation settings
|
||||
policies:
|
||||
- DefaultGeolocationSetting
|
||||
- PreciseGeolocationAllowedForUrls
|
||||
- GeolocationBlockedForUrls
|
||||
|
||||
+45
@@ -0,0 +1,45 @@
|
||||
caption: Prefer specific encryption cipher algorithms for TLS for device login screen
|
||||
desc: |-
|
||||
This policy configures <ph name="PRODUCT_OS_NAME">$2<ex>Google ChromeOS</ex></ph> to order its preferred encryption ciphers in TLS 1.3 to reflect a preference for algorithms that have been approved by a specific compliance regime, when making network requests from the login screen.
|
||||
|
||||
Setting this policy does not guarantee that any specific algorithms will be negotiated.
|
||||
|
||||
This policy exists to allow server operators who wish to support clients with and without compliance requirements to differentiate between those clients, and only use certain non-default algorithms with increased cryptographic strength for those explicitly configured to prefer them.
|
||||
|
||||
Setting the policy to '<ph name="CNSA_NAME">cnsa</ph>' configures <ph name="PRODUCT_OS_NAME">$2<ex>Google ChromeOS</ex></ph> to prefer ciphers required for compliance with the Commercial National Security Algorithm Suite versions 1.0 and 2.0 (CNSA 1.0 and 2.0).
|
||||
|
||||
Not setting the policy, or setting it to '<ph name="DEFAULT_NAME">default</ph>', configures <ph name="PRODUCT_OS_NAME">$2<ex>Google ChromeOS</ex></ph> to use its default ciphers.
|
||||
|
||||
Setting this policy is not required for security. The default cryptography used by <ph name="PRODUCT_OS_NAME">$2<ex>Google ChromeOS</ex></ph> is strong enough to withstand a brute force attack using the entire power of the Sun.
|
||||
|
||||
Setting this policy will cause <ph name="PRODUCT_OS_NAME">$2<ex>Google ChromeOS</ex></ph> to be slower when making network requests from the login screen.
|
||||
|
||||
This policy only affects TLS 1.3 and QUIC; it does not affect earlier versions of TLS.
|
||||
|
||||
This device policy is equivalent to the user policy <ph name="PREFER_SLOW_CIPHERS_POLICY_NAME">PreferSlowCiphers</ph>, but applies to the sign-in profile on the login screen instead.
|
||||
|
||||
example_value: cnsa
|
||||
device_only: true
|
||||
features:
|
||||
dynamic_refresh: true
|
||||
per_profile: false
|
||||
items:
|
||||
- caption: Prefer ciphers satisfying the requirements of CNSA 1.0 and 2.0
|
||||
name: CNSA
|
||||
value: cnsa
|
||||
- caption: Use <ph name="PRODUCT_OS_NAME">$2<ex>Google ChromeOS</ex></ph>'s default cipher order
|
||||
name: Default
|
||||
value: default
|
||||
owners:
|
||||
- file://crypto/OWNERS
|
||||
- trusty-transport@chromium.org
|
||||
future_on:
|
||||
- chrome_os
|
||||
schema:
|
||||
enum:
|
||||
- cnsa
|
||||
- default
|
||||
type: string
|
||||
tags:
|
||||
- system-security
|
||||
type: string-enum
|
||||
+47
@@ -0,0 +1,47 @@
|
||||
caption: Prefer specific key exchange algorithms for TLS for device login screen
|
||||
desc: |-
|
||||
This policy configures <ph name="PRODUCT_OS_NAME">$2<ex>Google ChromeOS</ex></ph> to order its preferred key agreement algorithms (supported groups) in TLS 1.3 to reflect a preference for algorithms that have been approved by a specific compliance regime, when making network requests from the login screen.
|
||||
|
||||
Setting this policy does not guarantee that any specific algorithms will be negotiated.
|
||||
|
||||
This policy exists to allow server operators who wish to support clients with and without compliance requirements to differentiate between those clients, and only use certain non-default algorithms with increased cryptographic strength for those explicitly configured to prefer them.
|
||||
|
||||
Setting the policy to '<ph name="CNSA2_NAME">cnsa2</ph>' configures <ph name="PRODUCT_OS_NAME">$2<ex>Google ChromeOS</ex></ph> to prefer key exchange methods required for compliance with the Commercial National Security Algorithm Suite 2.0 (CNSA 2.0).
|
||||
|
||||
Not setting the policy, or setting it to '<ph name="DEFAULT_NAME">default</ph>', configures <ph name="PRODUCT_OS_NAME">$2<ex>Google ChromeOS</ex></ph> to use its default key exchange methods.
|
||||
|
||||
If this policy is set to a value that would configure <ph name="PRODUCT_OS_NAME">$2<ex>Google ChromeOS</ex></ph> to prefer a post-quantum key agreement algorithm but <ph name="DEVICE_POST_QUANTUM_KEY_AGREEMENT_ENABLED_POLICY_NAME">DevicePostQuantumKeyAgreementEnabled</ph> is Disabled, the setting of <ph name="DEVICE_POST_QUANTUM_KEY_AGREEMENT_ENABLED_POLICY_NAME">DevicePostQuantumKeyAgreementEnabled</ph> takes precedence.
|
||||
|
||||
Setting this policy is not required for security. The default cryptography used by <ph name="PRODUCT_OS_NAME">$2<ex>Google ChromeOS</ex></ph> is strong enough to withstand a brute force attack using the entire power of the Sun.
|
||||
|
||||
Setting this policy will cause <ph name="PRODUCT_OS_NAME">$2<ex>Google ChromeOS</ex></ph> to be slower when making network requests from the login screen.
|
||||
|
||||
This policy only affects TLS 1.3 and QUIC; it does not affect earlier versions of TLS.
|
||||
|
||||
This device policy is equivalent to the user policy <ph name="PREFER_SLOW_KEX_ALGORITHMS_POLICY_NAME">PreferSlowKexAlgorithms</ph>, but applies to the sign-in profile on the login screen instead.
|
||||
|
||||
example_value: cnsa2
|
||||
device_only: true
|
||||
features:
|
||||
dynamic_refresh: true
|
||||
per_profile: false
|
||||
items:
|
||||
- caption: Prefer key exchange methods satisfying the requirements of CNSA 2.0
|
||||
name: CNSA2.0
|
||||
value: cnsa2
|
||||
- caption: Use <ph name="PRODUCT_OS_NAME">$2<ex>Google ChromeOS</ex></ph>'s default supported groups
|
||||
name: Default
|
||||
value: default
|
||||
owners:
|
||||
- file://crypto/OWNERS
|
||||
- trusty-transport@chromium.org
|
||||
future_on:
|
||||
- chrome_os
|
||||
schema:
|
||||
enum:
|
||||
- cnsa2
|
||||
- default
|
||||
type: string
|
||||
tags:
|
||||
- system-security
|
||||
type: string-enum
|
||||
+2
-1
@@ -35,4 +35,5 @@ items:
|
||||
default: 0
|
||||
supported_on:
|
||||
- chrome.*:143-
|
||||
tags: []
|
||||
- chrome_os:144-
|
||||
tags: []
|
||||
|
||||
+1
-1
@@ -17,7 +17,6 @@ example_value: 1
|
||||
future_on:
|
||||
- android
|
||||
- chrome.linux
|
||||
- chrome_os
|
||||
features:
|
||||
dynamic_refresh: true
|
||||
per_profile: true
|
||||
@@ -39,4 +38,5 @@ supported_on:
|
||||
- chrome.win:137-
|
||||
- chrome.mac:137-
|
||||
- ios:139-
|
||||
- chrome_os:144-
|
||||
tags: []
|
||||
|
||||
+45
@@ -0,0 +1,45 @@
|
||||
caption: Enable content sharing with <ph name="GOOGLE_AI_MODE_PRODUCT_NAME">Google AI Mode</ph> integrations
|
||||
|
||||
desc: |-
|
||||
This policy controls sharing of page and file content with <ph name="GOOGLE_AI_MODE_PRODUCT_NAME">Google AI Mode</ph> through <ph name="PRODUCT_NAME">Google Chrome</ph> side panel or tabs.
|
||||
|
||||
Note that this policy doesn't affect <ph name="GOOGLE_AI_MODE_PRODUCT_NAME">Google AI Mode</ph> on the web. It only controls how users can share information with it when using <ph name="PRODUCT_NAME">Google Chrome</ph>.
|
||||
|
||||
0/unset = users can share page or file content with <ph name="GOOGLE_AI_MODE_PRODUCT_NAME">Google AI Mode</ph>.
|
||||
|
||||
1 = users cannot share page or file content with <ph name="GOOGLE_AI_MODE_PRODUCT_NAME">Google AI Mode</ph>. The entry points for sharing context will be disabled or hidden.
|
||||
|
||||
This policy will be ignored when <ph name="GOOGLE_SEARCH_PRODUCT_NAME">Google Search</ph> is not users' default search engine as the feature is disabled.
|
||||
|
||||
This policy is independent of the <ph name="AI_MODE_SETTINGS_POLICY_NAME">AIModeSettings</ph> policy. The <ph name="AI_MODE_SETTINGS_POLICY_NAME">AIModeSettings</ph> policy only controls entry points on omnibox or NTP search box, while this policy controls context sharing through side panel or tabs.
|
||||
|
||||
This policy also doesn't control <ph name="GOOGLE_GEMINI_PRODUCT_NAME">Google Gemini</ph> integration which can be disabled by <ph name="GEMINI_SETTINGS_POLICY_NAME">GeminiSettings</ph>.
|
||||
|
||||
For more information on data handling for generative AI features, please see https://support.google.com/chrome/a?p=generative_ai_settings.
|
||||
default: 0
|
||||
example_value: 1
|
||||
features:
|
||||
dynamic_refresh: true
|
||||
per_profile: true
|
||||
items:
|
||||
- caption: Allow content sharing with <ph name="GOOGLE_AI_MODE_PRODUCT_NAME">Google AI Mode</ph> integrations.
|
||||
name: Allowed
|
||||
value: 0
|
||||
- caption: Do not allow content sharing with <ph name="GOOGLE_AI_MODE_PRODUCT_NAME">Google AI Mode</ph> integrations.
|
||||
name: Disabled
|
||||
value: 1
|
||||
owners:
|
||||
- file://components/contextual_search/OWNERS
|
||||
- file://components/contextual_tasks/OWNERS
|
||||
schema:
|
||||
enum:
|
||||
- 0
|
||||
- 1
|
||||
type: integer
|
||||
supported_on:
|
||||
- android:144-
|
||||
- ios:144-
|
||||
- chrome.*:144-
|
||||
- chrome_os:144-
|
||||
tags: []
|
||||
type: int-enum
|
||||
+1
-1
@@ -12,7 +12,7 @@ desc: |-
|
||||
|
||||
For origins not covered by the patterns specified here, the user's personal configuration will apply.
|
||||
|
||||
For detailed information on valid URL patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns.
|
||||
For detailed information on valid URL patterns, please see https://chromeenterprise.google/policies/url-patterns/.
|
||||
|
||||
See https://wicg.github.io/local-network-access/ for <ph
|
||||
name="LOCAL_NETWORK_ACCESS">Local Network Access</ph> restrictions.
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ desc: |-
|
||||
|
||||
For origins not covered by the patterns specified here, the user's personal configuration will apply.
|
||||
|
||||
For detailed information on valid URL patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns.
|
||||
For detailed information on valid URL patterns, please see https://chromeenterprise.google/policies/url-patterns/.
|
||||
|
||||
See https://wicg.github.io/local-network-access/ for <ph
|
||||
name="LOCAL_NETWORK_ACCESS">Local Network Access</ph> restrictions.
|
||||
|
||||
+6
-1
@@ -6,10 +6,12 @@ owners:
|
||||
caption: Specifies whether to apply restrictions to requests to local
|
||||
network endpoints
|
||||
|
||||
deprecated: true
|
||||
|
||||
desc: |-
|
||||
When this policy is set to Enabled, any time when a warning is supposed to be
|
||||
displayed in <ph name="CHROME_DEVTOOLS_NAME">Chrome DevTools</ph> due to <ph
|
||||
name="LOCAL_NETWORK_ACCCESS">Local Network Access</ph> checks failing, the
|
||||
name="LOCAL_NETWORK_ACCESS">Local Network Access</ph> checks failing, the
|
||||
main request will be blocked instead.
|
||||
|
||||
When this policy is set to Disabled or unset, <ph
|
||||
@@ -18,6 +20,9 @@ desc: |-
|
||||
|
||||
See https://wicg.github.io/local-network-access/ for <ph
|
||||
name="LOCAL_NETWORK_ACCESS">Local Network Access</ph> restrictions.
|
||||
|
||||
This policy is deprecated because <ph name="LOCAL_NETWORK_ACCESS">Local Network Access</ph>
|
||||
has launched by default. The policy will be removed in a future release.
|
||||
default: false
|
||||
|
||||
supported_on:
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ caption: URLs that will be granted access to audio capture devices without promp
|
||||
desc: |-
|
||||
Setting the policy means you specify the URL list whose patterns get matched to the security origin of the requesting URL. A match grants access to audio capture devices without prompt
|
||||
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns. Note, however, that the pattern "*", which matches any URL, is not supported by this policy.
|
||||
For detailed information on valid <ph name="URL_LABEL">url</ph> patterns, please see https://chromeenterprise.google/policies/url-patterns/. Note, however, that the pattern "*", which matches any URL, is not supported by this policy.
|
||||
example_value:
|
||||
- https://www.example.com/
|
||||
- https://[*.]example.edu/
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ caption: Allow media autoplay on a allowlist of URL patterns
|
||||
desc: |-
|
||||
Setting the policy lets videos play automatically (without user consent) with audio content in <ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ph>. If <ph name="AUTOPLAY_ALLOWED_POLICY_NAME">AutoplayAllowed</ph> policy is set to True, then this policy has no effect. If <ph name="AUTOPLAY_ALLOWED_POLICY_NAME">AutoplayAllowed</ph> is set to False, then any URL patterns set in this policy can still play. If this policy changes while <ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ph> is running, it only applies to newly opened tabs.
|
||||
|
||||
For detailed information on valid url patterns, please see https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns.
|
||||
For detailed information on valid url patterns, please see https://chromeenterprise.google/policies/url-patterns/.
|
||||
example_value:
|
||||
- https://www.example.com
|
||||
- '[*.]example.edu'
|
||||
|
||||
+1
-1
@@ -10,7 +10,6 @@ features:
|
||||
dynamic_refresh: true
|
||||
per_profile: true
|
||||
future_on:
|
||||
- android
|
||||
- fuchsia
|
||||
items:
|
||||
- caption: Enable bookmark bar
|
||||
@@ -25,6 +24,7 @@ owners:
|
||||
schema:
|
||||
type: boolean
|
||||
supported_on:
|
||||
- android:144-
|
||||
- chrome.*:12-
|
||||
- chrome_os:12-
|
||||
tags: []
|
||||
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
caption: Set location to save Camera app photos.
|
||||
desc: |-
|
||||
Sets the directory where pictures and videos captured by the camera are being saved.
|
||||
The user can't change it and the photos are always saved to the defined directory.
|
||||
|
||||
The policy uses same format as <ph name="DOWNLOAD_DIRECTORY_POLICY_NAME">DownloadDirectory</ph> policy.
|
||||
The location could be set to either local filesystem or <ph name="GOOGLE_DRIVE_NAME">Google Drive</ph> (with '${google_drive}' prefix) or <ph name="MICROSOFT_ONE_DRIVE_NAME">Microsoft OneDrive</ph> (with '${microsoft_onedrive}' prefix).
|
||||
If the policy is set to empty string, it'll save the photos in the default "My files/Camera" directory.
|
||||
See a list of variables you can use ( https://www.chromium.org/administrators/policy-list-3/user-data-directory-variables ).
|
||||
|
||||
Leaving the policy unset means <ph name="PRODUCT_OS_NAME">$2<ex>Google ChromeOS</ex></ph> uses the default "My files/Camera" directory to save photos.
|
||||
example_value: ${google_drive}/Camera
|
||||
features:
|
||||
can_be_recommended: false
|
||||
dynamic_refresh: true
|
||||
per_profile: false
|
||||
owners:
|
||||
- file://components/policy/OWNERS
|
||||
- poromov@chromium.org
|
||||
- aidazolic@google.com
|
||||
- orko@igalia.com
|
||||
schema:
|
||||
type: string
|
||||
future_on:
|
||||
- chrome_os
|
||||
tags:
|
||||
- local-data-access
|
||||
type: string
|
||||
+1
-2
@@ -189,11 +189,10 @@ schema:
|
||||
type: object
|
||||
type: object
|
||||
type: array
|
||||
future_on:
|
||||
- ios
|
||||
supported_on:
|
||||
- android:140-
|
||||
- chrome.*:128-
|
||||
- chrome_os:128-
|
||||
- ios:144-
|
||||
tags: []
|
||||
type: dict
|
||||
|
||||
+2
-2
@@ -10,8 +10,8 @@ desc: |-
|
||||
Setting the policy to Disabled or leaving it unset prevents all users from applying firmware updates.
|
||||
|
||||
This policy applies to firmware for internal component firmware updates for <ph name="PRODUCT_OS_FLEX_NAME">Google ChromeOS Flex</ph> devices. Internal component firmware updates for <ph name="PRODUCT_OS_NAME">$2<ex>Google ChromeOS</ex></ph> devices are not affected by this policy.
|
||||
future_on:
|
||||
- chrome_os
|
||||
supported_on:
|
||||
- chrome_os:144-
|
||||
device_only: true
|
||||
features:
|
||||
dynamic_refresh: true
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ desc: |-
|
||||
|
||||
If you enable this policy:
|
||||
|
||||
* The URL pattern should be formatted according to https://cloud.google.com/docs/chrome-enterprise/policies/url-patterns.
|
||||
* The URL pattern should be formatted according to https://chromeenterprise.google/policies/url-patterns/.
|
||||
|
||||
* The file type extension entered must be in lower-cased ASCII. The leading separator should not be included when listing the file type extension, so list "jnlp" should be used instead of ".jnlp".
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user