Commit 83509f67 authored by rbpotter's avatar rbpotter Committed by Chromium LUCI CQ

Print Preview: Ignore CloudPrintWarningsSuppressed flag

This CL hardcodes the CloudPrintWarningsSuppressed pref to true for
all users.

Bug: 1144931
Change-Id: Ia997ba7cb2082151c99b825e5abdb8f0cf100cea
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2617569Reviewed-by: default avatarDaniel Hosseinian <dhoss@chromium.org>
Commit-Queue: Rebekah Potter <rbpotter@chromium.org>
Cr-Commit-Position: refs/heads/master@{#841665}
parent ab57b409
......@@ -1081,10 +1081,7 @@ PrinterHandler* PrintPreviewHandler::GetPrinterHandler(
return extension_printer_handler_.get();
}
#if BUILDFLAG(ENABLE_SERVICE_DISCOVERY)
if (printer_type == PrinterType::kPrivet &&
(base::FeatureList::IsEnabled(features::kForceEnablePrivetPrinting) ||
GetPrefs()->GetBoolean(
prefs::kCloudPrintDeprecationWarningsSuppressed))) {
if (printer_type == PrinterType::kPrivet) {
if (!privet_printer_handler_) {
privet_printer_handler_ =
PrinterHandler::CreateForPrivetPrinters(Profile::FromWebUI(web_ui()));
......@@ -1156,8 +1153,7 @@ void PrintPreviewHandler::RegisterForGaiaCookieChanges() {
DCHECK(!identity_manager_);
cloud_print_enabled_ =
!base::Contains(printer_type_deny_list_, PrinterType::kCloud) &&
GetPrefs()->GetBoolean(prefs::kCloudPrintSubmitEnabled) &&
GetPrefs()->GetBoolean(prefs::kCloudPrintDeprecationWarningsSuppressed);
GetPrefs()->GetBoolean(prefs::kCloudPrintSubmitEnabled);
if (!cloud_print_enabled_)
return;
......
......@@ -381,9 +381,7 @@ void AddPrintPreviewFlags(content::WebUIDataSource* source, Profile* profile) {
source->AddBoolean("isEnterpriseManaged", webui::IsEnterpriseManaged());
bool cloud_print_deprecation_warnings_suppressed =
profile->GetPrefs()->GetBoolean(
prefs::kCloudPrintDeprecationWarningsSuppressed);
bool cloud_print_deprecation_warnings_suppressed = true;
source->AddBoolean("cloudPrintDeprecationWarningsSuppressed",
cloud_print_deprecation_warnings_suppressed);
......
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