diff --git a/shell/browser/ui/tray_icon_gtk.cc b/shell/browser/ui/tray_icon_gtk.cc index 4302a45d2e30..56b6e1bf1e09 100644 --- a/shell/browser/ui/tray_icon_gtk.cc +++ b/shell/browser/ui/tray_icon_gtk.cc @@ -30,7 +30,8 @@ gfx::ImageSkia GetBestImageRep(const gfx::ImageSkia& image) { } // namespace TrayIconGtk::TrayIconGtk() - : status_icon_(new StatusIconLinuxDbus), status_icon_type_(kTypeDbus) { + : status_icon_(new StatusIconLinuxDbus), + status_icon_type_(StatusIconType::kDbus) { status_icon_->SetDelegate(this); } @@ -68,11 +69,11 @@ ui::MenuModel* TrayIconGtk::GetMenuModel() const { void TrayIconGtk::OnImplInitializationFailed() { switch (status_icon_type_) { - case kTypeDbus: + case StatusIconType::kDbus: status_icon_ = nullptr; - status_icon_type_ = kTypeNone; + status_icon_type_ = StatusIconType::kNone; return; - case kTypeNone: + case StatusIconType::kNone: NOTREACHED(); } } diff --git a/shell/browser/ui/tray_icon_gtk.h b/shell/browser/ui/tray_icon_gtk.h index 11feec449a71..ccbcd99b2961 100644 --- a/shell/browser/ui/tray_icon_gtk.h +++ b/shell/browser/ui/tray_icon_gtk.h @@ -36,9 +36,9 @@ class TrayIconGtk : public TrayIcon, public ui::StatusIconLinux::Delegate { void OnImplInitializationFailed() override; private: - enum StatusIconType { - kTypeDbus, - kTypeNone, + enum class StatusIconType { + kDbus, + kNone, }; scoped_refptr status_icon_;