| Index: chrome/browser/ui/webui/print_preview/print_preview_ui.cc
|
| diff --git a/chrome/browser/ui/webui/print_preview/print_preview_ui.cc b/chrome/browser/ui/webui/print_preview/print_preview_ui.cc
|
| index 33422abbf9765fdaeaa31eed7545a273b8b7e51d..8a797b72abc32838a7217e752e0c0ecb9abd6af5 100644
|
| --- a/chrome/browser/ui/webui/print_preview/print_preview_ui.cc
|
| +++ b/chrome/browser/ui/webui/print_preview/print_preview_ui.cc
|
| @@ -42,6 +42,13 @@
|
| #include "ui/web_dialogs/web_dialog_delegate.h"
|
| #include "ui/web_dialogs/web_dialog_ui.h"
|
|
|
| +#if defined(OS_CHROMEOS)
|
| +#include "base/command_line.h"
|
| +#include "base/feature_list.h"
|
| +#include "chrome/common/chrome_features.h"
|
| +#include "chrome/common/chrome_switches.h"
|
| +#endif
|
| +
|
| using content::WebContents;
|
| using printing::PageSizeMargins;
|
|
|
| @@ -393,6 +400,15 @@ content::WebUIDataSource* CreatePrintPreviewUISource() {
|
| source->OverrideContentSecurityPolicyObjectSrc("object-src 'self';");
|
| source->AddLocalizedString("moreOptionsLabel", IDS_MORE_OPTIONS_LABEL);
|
| source->AddLocalizedString("lessOptionsLabel", IDS_LESS_OPTIONS_LABEL);
|
| +#if defined(OS_CHROMEOS)
|
| + source->AddBoolean("showLocalManageButton",
|
| + base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| + ::switches::kEnableNativeCups) &&
|
| + base::FeatureList::IsEnabled(
|
| + features::kMaterialDesignSettings));
|
| + source->AddString("localPrintersManagementURL",
|
| + chrome::kChromeUIMdCupsSettingsURL);
|
| +#endif
|
| return source;
|
| }
|
|
|
|
|