diff --git a/browser/resources/extensions/extensions_resources.grd b/browser/resources/extensions/extensions_resources.grd index aac129e3bfff..bc280770e483 100644 --- a/browser/resources/extensions/extensions_resources.grd +++ b/browser/resources/extensions/extensions_resources.grd @@ -10,8 +10,6 @@ - - - -Viewport.ZOOM_FACTORS = ; diff --git a/browser/resources/settings/brave_settings_overrides.js b/browser/resources/settings/brave_settings_overrides.js index a84d7c6b2485..e802762a66f7 100644 --- a/browser/resources/settings/brave_settings_overrides.js +++ b/browser/resources/settings/brave_settings_overrides.js @@ -103,17 +103,8 @@ const BraveClearSettingsMenuHighlightBehavior = { } } -const BraveAddZoomLevelsBehavior = { - ready: function() { - this._setPageZoomLevels_() - } -} - // Polymer Component Behavior injection (like superclasses) BravePatching.RegisterPolymerComponentBehaviors({ - 'settings-appearance-page': [ - BraveAddZoomLevelsBehavior - ], 'settings-clear-browsing-data-dialog': [ BraveClearBrowsingDataOnExitBehavior ], diff --git a/browser/resources/settings/zoom_factors.json b/browser/resources/settings/zoom_factors.json deleted file mode 100644 index 05de8b17d8da..000000000000 --- a/browser/resources/settings/zoom_factors.json +++ /dev/null @@ -1,21 +0,0 @@ -[ - 0.25, - 1 / 3, - 0.5, - 2 / 3, - 0.75, - 0.8, - 0.9, - 1, - 1.1, - 1.25, - 4 / 3, - 7 / 5, - 1.5, - 1.75, - 2, - 2.5, - 3, - 4, - 5 -] \ No newline at end of file diff --git a/chromium_src/chrome/browser/ui/webui/print_preview/print_preview_ui.cc b/chromium_src/chrome/browser/ui/webui/print_preview/print_preview_ui.cc deleted file mode 100644 index efd2b7345868..000000000000 --- a/chromium_src/chrome/browser/ui/webui/print_preview/print_preview_ui.cc +++ /dev/null @@ -1,12 +0,0 @@ -/* Copyright (c) 2019 The Brave Authors. All rights reserved. - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. */ - -#include "chrome/grit/component_extension_resources.h" -#include "brave/browser/resources/extensions/grit/brave_extensions_resources.h" - -#undef IDR_PDF_VIEWPORT_JS -#define IDR_PDF_VIEWPORT_JS IDR_BRAVE_PDF_VIEWPORT_JS -#include "../../../../../../../chrome/browser/ui/webui/print_preview/print_preview_ui.cc" // NOLINT -#undef IDR_PDF_VIEWPORT_JS diff --git a/chromium_src/components/zoom/page_zoom_constants.cc b/chromium_src/components/zoom/page_zoom_constants.cc deleted file mode 100644 index 9155941a6c31..000000000000 --- a/chromium_src/components/zoom/page_zoom_constants.cc +++ /dev/null @@ -1,21 +0,0 @@ -/* Copyright (c) 2019 The Brave Authors. All rights reserved. - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. */ - -#include "components/zoom/page_zoom_constants.h" - -#include "base/stl_util.h" - -namespace zoom { - -// This list is duplicated in brave/browser/resources/settings/zoom_factors.json -// When changing this list, please make sure that gets updated also. -const double kPresetZoomFactors[] = {0.25, 1 / 3.0, 0.5, 2 / 3.0, 0.75, 0.8, - 0.9, 1.0, 1.1, 1.25, 4 / 3.0, 7 / 5.0, - 1.5, 1.75, 2.0, 2.5, - 3.0, 4.0, 5.0}; -const std::size_t kPresetZoomFactorsSize = base::size(kPresetZoomFactors); - -} // namespace zoom -