Browse Source

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 <[email protected]>
Co-authored-by: Shelley Vohr <[email protected]>
Bruno Pitrus 2 years ago
parent
commit
a0a44f07dd

+ 2 - 3
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<electron::HidChooserContext,
+                               electron::HidChooserContext::DeviceObserver> {
   static void AddObserver(
       electron::HidChooserContext* source,
       electron::HidChooserContext::DeviceObserver* observer) {

+ 2 - 3
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<electron::SerialChooserContext,
+                               electron::SerialChooserContext::PortObserver> {
   static void AddObserver(
       electron::SerialChooserContext* source,
       electron::SerialChooserContext::PortObserver* observer) {