From a0a44f07dda3562bcd7039e0270eae32be7549d6 Mon Sep 17 00:00:00 2001 From: Bruno Pitrus Date: Wed, 26 Apr 2023 16:40:02 +0200 Subject: [PATCH] chore: correct extra qualification causing build error with GCC (#37548) * chore: correct extra qualification causing build error with GCC * fixup for lint * chore: fix lint --------- Co-authored-by: John Kleinschmidt Co-authored-by: Shelley Vohr --- shell/browser/hid/electron_hid_delegate.h | 5 ++--- shell/browser/serial/electron_serial_delegate.h | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/shell/browser/hid/electron_hid_delegate.h b/shell/browser/hid/electron_hid_delegate.h index a63328740b..7b3ee9cf8f 100644 --- a/shell/browser/hid/electron_hid_delegate.h +++ b/shell/browser/hid/electron_hid_delegate.h @@ -94,9 +94,8 @@ class ElectronHidDelegate : public content::HidDelegate, namespace base { template <> -struct base::ScopedObservationTraits< - electron::HidChooserContext, - electron::HidChooserContext::DeviceObserver> { +struct ScopedObservationTraits { static void AddObserver( electron::HidChooserContext* source, electron::HidChooserContext::DeviceObserver* observer) { diff --git a/shell/browser/serial/electron_serial_delegate.h b/shell/browser/serial/electron_serial_delegate.h index e66f6a51df..c0eb76f6a2 100644 --- a/shell/browser/serial/electron_serial_delegate.h +++ b/shell/browser/serial/electron_serial_delegate.h @@ -83,9 +83,8 @@ class ElectronSerialDelegate : public content::SerialDelegate, namespace base { template <> -struct base::ScopedObservationTraits< - electron::SerialChooserContext, - electron::SerialChooserContext::PortObserver> { +struct ScopedObservationTraits { static void AddObserver( electron::SerialChooserContext* source, electron::SerialChooserContext::PortObserver* observer) {