Index: chrome/browser/extensions/extension_warning_badge_service.h |
diff --git a/chrome/browser/extensions/extension_warning_badge_service.h b/chrome/browser/extensions/extension_warning_badge_service.h |
deleted file mode 100644 |
index 2117683c629a4767e95a7a8222c6987cd778c895..0000000000000000000000000000000000000000 |
--- a/chrome/browser/extensions/extension_warning_badge_service.h |
+++ /dev/null |
@@ -1,59 +0,0 @@ |
-// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
-// Use of this source code is governed by a BSD-style license that can be |
-// found in the LICENSE file. |
- |
-#ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_WARNING_BADGE_SERVICE_H_ |
-#define CHROME_BROWSER_EXTENSIONS_EXTENSION_WARNING_BADGE_SERVICE_H_ |
- |
-#include "base/compiler_specific.h" |
-#include "base/threading/non_thread_safe.h" |
-#include "components/keyed_service/core/keyed_service.h" |
-#include "extensions/browser/warning_service.h" |
-#include "extensions/browser/warning_set.h" |
- |
-// TODO(battre): Rename ExtensionWarningBadgeService to WarningBadgeService. |
- |
-class Profile; |
- |
-namespace extensions { |
- |
-// A service that is responsible for showing an extension warning badge on the |
-// wrench menu. |
-class ExtensionWarningBadgeService : public KeyedService, |
- public WarningService::Observer, |
- public base::NonThreadSafe { |
- public: |
- explicit ExtensionWarningBadgeService(Profile* profile); |
- ~ExtensionWarningBadgeService() override; |
- |
- static ExtensionWarningBadgeService* Get(content::BrowserContext* context); |
- |
- // Black lists all currently active extension warnings, so that they do not |
- // trigger a warning badge again for the life-time of the browsing session. |
- void SuppressCurrentWarnings(); |
- |
- protected: |
- // Virtual for testing. |
- virtual const std::set<Warning>& GetCurrentWarnings() const; |
- |
- private: |
- // Implementation of WarningService::Observer. |
- void ExtensionWarningsChanged() override; |
- |
- void UpdateBadgeStatus(); |
- virtual void ShowBadge(bool show); |
- |
- Profile* profile_; |
- |
- ScopedObserver<WarningService, WarningService::Observer> |
- warning_service_observer_; |
- |
- // Warnings that do not trigger a badge on the wrench menu. |
- WarningSet suppressed_warnings_; |
- |
- DISALLOW_COPY_AND_ASSIGN(ExtensionWarningBadgeService); |
-}; |
- |
-} // namespace extensions |
- |
-#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_WARNING_BADGE_SERVICE_H_ |