Commit 56cdbc40 authored by Lukasz Anforowicz's avatar Lukasz Anforowicz Committed by Commit Bot

Removing the UsePdfCompositorServiceName feature.

The default state of the UsePdfCompositorServiceName has no impact
on the condition that refers to this feature in
CreateCompositeClientIfNeeded in
//components/printing/browser/print_manager_utils.cc:

- On desktop, the feature is always enabled, but this is not important
  since ShouldPdfCompositorBeEnabledForOopifs will return true on
  desktop because of UseDedicatedProcessesForAllSites.

- On Android the feature is always disabled, so there is no point
  in consulting the feature from ShouldPdfCompositorBeEnabledForOopifs.

Bug: 824867
Change-Id: I15790906a0c124571dba79e2c02f1c6a68aff935
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1864010Reviewed-by: default avatarLei Zhang <thestig@chromium.org>
Reviewed-by: default avatarMark Pearson <mpearson@chromium.org>
Commit-Queue: Mark Pearson <mpearson@chromium.org>
Auto-Submit: Łukasz Anforowicz <lukasza@chromium.org>
Cr-Commit-Position: refs/heads/master@{#708103}
parent 8eecf780
...@@ -3256,11 +3256,6 @@ const FeatureEntry kFeatureEntries[] = { ...@@ -3256,11 +3256,6 @@ const FeatureEntry kFeatureEntries[] = {
#endif // BUILDFLAG(ENABLE_PDF) #endif // BUILDFLAG(ENABLE_PDF)
#if BUILDFLAG(ENABLE_PRINTING) #if BUILDFLAG(ENABLE_PRINTING)
{"use-pdf-compositor-service-for-print",
flag_descriptions::kUsePdfCompositorServiceName,
flag_descriptions::kUsePdfCompositorServiceDescription, kOsAll,
FEATURE_VALUE_TYPE(printing::features::kUsePdfCompositorServiceForPrint)},
{"harfbuzz-pdf-subsetter", flag_descriptions::kHarfBuzzPDFSubsetterName, {"harfbuzz-pdf-subsetter", flag_descriptions::kHarfBuzzPDFSubsetterName,
flag_descriptions::kHarfBuzzPDFSubsetterDescription, kOsAll, flag_descriptions::kHarfBuzzPDFSubsetterDescription, kOsAll,
FEATURE_VALUE_TYPE(printing::features::kHarfBuzzPDFSubsetter)}, FEATURE_VALUE_TYPE(printing::features::kHarfBuzzPDFSubsetter)},
......
...@@ -2187,14 +2187,6 @@ const char kUnsafeWebGPUDescription[] = ...@@ -2187,14 +2187,6 @@ const char kUnsafeWebGPUDescription[] =
const char kUiPartialSwapName[] = "Partial swap"; const char kUiPartialSwapName[] = "Partial swap";
const char kUiPartialSwapDescription[] = "Sets partial swap behavior."; const char kUiPartialSwapDescription[] = "Sets partial swap behavior.";
const char kUsePdfCompositorServiceName[] =
"Use PDF compositor service for printing";
const char kUsePdfCompositorServiceDescription[] =
"When enabled, use PDF compositor service to composite and generate PDF "
"files for printing. When site isolation is enabled, disabling this will "
"not stop using PDF compositor service since the service is required for "
"printing out-of-process iframes correctly.";
const char kUserActivationV2Name[] = "User Activation v2"; const char kUserActivationV2Name[] = "User Activation v2";
const char kUserActivationV2Description[] = const char kUserActivationV2Description[] =
"Enable simple user activation for APIs that are otherwise controlled by " "Enable simple user activation for APIs that are otherwise controlled by "
......
...@@ -1282,9 +1282,6 @@ extern const char kUnsafeWebGPUDescription[]; ...@@ -1282,9 +1282,6 @@ extern const char kUnsafeWebGPUDescription[];
extern const char kUiPartialSwapName[]; extern const char kUiPartialSwapName[];
extern const char kUiPartialSwapDescription[]; extern const char kUiPartialSwapDescription[];
extern const char kUsePdfCompositorServiceName[];
extern const char kUsePdfCompositorServiceDescription[];
extern const char kUserActivationV2Name[]; extern const char kUserActivationV2Name[];
extern const char kUserActivationV2Description[]; extern const char kUserActivationV2Description[];
......
...@@ -7,14 +7,6 @@ ...@@ -7,14 +7,6 @@
namespace printing { namespace printing {
namespace features { namespace features {
#if defined(OS_ANDROID)
const base::Feature kUsePdfCompositorServiceForPrint{
"UsePdfCompositorServiceForPrint", base::FEATURE_DISABLED_BY_DEFAULT};
#else
const base::Feature kUsePdfCompositorServiceForPrint{
"UsePdfCompositorServiceForPrint", base::FEATURE_ENABLED_BY_DEFAULT};
#endif
#if defined(OS_MACOSX) #if defined(OS_MACOSX)
const base::Feature kEnableCustomMacPaperSizes{ const base::Feature kEnableCustomMacPaperSizes{
"EnableCustomMacPaperSizes", base::FEATURE_DISABLED_BY_DEFAULT}; "EnableCustomMacPaperSizes", base::FEATURE_DISABLED_BY_DEFAULT};
......
...@@ -11,9 +11,6 @@ ...@@ -11,9 +11,6 @@
namespace printing { namespace printing {
namespace features { namespace features {
// Use pdf compositor service to generate PDF files for printing.
extern const base::Feature kUsePdfCompositorServiceForPrint;
#if defined(OS_MACOSX) #if defined(OS_MACOSX)
extern const base::Feature kEnableCustomMacPaperSizes; extern const base::Feature kEnableCustomMacPaperSizes;
#endif #endif
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
#include "components/printing/browser/print_manager_utils.h" #include "components/printing/browser/print_manager_utils.h"
#include "components/printing/browser/features.h"
#include "components/printing/browser/print_composite_client.h" #include "components/printing/browser/print_composite_client.h"
#include "components/printing/common/print_messages.h" #include "components/printing/common/print_messages.h"
#include "content/public/browser/site_isolation_policy.h" #include "content/public/browser/site_isolation_policy.h"
...@@ -36,9 +35,7 @@ void CreateCompositeClientIfNeeded(content::WebContents* web_contents, ...@@ -36,9 +35,7 @@ void CreateCompositeClientIfNeeded(content::WebContents* web_contents,
// where OOPIF is used such as isolate-extensions, but should be good for // where OOPIF is used such as isolate-extensions, but should be good for
// feature testing purpose. Eventually, we will remove this check and use pdf // feature testing purpose. Eventually, we will remove this check and use pdf
// compositor service by default for printing. // compositor service by default for printing.
if (content::SiteIsolationPolicy::ShouldPdfCompositorBeEnabledForOopifs() || if (content::SiteIsolationPolicy::ShouldPdfCompositorBeEnabledForOopifs()) {
base::FeatureList::IsEnabled(
features::kUsePdfCompositorServiceForPrint)) {
PrintCompositeClient::CreateForWebContents(web_contents); PrintCompositeClient::CreateForWebContents(web_contents);
PrintCompositeClient::FromWebContents(web_contents) PrintCompositeClient::FromWebContents(web_contents)
->SetUserAgent(user_agent); ->SetUserAgent(user_agent);
......
...@@ -6501,24 +6501,6 @@ ...@@ -6501,24 +6501,6 @@
] ]
} }
], ],
"UsePdfCompositorServiceForPrint": [
{
"platforms": [
"chromeos",
"linux",
"mac",
"windows"
],
"experiments": [
{
"name": "UsePdfCompositorServiceForPrint",
"enable_features": [
"UsePdfCompositorServiceForPrint"
]
}
]
}
],
"UseSkiaRenderer": [ "UseSkiaRenderer": [
{ {
"platforms": [ "platforms": [
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment