Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2541)

Unified Diff: chrome/browser/extensions/extension_warning_badge_service.h

Issue 503033002: Move ExtensionWarningService and ExtensionsWarningSet to extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@3_web_view_internal
Patch Set: rebase Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
index 461bc5c6bf931b4a4f2f1e8ca593cfa3dac411a6..a000bb7f16143449e90ec2e4a058982a4e11cd90 100644
--- a/chrome/browser/extensions/extension_warning_badge_service.h
+++ b/chrome/browser/extensions/extension_warning_badge_service.h
@@ -7,8 +7,8 @@
#include "base/compiler_specific.h"
#include "base/threading/non_thread_safe.h"
-#include "chrome/browser/extensions/extension_warning_service.h"
-#include "chrome/browser/extensions/extension_warning_set.h"
+#include "extensions/browser/warning_service.h"
+#include "extensions/browser/warning_set.h"
// TODO(battre): Rename ExtensionWarningBadgeService to WarningBadgeService.
@@ -18,7 +18,7 @@ namespace extensions {
// A service that is responsible for showing an extension warning badge on the
// wrench menu.
-class ExtensionWarningBadgeService : public ExtensionWarningService::Observer,
+class ExtensionWarningBadgeService : public WarningService::Observer,
public base::NonThreadSafe {
public:
explicit ExtensionWarningBadgeService(Profile* profile);
@@ -30,10 +30,10 @@ class ExtensionWarningBadgeService : public ExtensionWarningService::Observer,
protected:
// Virtual for testing.
- virtual const std::set<ExtensionWarning>& GetCurrentWarnings() const;
+ virtual const std::set<Warning>& GetCurrentWarnings() const;
private:
- // Implementation of ExtensionWarningService::Observer.
+ // Implementation of WarningService::Observer.
virtual void ExtensionWarningsChanged() OVERRIDE;
void UpdateBadgeStatus();
@@ -42,7 +42,7 @@ class ExtensionWarningBadgeService : public ExtensionWarningService::Observer,
Profile* profile_;
// Warnings that do not trigger a badge on the wrench menu.
- ExtensionWarningSet suppressed_warnings_;
+ WarningSet suppressed_warnings_;
DISALLOW_COPY_AND_ASSIGN(ExtensionWarningBadgeService);
};
« no previous file with comments | « chrome/browser/extensions/extension_system_impl.cc ('k') | chrome/browser/extensions/extension_warning_badge_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698