From 2f8e68f8b36c6a7770f38e2efc0d25738cd6805c Mon Sep 17 00:00:00 2001 From: Milan Burda Date: Wed, 24 May 2023 20:00:52 +0200 Subject: [PATCH] chore: remove ViewsDelegate::IsWindowInMetro() override (#38409) Co-authored-by: Milan Burda --- shell/browser/ui/views/electron_views_delegate.h | 1 - shell/browser/ui/views/electron_views_delegate_win.cc | 4 ---- 2 files changed, 5 deletions(-) diff --git a/shell/browser/ui/views/electron_views_delegate.h b/shell/browser/ui/views/electron_views_delegate.h index a92cf1ec3d57..3f261c77d48a 100644 --- a/shell/browser/ui/views/electron_views_delegate.h +++ b/shell/browser/ui/views/electron_views_delegate.h @@ -42,7 +42,6 @@ class ViewsDelegate : public views::ViewsDelegate { #if BUILDFLAG(IS_WIN) HICON GetDefaultWindowIcon() const override; HICON GetSmallWindowIcon() const override; - bool IsWindowInMetro(gfx::NativeWindow window) const override; int GetAppbarAutohideEdges(HMONITOR monitor, base::OnceClosure callback) override; #elif BUILDFLAG(IS_LINUX) && !BUILDFLAG(IS_CHROMEOS) diff --git a/shell/browser/ui/views/electron_views_delegate_win.cc b/shell/browser/ui/views/electron_views_delegate_win.cc index d20b6b111f62..aa0dac14415c 100644 --- a/shell/browser/ui/views/electron_views_delegate_win.cc +++ b/shell/browser/ui/views/electron_views_delegate_win.cc @@ -111,10 +111,6 @@ HICON ViewsDelegate::GetSmallWindowIcon() const { return GetDefaultWindowIcon(); } -bool ViewsDelegate::IsWindowInMetro(gfx::NativeWindow window) const { - return false; -} - int ViewsDelegate::GetAppbarAutohideEdges(HMONITOR monitor, base::OnceClosure callback) { // Initialize the map with EDGE_BOTTOM. This is important, as if we return an